Configure secrets for comentario
All checks were successful
/ terraform (push) Successful in 1m45s
/ ansible (push) Successful in 2m37s

This commit is contained in:
Jake Howard 2024-06-23 18:22:11 +01:00
parent 81782c5157
commit 659cccd15a
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 45 additions and 0 deletions

View file

@ -1,3 +1,6 @@
- name: Include vault
include_vars: vault.yml
- name: Create install directory - name: Create install directory
file: file:
path: /opt/comentario path: /opt/comentario

View file

@ -4,3 +4,15 @@ comentario_secrets:
database: comentario database: comentario
username: comentario username: comentario
password: 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 }}"

30
ansible/roles/comentario/vars/vault.yml generated Normal file
View file

@ -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