Skip to content

Commit ecfe4c4

Browse files
committed
Add clouds.yaml to secrets
1 parent 5308368 commit ecfe4c4

File tree

3 files changed

+59
-3
lines changed

3 files changed

+59
-3
lines changed

.github/workflows/pr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@ jobs:
1313

1414
env:
1515
ANSIBLE_FORCE_COLOR: True
16+
ANSIBLE_VAULT_PASSWORD_FILE: .vault.txt
1617

1718
steps:
1819
- uses: actions/checkout@v4
1920

21+
- name: Set Ansible Vault password file
22+
run: |
23+
echo ${{ secrets.ANSIBLE_VAULT_PASSWORD }} > $ANSIBLE_VAULT_PASSWORD_FILE
24+
2025
- name: Generate kubeconfig
2126
env:
2227
KUBE: ${{secrets.KUBE}}
@@ -29,3 +34,7 @@ jobs:
2934
run: >
3035
ansible-playbook -i ansible/inventory ansible/run.yml --check --diff
3136
37+
- name: Remove credentials
38+
run: |
39+
rm -f ~/.kube/config .vault.txt
40+
Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,42 @@
1-
---
2-
zuul_operator_secrets: []
1+
$ANSIBLE_VAULT;1.1;AES256
2+
30316330346132396164653239346561616139663264363063376337613633636130663930663332
3+
3432623764383736303032386362366639643439363765630a633736666636623339383935623937
4+
61623966343563653266613164323664336339323262353130386363323166316330316331393735
5+
6366306663316564640a636631656531363436306134643663656630303866313935343066363533
6+
34663064633462343462303266623061613262336161656135643266636336306133646662363133
7+
66636438393632303764323936653536303736666435616435323965356233646631313066643465
8+
64333564306162373564333739333236326635383933653839336539643931393065643038613238
9+
37646165613234356537356362626432396263333764356233613964613133663762353463313762
10+
32623635363837613264386135623334653135623330306130663731666333363362326436343831
11+
62633038326530343338303164383937336163393431353064373335613065363234343132646630
12+
66666539343731366132653831646366346630333061303666643936393863643262393131386538
13+
63393663306137376634373534376661396661303733386134346539333861333333366436626661
14+
35346134343233353237353365333765356431333665363839343161303535303633313866363766
15+
38333039643564346466336538626664653936643834666261623464646134303234386264636633
16+
39326238353166623432313061346366396234643231623439373835653639623837353765636563
17+
65386561646332653734343835616533383238393639646234343861323830656265623333393633
18+
65653464646566323734316134393437313566363938376263646633656631663532373537396565
19+
61626635393362633432653337656538356439373766303165663038306134613966616266623765
20+
34636635643534643439366639393433353334306239316637303239653735636238353032626163
21+
34353135343838343562303530353435373466626135613861393163393164613164356132663930
22+
39303833623466356632306265613964613330353963306635646337383135313132336664316364
23+
36343332343665373066353935653264363434303766613362336261393365616262323038633565
24+
66376434356665653763336533653239646439333863313630356635306266336239316562653961
25+
32313334373139396237393634636538396565303933383232623333396131353838373365306137
26+
32326338323232336238336235363636333831363330313262666661306666336361343839393964
27+
36396134656464373466636238363236386133663538346233386563316630643838353264653464
28+
34343161343832343034633161663830316133373165333162353266306266373732343466376538
29+
66636530643936366531303734323432373261303439353432363332623164336466616364323564
30+
30303366303664333136613864366232623435653637613835396463373534633830323531616162
31+
35316265333036313233303130353862623835663030333964663834373730313837613331313833
32+
35316365623933633966623434326537623334393766363261653138343833333831383938386465
33+
30386339353437656134383733313863376430633461633134346433323632333563323930613661
34+
36373633343965373238616465383765373563303933353935623066303434643139643733373437
35+
35373536663933336337636139626665656639306336666539373461373335636166366233333665
36+
35353934323138333239373463643834316262353734393264626337346637646662383038303134
37+
39343730323430363964653437316634643061323336366432393234366663633830653236623937
38+
38323837313235316465353663373934646664353063306561343030396236613363313336616166
39+
39316335643035616136326465383034656366323530633132616239383938613133643534356436
40+
31353231623635633365653838663166646437646633313763393635313565623437393835316435
41+
35303736393535633637336165396462636334356461623439383337376161633635346533386337
42+
3034

ansible/run.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@
3131

3232
- name: Ensure Secrets
3333
kubernetes.core.k8s:
34-
namespace: "zuul"
34+
definition:
35+
apiVersion: v1
36+
kind: Secret
37+
type: "{{ item.type | default('Opaque') }}"
38+
metadata:
39+
name: "{{ item.name }}"
40+
namespace: "{{ item.namespace | default('zuul') }}"
41+
data: "{{ item.data }}"
3542
state: present
3643
loop: "{{ zuul_operator_secrets }}"
3744

0 commit comments

Comments
 (0)