aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/postgres
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/postgres')
-rw-r--r--ansible/roles/postgres/vars/main/db_passwords.yml94
-rw-r--r--ansible/roles/postgres/vars/main/main.yml12
2 files changed, 61 insertions, 45 deletions
diff --git a/ansible/roles/postgres/vars/main/db_passwords.yml b/ansible/roles/postgres/vars/main/db_passwords.yml
index 87ebcc7..56e131e 100644
--- a/ansible/roles/postgres/vars/main/db_passwords.yml
+++ b/ansible/roles/postgres/vars/main/db_passwords.yml
@@ -1,46 +1,50 @@
$ANSIBLE_VAULT;1.1;AES256
-66656466366132386438383235643566613463326639366431333561346366636336623035663035
-3139366336666464386664366632356336396135643237360a613366626333663639303638376433
-61633362386164333431356136653135356663633331666665366665306462353537323037323662
-3731303739386666380a373961356532656138613462373966656332613132653734336533343839
-38373938373635346639656264633465366532633731623931303464353235613536373762356561
-32376162636331393061363538373664313434363237306433356334623138303133383837653036
-64363734346337383461373439393138356437353061623762653962333939613034353636306266
-66363336626665326339323464303061666330633961316662393732666338636235306561653539
-61366661346635333536666438663734613661633164356530616664633639303636323464613037
-31383663336431633038616534353137616638376136623361663330633064633630613837653666
-65613361343638346333383139613462663736386636623934303061303330393039616331346531
-30323765306161306138343066393037646466663236343366306537373165633965623364623332
-32623064363366666163386535373665346362393739383066303333663936313434363938363331
-63383061326266616537663635313632303335363935396666363339653937316334383265356664
-64616366623563643136656134366261663730393962613166623837613930303034323964353336
-63356638343035393632633163323833306365323363333837346236356237303562623935316363
-33373563303333373136623031663738323562623335373266353339643631633964613236346139
-36386630396135363666663135383962373031343633613763303366393465663431633262353761
-63633834326636336634383162633838663964303735613233633234636265663663666438386462
-66626134666136633334633933303461643331613233343663626435313734616461393461653065
-39333864333637383263323935613665616664373234363365653536646632653165636333333033
-38643639363436636335626264373238356532393338626365303933306231336665636663343561
-63623633343433623531386635323234373865326262343466653236303731656336336233646533
-61343835336230633032396464653133623034386331613637623936633433653538343366303933
-32383835396139343263663731316536303132656332616337373337393161373732623534313733
-30643762353231353464383436653765343266383335323432343131393536396563613035363332
-39396162376263393530663935323532346438313562396563386364316165313831383835663964
-63643035633630666537396361346230336630623037323863303830343432363237613563613931
-36353537363136393566356239663039636537303931356534313232316261396563386138383364
-38376634373666353264643562343330363834636338666436373661356166616164623964313631
-33646464373934396337366533373334393336323566333533303665613235316532353036663664
-63343532626663613861663764373866626631356238666237323863623934363165636537383638
-39346637623137636562383238666463666661643431313339666335366265633837626634663532
-32386661666464626131643032613361373064383939636363663964383266363163666537616261
-65353231663735396165333331616362633437366138343962343332343864363531646437393637
-32343632303331316563303339613339636438396661316634386462623139373637373935623064
-62626563303462643961643537346531363830653861303430643238613037303238326465366362
-30326164616230353336616335633233633539623933666538666431326366666166633236373230
-34663266363736396566666336303561663339643833633265376232643862333264636536346234
-61376362663734333735616561343730343862633831326537326666323339356265343565393830
-61303438663161616339373566353331643538363033643237346236636562656165373130376466
-35393862303162333261653631396231353138303139326161336663306131356539313738613961
-39663962346261663865323132396663643431623838646537303365666565306333363565663830
-36626531393065303730626164323734646235643132653830373964623738666666336237656435
-63613034393538613863646538396461663661663361333362613735363066363337
+37363464316135663865376631346165386166396138386164643436386164663661353761633232
+3632363034346231623138626235663738326465363631660a373262326335623436383437613432
+34323166303835633235323238386130633337393739636661313461613530626334323262386361
+6564316163396131310a633066303863616535623334636639316364393539373739356361633939
+34393364313938653934306631623635336265633164373138643763613064653333313435393461
+32626236333337366436636531353233363734623363646238386664653662393836303164323131
+65393064363662643839386461643233353435613435633763313433303933323130396137333566
+37613464326631353662386666663936616538626536353237313935623266396265353038633332
+66333230363863376230333361346163613036356635356365373462633762343931373764323535
+39373361353931333162343231356534383234326664616133306564343133343764323631303838
+33383332623865336534393331386631666466636132376633376436373539373963353737303038
+30353466373964353539396261343061393932663736623663353335353139666665373637613636
+64653135633734653566316266346265666131306462656462616264313765376165346266633734
+39313063326337393334653732613363343466313764366263653965626666323533353733653532
+34383931643836393839376134386131363861653533653633623662333261323336616632623234
+35646361633331326665386662303039666366313438363132643964333130643031316537623265
+65663330653665316139353766306163336237383037656233333837313639323462636232633232
+39396466636430333437663337663536333930396465653536656165613230366530313962613062
+36646130653966646235336365343661316539376131383331366139646662616531363562353061
+65323462353564636338383833663364336638343537653232613430623631383964373632303364
+61336230303235613035623138303766323739313433363663653730636432343165363263303065
+38376339656633663231636238376439656137646339646238373766346161626634343536616438
+65663733663165396336326234393561353833646638323630376364636564353939646536666364
+64326133613565313338396436666233333632323736613363656231633634626564323136343262
+62643333643131663639336565306663353137336265343837383334653034663339336362613565
+31653933333130363835363265343638303030613966376663626332366264313137363263643132
+34303036643262363939396630323932373731643532326434626534336164613233343834386430
+66303836666135373636383437653833663330373034383231353538306133376562333937626431
+63353661363337646431626530323839396361333266336439616631626634383761323333666330
+64666661626563666238363766633334663430336364356231326135346230366235636330373033
+62393765323262316563366235333534316666633734366631336365643065623965663538636131
+36626335663566653433326462653365336366663134633362356636636565306536373865663266
+66643433353830346539636430373735383739366335626534663364383331663539633462376131
+35386431343366336261386335396330333034383835616135373364323031306465663633326461
+30633538656233366236656333633464313766353435396466633065316239366639323138643066
+35396361633239623338343431373235653766633437303566323562666232656166333965656461
+31373633353265633064643735663531616131623835383263356530623537623137373533636139
+63653365623861643961313164323563376263653265666139633438333635363466383635396639
+66383263346434343434646333363863626262383138353132373965356132643832613863386430
+34386235663463323238316234383465646462333962653533623837636234323461323338313339
+31363265313863633262336537613332393633616436383837343939633162383163306336613039
+39353339336433346566393334666535366636666236383661396133666235633664346637373439
+32363039366133643938636166323939643961353364396230303162366532333932303537366232
+30353731633933396263353330353662363434633166383230643561386430346264356533373861
+30346566326164353462326465623164336161313934623262313964633733623334636135643066
+63656337373363653435636363646566376339383630323237323961393332646436316631633635
+31643661366561306335666666633265623138356361643034393130333038633366313866376562
+65313339633835373034653632386135356338336139633662653139313137663261363538626630
+3762
diff --git a/ansible/roles/postgres/vars/main/main.yml b/ansible/roles/postgres/vars/main/main.yml
index b7de192..b0a1d72 100644
--- a/ansible/roles/postgres/vars/main/main.yml
+++ b/ansible/roles/postgres/vars/main/main.yml
@@ -41,6 +41,10 @@ postgres_users:
password: "{{ vault_postgres_user_passwords.metricity }}"
roles:
+ - name: keycloak
+ password: "{{ vault_postgres_user_passwords.keycloak }}"
+ roles:
+
- name: metabase
password: "{{ vault_postgres_user_passwords.metabase }}"
roles:
@@ -115,6 +119,12 @@ postgres_hba_rules:
address: all
method: scram-sha-256
+ - conn_type: hostssl
+ database: keycloak
+ user: keycloak
+ address: all
+ method: scram-sha-256
+
#
# Backup service HBA rules
#
@@ -187,6 +197,8 @@ postgres_databases:
owner: pixels
- name: devops
owner: devops
+ - name: keycloak
+ owner: keycloak
postgres_grants: