From 659cccd15ade659daa67fd981083a0a8a4c43917 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 23 Jun 2024 18:22:11 +0100 Subject: [PATCH] Configure secrets for comentario --- ansible/roles/comentario/tasks/main.yml | 3 +++ ansible/roles/comentario/vars/main.yml | 12 ++++++++++ ansible/roles/comentario/vars/vault.yml | 30 +++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 ansible/roles/comentario/vars/vault.yml diff --git a/ansible/roles/comentario/tasks/main.yml b/ansible/roles/comentario/tasks/main.yml index 8e128f0..ba4158d 100644 --- a/ansible/roles/comentario/tasks/main.yml +++ b/ansible/roles/comentario/tasks/main.yml @@ -1,3 +1,6 @@ +- name: Include vault + include_vars: vault.yml + - name: Create install directory file: path: /opt/comentario diff --git a/ansible/roles/comentario/vars/main.yml b/ansible/roles/comentario/vars/main.yml index 9cc6f17..79d7d3b 100644 --- a/ansible/roles/comentario/vars/main.yml +++ b/ansible/roles/comentario/vars/main.yml @@ -4,3 +4,15 @@ comentario_secrets: database: comentario username: comentario password: comentario + idp: + github: + key: "{{ vault_comentario_github_client_id }}" + secret: "{{ vault_comentario_github_client_secret }}" + gitlab: + key: "{{ vault_comentario_gitlab_application_id }}" + secret: "{{ vault_comentario_gitlab_application_secret }}" + smtpServer: + host: smtp.eu.mailgun.org + port: 587 + username: "{{ vault_comentario_smtp_username }}" + password: "{{ vault_comentario_smtp_password }}" diff --git a/ansible/roles/comentario/vars/vault.yml b/ansible/roles/comentario/vars/vault.yml new file mode 100644 index 0000000..3add321 --- /dev/null +++ b/ansible/roles/comentario/vars/vault.yml @@ -0,0 +1,30 @@ +$ANSIBLE_VAULT;1.1;AES256 +33656462373736356363313738643335333930343461366666663532653264363963653732656366 +3034323730613334326462326332323763323665636165390a303639633036303831373966303037 +37376233383138323265396531303739316330396230333464383963333035343735303866626334 +6562393435303264620a633139616164303337363863616138306531656365353964346638646165 +35346539326339623364343662643038336238613535623964666562383662613661616564646433 +30653432666538616565373832353434303565386333643735313866396436393732303466376237 +64383236373364383338613530353830353334326331636436323766353565656664356138386532 +62366266656461663330396562316439393038666534663564633037623237363532363637356336 +63336633393666343064383735363664643936333130636465623139393838373134636265366439 +64326538653236306437346165333934303134313032383135313335626136626162363831613430 +30636436343162376637616262393633306330663362396638393166643131343564646162616530 +62343735343832636661326265396262643136346366663337636335656137393231646438633338 +61613137366661333462363134343732666330373864393636643665396435653064623030626466 +65633536346531383565616130626461376566316535316339326363646336626266376330393939 +33653438656438316532393665333939613334666464656635323566326439363964316535623233 +38636236616637336230363032396635613563313966353334313365663434653138303764393938 +37643561346338323934663936356563363833383435373933396138663334616563666562653935 +33666631373964396265393233636631336632386537663663366439313137656661653265323162 +64656333336165326563323333653036386334386566386664306638656130323665366136373732 +34383532303363646334356534316630363133303031343665353465656239306338386238313262 +30363438383164343661343730386162633430373765313834313739393638333963393234613564 +30356134646431353132316565346331613137353431383863383866306632626336633764393036 +66626466623034666335356539653136633331636365623061613433393335303535333433616137 +65383231373230653838316630303736353237666431366134353534366564656338646265396162 +61663366663532636635663337363063306466626463396630636236363736303963353062376163 +63653530346335393934656531386139663136383132306564383937396364626365373839613766 +62633264336335313932396164373363623061363262616330343735633862623234643365353035 +36616231636461323832663837323232396636363561376563386530306339333431613935613263 +30366335393834643066343763636561346336383463333535323932326663633338