From bee969f70a8b22e19b1f85c28b4c0c7efdafdd8d Mon Sep 17 00:00:00 2001 From: kaiyou <dev@kaiyou.fr> Date: Fri, 1 Dec 2023 20:20:28 +0100 Subject: [PATCH] Split the CI config between vault and public config --- .ansible-ci.yaml | 46 ---------------------------------------------- .ci-vault | 35 +++++++++++++++++++++++++++++++++++ .gitlab-ci.yml | 13 +++++++------ 3 files changed, 42 insertions(+), 52 deletions(-) delete mode 100644 .ansible-ci.yaml create mode 100644 .ci-vault diff --git a/.ansible-ci.yaml b/.ansible-ci.yaml deleted file mode 100644 index 36439fa..0000000 --- a/.ansible-ci.yaml +++ /dev/null @@ -1,46 +0,0 @@ -$ANSIBLE_VAULT;1.1;AES256 -38653737346431313432383361393137313235373238353831306361363231333330616566613166 -3533363063363166366137346662386637616562366336610a306465616134303836633731383234 -65343436366535623133326132386537656262386430323337326234313434366165353539613735 -6464326535313530640a626330393363356266646238636633373964663662393131623137633430 -34373466333234316636633462653730336335616262313261643131633064393566393334326436 -63346430306339356232333439643062653133366165363734633261376132613264376661333535 -33393639636432643530653435303335616564666131656362346263383961333038306666313539 -32383532373664623763613031313437303537333064636366376630653062386431643935656238 -39313139333937316163303762343431666664393635336665663333633833336635373662626335 -65306537333136343062373131343666346334663333363137333330313630626563353034343866 -38343438346261646531333937306261373832616363313139353332356133346262653633316236 -37386161653230343862643038313964653235623439326131373362656361346230313130393066 -35323334336164353830633438363365303832323936333662343630616334366235356161326366 -30303832633830363630306537343336366434653837363431643636313232323336363335373539 -65383837383965646236343063373766303862343834333735623338343933623765386161393865 -65393665363761343832666237373666323230633166663564336531306432666634373330636437 -37666162656430343339326134353466303466373165633836343631363861356233393738366133 -34313262323430313765643035363037346464633034323635396263326635333030346266666633 -36313561653738336466396361396135666535636230666564343664643230333435643761383438 -37653262333663353137353435366666353834363233663539373436326133626561666130626361 -62303030613739343837623739323036343035616362363263376231623032316135386339323433 -36316338623762353466666133663263363865616265346334356265653161346466343136393464 -62616230326464383736336230346335303861306338356139333438343466336436396334326532 -33383533313530633762653338636132663531636163363038386137386539303033306161383661 -34323834306335383065363564333538303566326464613434323737323237633730636333666631 -38663464306330326166343064383162653565646634336335343331666337306464343563323536 -30343233656138303836373830623239356433356462616361633364356466396165323739383533 -65653164383263323965636666306565363361376334386237363062376636656632306566366434 -63356231346139393935393230633731363063363131313533666133306164643863373631633366 -30633761343763323964643963363132663364636430303865333664376362633239306361313831 -64373665393131323837623737383038376336333763393236396432343330336132313033396431 -31663534376330613166303433323939396634343266333631316235633437393963336265636364 -63356361376262383836646165353534353333393131303461343430333930383635373737636430 -64656131633032376631626264666666323338633630366335633139326333653264643139343039 -64323130613536383862393636643961646531376133643933656532616262333239393136316565 -35353162633932653663313235383537366139616633323762366336356663333632353631653934 -62326435363531386664663133636361666164393463383538316238366633316362356161366466 -32363032613738393164356539663130313032346430313535343034303830353637366361636363 -65393231616234373830636261653339636330643461306232663262386563646430663232633439 -61656165356434386338363236366332306237346136373162306461613833633238626531646134 -63336261303965393363383633623032663332363736336339326538386639363864353162343334 -63396537666663633431633365653962386639376461343630663331626235636366643162656563 -33316564353536323935323336336339343938383730636233306136656633313466313039653732 -63306331653638383863613166663539313964623666633539313635323039663738333162306165 -6236 diff --git a/.ci-vault b/.ci-vault new file mode 100644 index 0000000..b5d89a5 --- /dev/null +++ b/.ci-vault @@ -0,0 +1,35 @@ +$ANSIBLE_VAULT;1.1;AES256 +64613062363234366238366539623666373236633165343330303764646436626437346536363231 +6330616566653565313662656662383937363432633136620a633066316139643937653033333763 +31306130613363303035313139303664316463383033343961376566653731613939316235333738 +3431333538356264660a623532343334383437633264346662306336656134633932623830646137 +63326163313137363933643063633630316666656464303437353635366337336464306163646365 +35323463313033373533616336373831356636386163653637366138343736616638356366303561 +65656337343837333861313837616139333030333537636538363565316238346462663832663064 +37393932643539346330363636336362366239303036386432356239396534373865396233656362 +39633161636237376263316465386630626565343739393535616537623839316330623136633862 +34646561306333663534623135373031313134363065316366343335623730626433393230656465 +61356631343333623635363430326632666138313030326564386465346566636434613636326161 +31343963306333633231663130326437366662646564343032306564366534323837303835313237 +63656664633331643137313066373366636435633936373062663762383734333439623235326530 +39613136343963373465633266323563373163393436303136373337313534623837306333656439 +64383033656362343937646234346564363765386166356630643233316366396131656364323231 +63613664336133653965653063613131356130376638643738616466343930656335626139373732 +31353534313834383634623739313336336539366436356334663734323062323865643531336239 +36383538346361653437623436363031323432656166323865626662383934633563366131623163 +39323161643162653865396332303334643830376435643365636338353061373566353035353539 +64396133383764653731306132396539316562353737333338343935396564633231356238363135 +30303131636331373730623061343139346333643431366135383036346666323633303636636636 +30613733373663343466643464623433333862643631306565323632653335613331343430366463 +37653464363535626234636635666332386265616331303538653838653438373535333036656264 +65336438626436353235653338646562313166616631313762383562333563333533313638363664 +38333434623165616663636531303633343731626437383938613435636539663033366665636430 +39613762653930373839343965623235303564656365333836336266396462346431313566383364 +61633361616530326165396563346134633634356635396666373364306262376563356134316566 +34346534653038323937613434306133633632303935326562613336396437613633633166616234 +39656432376339666139653863376661313266333033323836343639376364376435383538393161 +34653634356530636538373535666332376366623533316232306263333833323237373766633862 +37376439316331393030323066333635366238613565626563663662396332363138633165313161 +36316532313035323833623162323436333639343939366264636539333530363136633135346635 +34626637396632336135393439386232363438373861613762623337393735636330633037626265 +3330383866636264316264656332316636363637383265356266 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a554679..e4d8655 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,5 @@ stages: - build - - upload - test compile: @@ -29,18 +28,20 @@ compile: - echo "$VAULT_PASSWORD" > /tmp/vault - eval $(ssh-agent -s) - ssh-add <(echo "$SSH_KEY"|base64 -d) - -variables: - ANSIBLE_ARGS: -i .ansible-ci.yaml --vault-password-file /tmp/vault -e node_prefix=ci-$CI_JOB_ID + variables: + # The ansible vault only contains secret variables, cluster config itself + # is set from the documentation inventory + ANSIBLE_ARGS: -i .ci-vault -i docs/inventory_cloud.yaml --vault-password-file /tmp/vault -e node_prefix=ci-$CI_JOB_ID upload: - stage: upload + stage: test <<: *ansible-job script: - ansible $ANSIBLE_ARGS -m include_tasks -a file=ansible/ciupload.yaml localhost -test: +test-cluster: stage: test + needs: upload <<: *ansible-job parallel: matrix: -- GitLab