aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-07-26 14:40:10 +0100
committerGravatar Chris Lovering <[email protected]>2024-07-26 15:00:33 +0100
commitbc501ca3fcc965464953ceee142949ae0665a8f4 (patch)
treee682f2dba9d8e7f44f13d0e47e6925106047dca3
parentDon't deploy pydis-users role to Rocky (diff)
Add polonium db and user/password
-rw-r--r--ansible/roles/postgres/vars/main/db_passwords.yml101
-rw-r--r--ansible/roles/postgres/vars/main/main.yml18
2 files changed, 70 insertions, 49 deletions
diff --git a/ansible/roles/postgres/vars/main/db_passwords.yml b/ansible/roles/postgres/vars/main/db_passwords.yml
index 56e131e..4b3f50c 100644
--- a/ansible/roles/postgres/vars/main/db_passwords.yml
+++ b/ansible/roles/postgres/vars/main/db_passwords.yml
@@ -1,50 +1,53 @@
$ANSIBLE_VAULT;1.1;AES256
-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
+37353734343130613235303836353532353561313732656561366535663237663165376164616636
+3865343463373565363136666662393834373335383434370a616135653164626636383931383639
+66323537623964393266353031653461323030393237316632333563336665343231343239663632
+3032653531396236380a663265306165636436343162393762316539633362336463363536323533
+37303763366130663063323465366263326230333734396232643762343735666231616339653632
+38366663336131623064336630623364393432373233343038646463376466303130353438353663
+37333737383034363331383239646134326638653465383236656237343930303733303261393633
+62646663663666646436376534316231623735373335336166383139333938623531376564396131
+34626632356639656432386239313464353534363238393766653563653737386536326338326264
+31333563333962643862373761616336333966663665653065393061343065653030643133303338
+32363635393836616465613061633439343164353164303331386633303763333430653964353339
+34363831306134643061646530656263313839663264363538613031623866336231323030643137
+33363434363034623839633832643735336135336562373333313562366439373134623637326336
+36663330343862626432356138363364643964313565303664396662613338376237666634643462
+37613936366337656637663738376365306561356536363064316135653766646663663833346135
+62393261373133626537663237363432643162613531303339313236666138313339663435396536
+32343632633238303663313765386330613431643662656437366339656333373933326337306536
+65643666396634613733323833656631363534333431633638373732303936386538336139636537
+64353636363236316238353735626662643531356139323533396635323561393234616233363832
+39326330316632663039643865653535373037353332646631653263633737396633663735396237
+66623564366562343638343866396461383531343638633435343733313464353261313362353631
+61623335623565303731363030336562393762656438353435646364323738393838336463653833
+65383865643936316563373839336161616638333435313065326531643264323132353336326163
+31373263663334663738353234353137363033666333656431313332616434346264613831613037
+32646365363030353362346161623866666132383964383464343065306230333762326166343565
+37356230636439376331646139643965626439303961323738643762383136666265306433666135
+66393430356632336662633130366530356436323731363136666537653731623064656161316466
+36343137303836333735363933333466353461633537623936353935353539363439383732306533
+39666134613062323761626464656533663935353739353061666436326334633031633438393262
+33663265393732633764393161396333626139343164623462393235366534383335306634326432
+30323462336536386430306138383239633061316238633061363333316231343665363935303531
+66333961303535623561306430623331353936653565663839663765353662643938366635636432
+65623864666532323033303535633536313065656165393538363439616639663230353939383531
+34386431636336353262653332643865623531663735383863313932626634663239633732306632
+31336537353263336162343539636233613634623866656266313230353236306131666364306161
+34653635383366326263336136306231326236316632323834346137356239333765353236633339
+37303537666236623432646335396438636462633662343964663631623366363762636536336461
+61646366373866656631616236653162303934323937623730313664313137386665666537383364
+38366365643365666336383130633566303461623036616131653031623733373239346264313030
+32353266666436633338396539666565653138393234333438663234653863646232323330353662
+64313536666335636233373235623439613834343431633834393838313664313366316363343861
+61653430306533356137666639333462643361383265333661666261386334633663636166643836
+62353032326230643332613230353063313737616336323934323261313533663234396335643533
+31666139633461376438623633306233396539646661623239633665323833343236366166346530
+37323837323339373235663333326135316139666231313439323864383162363934376132333336
+65623331376563326336306136323866643463323735653862376465313730313539396434383532
+35646130633039386664343231333030393834353461633332306531356236653933376638396336
+34313139346235633939336636366461333664333336336535656464623138356332616237643865
+35656638653939336232393733646539383138393932313431656335343535356139653361623633
+32376137643935613437333265363766616637333033643033363338663066306539646534313331
+37663632346333623362396235666332616135396139613438666662336263386466323639346239
+63623862646332653261
diff --git a/ansible/roles/postgres/vars/main/main.yml b/ansible/roles/postgres/vars/main/main.yml
index b0a1d72..85a874d 100644
--- a/ansible/roles/postgres/vars/main/main.yml
+++ b/ansible/roles/postgres/vars/main/main.yml
@@ -45,6 +45,10 @@ postgres_users:
password: "{{ vault_postgres_user_passwords.keycloak }}"
roles:
+ - name: polonium
+ password: "{{ vault_postgres_user_passwords.polonium }}"
+ roles:
+
- name: metabase
password: "{{ vault_postgres_user_passwords.metabase }}"
roles:
@@ -125,6 +129,12 @@ postgres_hba_rules:
address: all
method: scram-sha-256
+ - conn_type: hostssl
+ database: polonium
+ user: polonium
+ address: all
+ method: scram-sha-256
+
#
# Backup service HBA rules
#
@@ -161,6 +171,12 @@ postgres_hba_rules:
address: all
method: scram-sha-256
+ - conn_type: hostssl
+ database: polonium
+ user: metabase
+ address: all
+ method: scram-sha-256
+
#
# DevOps Administration rules
#
@@ -199,6 +215,8 @@ postgres_databases:
owner: devops
- name: keycloak
owner: keycloak
+ - name: polonium
+ owner: polonium
postgres_grants: