Skip to content

Commit ccc281c

Browse files
committed
Remove omni-pvc.yaml and update kustomization.yaml; add storageClassName to omni HelmRelease; create secrets for omni OIDC and etcd encryption key
1 parent ca37d8f commit ccc281c

File tree

6 files changed

+143
-71
lines changed

6 files changed

+143
-71
lines changed

gitops/apps/omni/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ kind: Kustomization
44
resources:
55
- namespace.yaml
66
- omni-ocirepository.yaml
7-
- omni-pvc.yaml
87
- omni-helmrelease.yaml

gitops/apps/omni/omni-helmrelease.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ spec:
7070
persistence:
7171
enabled: true
7272
size: 10Gi
73+
storageClassName: local-path
7374

7475
gatewayApi:
7576
ui:

gitops/apps/omni/omni-pvc.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

group_vars/oracle_hosts/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,8 @@ datadog_tags:
5555
- "managed_by:ansible"
5656
datadog_logs_enabled: true
5757
datadog_process_agent_enabled: true
58-
datadog_apm_enabled: false
58+
datadog_apm_enabled: false
59+
60+
# Omni configuration
61+
omni_oidc_client_secret: "{{ vault_omni_oidc_client_secret }}"
62+
omni_etcd_encryption_key: "{{ vault_omni_etcd_encryption_key }}"

group_vars/oracle_hosts/vault.yml

Lines changed: 104 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,105 @@
11
$ANSIBLE_VAULT;1.1;AES256
2-
36353632323034396266376631396163376335353665656162653637393838326231633561366266
3-
3837346530313461653937613263363033306261623536330a633966383335386231633330663030
4-
35356263393130626137616561613161633830333139373837313432343434643464326634623164
5-
3265396565363330380a366335663231356532613165326663343032616233326539376333623936
6-
62643831363938386431393730376531623539626530643438383434373838623834393139653536
7-
35313563373135303731636135623761366664663339383038643139646261333837653365383862
8-
38383138643166356536646634306333653338386364336661343864643535386236303130323537
9-
62613531623035353166613638326534373132626537626561333965366331353633356439336530
10-
39643637643130326333646635366133313166383261353963333831313837613331623333646236
11-
37353464373066343232376439326139396338646433396561663064636339613533326138323636
12-
34323262333034656266383139613031616565396665313562336435396263636434346234363737
13-
37326163363234333537373666653162366432343331373665313037343762336335383830366430
14-
30386638623535636534376662353237326561336135306438346334393366636162643366353161
15-
64643339613531656333326138313536393164613337663936646133646533616635336466383231
16-
37613961626261333931633330306632313838663066373731646130333564646338363964386439
17-
62643434353164663334653230626465323032373537326233396263626566656430336232663165
18-
61633161653030313964353433376539363465643531346538356461343036663263623761633930
19-
31343439303262616364333134353430643232373335363131616431393232363931313962323637
20-
36353033393337343834366634303164396639386630343765343039376339383765623837633465
21-
63643431653133306137636536323163303332366132653638353633373639303531633434363166
22-
38306135333234633232633939313931626334623239333032653837363730663830646332346237
23-
64626631393966666136653334343834303236386633643063633462333062346330393835666665
24-
30643138323635333532313635643733396634343962653166383131613136386366653663316531
25-
65623830613230656265613839666338346438393635346564616131373830646263326330363365
26-
61633664363932333138373734373661366161313235376139373237363964336137616537663539
27-
32333332353633626133626437366265376464623530616131363237633639396437376139653431
28-
63666362663038363834616436643763363935356135333835333639343965353834393139353838
29-
30616364343063383361383038626561626665643131326362666533653664666365323337643935
30-
35333833346530653561663266653030373936373133303965616436656536653761396466383439
31-
64376531393734333630663734626563653237323131383430323266366563613139393532303563
32-
34333635303063613431326134356262343730353930623134343965366166636131633132343063
33-
61393963623963303464666164303362336163333431633035666432643830303461393235386439
34-
65626635343839373031656230356131623066363961316635616536343466623232323932653437
35-
31626435306238323465383031366462663964633434393761363234333766323965316236376238
36-
65306364333265333564363766356634326333393233316435343036323731353637346239366530
37-
34383434343962323433626431666430393831646137613739353432396135376262316635303063
38-
34396136386430323562316363386538303731613961363662393731306331313333653364643036
39-
31653239636165356134623735386330663234363263303630646337636130333166613466303130
40-
63313834336566336238643933316630643231333437316663613539396230616330626237633462
41-
37656361643061616138393831373238323935346265623833313066666365626531663237386364
42-
65346130363838646432666535336634376436373064333765373739396635323236626438303630
43-
36313661663034613233336161323966653136616433313265326337636332636261366565613833
44-
31623662343030613431613464306264373663333938656666376262366531373730383236626261
45-
39343734303664636666623662353637326434656361363064353162303337396137353134323864
46-
64353936393235633630653062386266303438386337356236663538373165373135626238653862
47-
36643631353161616430323634343263376330633562613133393466623539663664356638646635
48-
36653333653533333162333265343933343132656436623063636435373061616664306334306639
49-
62373333373938306264656236363432663532303661343263646662376639643636626534363236
50-
31613934643937346136366661656562623962366537646334313333323462666138653932333961
51-
62653561633538636531623362326161366633373463303335343466353363636464376233303063
52-
63663633323064396265303061386164393137623336613038383964356539346165363331666131
53-
39663966333263636565366463646264343036363830323131303831386631373635373764636463
54-
38616164653961373730366131653438626563363265633830323961323261653534656366646361
55-
61636637356366393237666430633638653630646334373163353034636563356330636465366539
56-
30653865656639343731656130343533393966383364613936333734346362393932623733626163
57-
31393639613063666364616337613332336538393732646536633134656132356632326232393964
58-
6639
2+
35386538313861333464623436396562323431363532383462623266393563336566333665633730
3+
3935303162646636613561393030653037636433323031320a356533666636646433346338623761
4+
63613065633862633933383331323032343939633435343162356633653963646537376230333761
5+
6465373437663739610a666634613639646166353863303731613762613233313766343466653063
6+
38663332373930326566373633643335656438316462373862333366373861393862396637656165
7+
30333562663861356234383233653437386263386338396432326432323536363434383233626332
8+
61393434633361633531633832653836653934653666393836666435613832346339396435363633
9+
38663734643636323137633537656238646362643964383561643363373433613033303334656236
10+
62343464396663343834346337383762653561386665396530666561376361613731316266663737
11+
35663635383633626666336634643732666138343238343065356238343661353937333466356337
12+
64373465306562663638356665316366346333636165306362643136303931396338353638653734
13+
31303132663034323437373236333133663339316438616239306365626236653233313166643831
14+
34333935313532383939613832366262343538653234306439653465333831343261366335313836
15+
31306539663764333065343131636232653735343933343132653132663535303038373432663766
16+
66356332653762306365323437353736373231393363323561653434333561383034316633336334
17+
33353362336631356264303134666261613662626562613462333239626362303961326533356664
18+
61653435396464333833373232303934393039393435623235656538653834333930663237373533
19+
62316631643335343134313865323365623637333965336638616236393333626665653835323031
20+
34316531396563653461343132333465326534623565353864333062663436316364306538303566
21+
64373431616361313132313734636163383831326333346236343735376431643865373837373865
22+
61363332623662386666343762333763613437363033383738356466653732653931636663613761
23+
65366662363531313966393666373263336466613265656461636562346264386134636466633633
24+
33353462376137393633326261663963323434333036353262393736363936383166376430343631
25+
36376336623166383631623165613834313137323839393631363361393664333038363934316261
26+
33393764353861346236363439373035393531343632353233306632343763386438663964613434
27+
36306131303463336637323035646135366431663534323538323039313336326432663938396566
28+
35363861623662393636323534613463353332623634353864656231656137313835316362323934
29+
63663862633465383338666161316264656435353465393233653063626230656664333365666366
30+
63393639666135663535353762363362333738316263343665653934653937396336373231303862
31+
39366130336432616239363964376265633135343930346530353961626261623061653839616566
32+
61353133373937396366376433356137383962353936326266396631363138643539653965316364
33+
38336235653662383766366565663637376366343066646139633562653166656336333163326635
34+
61626532613932386238626237653738393930323365626135386135316633313831333138643733
35+
30363364353364323631643062353432653665663130313839386535393035303733633734396337
36+
66666636316562646431633135656565633764303831373563363763386435653231366634306265
37+
63373737313830383331353462373935326633396436313262313136373165333465373330316566
38+
65383835393063313963343630306335333033386363666264376631366666373132386130303764
39+
62343436633839663931306233366239326433643465353861616435333061313937633864303665
40+
38306331303135633638396264383330373434393731656531366636626665366362316438393130
41+
39656163386539313761343831393339333033353132653333343061373134353937646333396361
42+
39396165646166666464653032313630326534663264323764373866326630663039393362633832
43+
63343230313961633432613365613664323163306435616135353462393236373533636362316234
44+
34396230313764646666336565313333343661343930663335656362333331663764393231613130
45+
33383938383939613766323732613866613831333466393630333734366361386432666536353030
46+
65393532623031636466353362636333376564653539613932653934326433306232336532316630
47+
37653663386361386638633238613639663462353262643937396663336336326561613730643665
48+
30323336396432386330636464303838613635623532653931366363626639373165323961626237
49+
35616565366664343734353239663162356366623966373839383964623062376364626532623663
50+
30663639323638646534313534376639393139373930346563393430373338343864303263613166
51+
38623862636165636433663638646539303038333766633831323839613363363961663035626436
52+
66343632356161313839333465306363666435313639303734363961663538323563313739343465
53+
35323738343036343838643561366631363737383434306232613564363762353032333761353565
54+
39323235663736666334643131346635333833643730656263383862323666326136333736393964
55+
38643665373064313562623665343962376432643037326661306539376337333965353066346431
56+
30626633656632333134396232663666643662313865356231363166626436656630333636323932
57+
39313533333834626366636532353638653735656663303738663332333531343362396433343162
58+
36633432363761643739393532333964383563323635373365333661613237656432393731383834
59+
64313333323061663339393438343734373961303436353162373862636434653363316263633034
60+
31343237616266336236663330643236316232616337623363356130363832373436306365363632
61+
36373635356564623639316166353163636332613430313833666466373135653936316632356334
62+
65396231393635316366376636323131613938663762343330383236653230343535373036363665
63+
37343164306664313237366133363162626130633636393430653562303436666339343164396636
64+
63396539643164323137303234373836393534376333393436323761303930313966363264633334
65+
61333237623732303536616165666666303835373134396530373030633932616664326461383964
66+
62373835636139333464393861653538633732396338626334623361306530373261316630616163
67+
37306164623538646664363266636537343837623065643834343461313063623037386230313962
68+
65613033303861303633376333333061613737626131303635336230623631323632356330383165
69+
32646666386166353335643535326235353231383730666161313531616431346233333438363435
70+
37343666373833343036376238336130623662376661306634653733633033363561303336643130
71+
31656234313531666436663538396338646663373931343363613734316532646164663662663933
72+
34666631623036373031356335663432383839333938663031383838383961353962326633323436
73+
32313236363539626663396263356234643361633634613931626261326131346464333366396439
74+
65356534623133656638616630396434626663653131643663363536363936626431306239353437
75+
63666133323731643932326233383930373631356138343837373362336230663538643037643166
76+
36363162396261313031633036316665653135653138343066353838666138306530363266326666
77+
63653039353634343165333732393035336561306235363630373535386263356262663337313164
78+
39343736333338313138383831366537376538363666343863666461666564333564623638333664
79+
38323435633162323632316464373836666162313261663866653964643965353637633733613232
80+
31633962633437303064356562313331383835663430646131343431626164336134396663366463
81+
61646665613966396462333437356663663534623035333538386330333230343739383432663731
82+
36333232646261356463636135346161663935363331633765646161353661353437666264323164
83+
66663639393862663534613565326637636665306133336139346530323335623238663038636132
84+
39333333343434313830343666333065383039666363643333393665386664363562623565303164
85+
32383734653937653630363133623864643165303530663463373531393435626236373736663963
86+
63636666323930313862326533666532316564393934626361303166333731643431363464366563
87+
64633563346632303663656336356637393965653633313262616134336463353965626238373536
88+
30326262353730656562323339666337396239656236356663346265343139616362383636623466
89+
37333932316363366533636232636464643735643363306663636665366563373639623434616436
90+
34356662613939633639656233363538366538356634646134323931303533393735623833316563
91+
34666662656131343832356366643235376463653465653938663837663863386631613733356266
92+
39353938386338643263636631656334306338616561346666633465393633346535626131336335
93+
30366530613838623639356663303735376237346533336131653161623263343566363166616661
94+
65373063626361616335316361613332376663386434643737636636373336653439353339613362
95+
36333030616563396534633436626537336235313065396265323262353563316462613438656239
96+
34333230393466633038393631376336653432383231633262656133386130623539373638653930
97+
62323461343433343331383762623862313737363737373937653738303661396332366330386562
98+
38356561366164363861386662636665326264393764653336663132356534343864323961313533
99+
65376561356333633838313864363963393264353534616237383063623264373931373535373333
100+
63373733393430643539373535663834626438306133353161363637663936326537383138323461
101+
39393961616165336564633331326131656632633633343661346631656434366432623137616664
102+
65653637313437396636653433376165393130333066303366386434353666343032656530623436
103+
62356365303131653436333066616339323765643164346336666435316361306131383133316562
104+
36326565333464396565663235663537366337326538353638656237396639643231643538376165
105+
35356431663932306235

roles/flux/tasks/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,39 @@
168168
--from-literal=password={{ vault_forgejo_smtp_password }}
169169
when: keycloak_smtp_secret_check.rc != 0
170170

171+
- name: Create omni namespace if not exists
172+
shell: kubectl create namespace omni --dry-run=client -o yaml | kubectl apply -f -
173+
changed_when: false
174+
175+
- name: Check if omni etcd encryption key secret exists
176+
shell: kubectl -n omni get secret omni-etcd-encryption-key
177+
register: omni_etcd_key_check
178+
failed_when: false
179+
changed_when: false
180+
181+
- name: Create omni etcd encryption key secret
182+
shell: |
183+
kubectl -n omni create secret generic omni-etcd-encryption-key \
184+
--from-literal=omni.asc="{{ omni_etcd_encryption_key }}"
185+
no_log: true
186+
when: omni_etcd_key_check.rc != 0
187+
188+
- name: Check if omni OIDC secret exists
189+
shell: kubectl -n omni get secret omni-oidc
190+
register: omni_oidc_check
191+
failed_when: false
192+
changed_when: false
193+
194+
- name: Create omni OIDC secret
195+
shell: |
196+
cat <<'EOF' | kubectl -n omni create secret generic omni-oidc --from-file=config.yaml=/dev/stdin
197+
auth:
198+
oidc:
199+
clientSecret: "{{ omni_oidc_client_secret }}"
200+
EOF
201+
no_log: true
202+
when: omni_oidc_check.rc != 0
203+
171204
- name: Create openclaw namespace if not exists
172205
shell: kubectl create namespace openclaw --dry-run=client -o yaml | kubectl apply -f -
173206
changed_when: false

0 commit comments

Comments
 (0)