mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Use hcloud-csi to provision volumes
This commit is contained in:
parent
43dd47e761
commit
c4c6c2ff79
3 changed files with 89 additions and 60 deletions
|
|
@ -1,61 +1,65 @@
|
|||
$ANSIBLE_VAULT;1.1;AES256
|
||||
37623833363930356539333739623333646134393137613530646463353538396639623263336534
|
||||
3435653535353337376633386161323065383064313436350a363932663165646562653539353836
|
||||
31363830643663313035376238663764653836306265333564366436313031393561393164666262
|
||||
6535623234353339310a633739633863646363653938343733313032316231333063636630323038
|
||||
39336130656534646433316531666563616361383133333938663966373630656165363832663732
|
||||
38373533393365643233373636353663623937373062663530646238326462663339393961313633
|
||||
35663733353936303962336262356663366461653236333731636233383736376161376463623639
|
||||
38373162363437313138313530656538386666633034633434666639393134383630613238613061
|
||||
32626162626165313262623732373939313166666435326436316335303937323265343136303834
|
||||
62313531353830343766396537366662386561643034316130343738653163386331623838626365
|
||||
61393866643463323364633664333461666266396135356130633861333034616561613934666661
|
||||
35366161643963646165343031306161653330373933393736316261656437373232396438396565
|
||||
30313633303065646231393532386530333231313665306534343234383830313932623162393664
|
||||
66643665653466613265306365613133653731333262653039303437323565326265323064326536
|
||||
35356239356533323235663232346138356639336165366265353631316263646564346463383831
|
||||
61313464396166333762326263363865653436643435653833343536616632386265363266316663
|
||||
34643832326564313366613237396138396131393465346439333032373833326339326630656333
|
||||
65613538616337386636623965306562323163623265306339353061376466326336653031363437
|
||||
35326161323233616363643037316564306164613761343765323566313836303934353436303863
|
||||
35356365346139653032376432356133393464626263626339666361333863323635383562323963
|
||||
30366532623639353735333762363565373834643335303630303664666663373830326336663933
|
||||
61366238353238633437363634333562343039653332333034356463636363346437313833626238
|
||||
35623138666464396531323731363832663035336533386332313832663563343863343331653833
|
||||
66316134303839346536363431373362316530633739646238633232343334343066396636613537
|
||||
61623935616262316164313639643162373035616365646537633631383830376563666136326264
|
||||
32313666373635633339393734636266643536653430336364643832633530383966383361663666
|
||||
35393135373464643738306463616633363539623834323035626262356634316636616332643964
|
||||
33633136383231353238383661363932623537313937633935613865303161663530353561623035
|
||||
37323334323339303631356338306164333864633033666336626266386235313431663130633163
|
||||
37663261653939633236633165363233353535353939343262316338633631363433656533356436
|
||||
36623266393539383732643134383038653636323661653430326132656435373161356639666637
|
||||
64376534346662613930333932633737333963336533316135383438353264303136383931393633
|
||||
30343037323761633764303461356334313635373937613438386466303934366530356163636163
|
||||
39323535626332653736326338303232396532613533376331616264646164633239666663613961
|
||||
62343530626431396234613565376531353237663833626532633336616561383438626234386264
|
||||
61613333653764663130333132653438633738613566373164653562633066623939653965366231
|
||||
65356634613931643234356434366562306337353331643030313336653162646163393933326433
|
||||
34383331333630646432383635636430333232633034303362306331376532613363656462316662
|
||||
33386130303230613536323832646534336562663733336535643731376663666530663930343430
|
||||
39326661653766386365376562316135313766306333313439376562613938363361363936663032
|
||||
34393231633536383231376362653336336637393235343039626335323331383935366164376461
|
||||
32633762303837343363643736623631376138323933326162356463313665303830363062373562
|
||||
61343731633139636638626437313933663736656162663130336563393464316161343866353764
|
||||
34383239373264323838663731643737666334383333336561323935353465363135616535336636
|
||||
30653139663866376535616433333266303437656430366132666330376263656664616638323236
|
||||
64323464656339306339373362656134366335353831316565643539363436343931656239616335
|
||||
61626264646133336137333262356630396138626133376433613031386363623161373334666539
|
||||
34383234613337306262626639353063366239646235396233373231303134353130343462646365
|
||||
66326433346137626232613565376630623361393163636632303734323931623630386439333363
|
||||
33326133326263616464313164306236656433643864343661306436636337303962646236656131
|
||||
62393734353663613431386263636536336234343932646266663435323063323566353539313562
|
||||
39373765373539303133663866643263383266326364333863326263666166353237353734376566
|
||||
30393636316632636538656466353237343466346334363864323439303265653833363366633034
|
||||
39663764353138633039316263316531623430636634643538363066623737346363646564613632
|
||||
66306461336535303365383362633933623332643534343437653234613036363264376466653465
|
||||
32343636373737653463653534666433373561656438363038373933633630633966363533663537
|
||||
30663061396263303334366363363538643135663731656434326238353165383030653932613432
|
||||
38613764336632316563623938333430333262333364363962666337623636346664626332653039
|
||||
62663363313062323137386638653762663437346164643932646364303361623961643261643262
|
||||
38616563643732613739
|
||||
61313536343933303462303565383438663161323364363865366337363637396133633662643734
|
||||
6534666131363434333566396263666530353166323237340a306264623462646361666339346635
|
||||
66623838373239336530663536396366646362393734653361353561373533613835363437643535
|
||||
3635363039643162390a623665336566613939366331336134663133326233653439396430363030
|
||||
37656435666362636132653732663063653738343339643338643731323461303264656266633562
|
||||
38616432303732376536613866386662333732333564316239613666383431636535393237623437
|
||||
30396361633362643435303264373264363539366539633034636539363034393830373065366137
|
||||
37356561613833346339363161623435353532373962353862353734643231616630363965633261
|
||||
62303261343031623437376565656565613737346331666534393731336636303766323237633531
|
||||
64613536663037363935323665633265643964663735336635626163613832383665393833633431
|
||||
65613638646365663466626238613135303136343563613664326131646562336336303666323165
|
||||
61366132353061323263356330666661386534336366353461303362643339386337383362383161
|
||||
33663832326338666336666634626661303136633037373832373938383963336366393836613264
|
||||
62623739323062373636343835346133353330333336316236363939396265376432643164306238
|
||||
64633533326332303939373761323066623864613361393133343731383137343562393933613832
|
||||
38303261633133386136613833323863313437356332306531623261353235663032373061363437
|
||||
30343337326631646333383165393731393630373539303336633362613865383231336662646130
|
||||
64383332663038653363303732353133633663393236313939653735333162366565666430373062
|
||||
31633530346434313862376233363264663330356132313464326337376637313161396136353862
|
||||
38663163306335643139623235663838376531383530646262666335623130313735656235323730
|
||||
39376666616134623536643065356465356532386463363430373036346238326666333131393330
|
||||
37376231636136353861356665333631646364396162343361616133383531393865393038373136
|
||||
64666263393762376430616437653331373462396139653133643030663434356164373366306134
|
||||
33353537666564396333643262643464643131643030326537383239306666656162373865336365
|
||||
61343362303465666239393766333930303066613237633132386266363861393731346633306261
|
||||
39383639363665316163646237653163616530353537653764626236363434356161666463366632
|
||||
65303035353938373834616233353337656263393432613432353332343833623833393038623331
|
||||
39336337386463376431656433343036356463613965636335313531373532313435643336643833
|
||||
63633237613334303463383839333563323138306437323333623438363736316362376661616663
|
||||
63323466333731346230393431663232346236356636636465663031383562363866616663306335
|
||||
39396165353937616566626530316263343931356232613964336131383465333339383535613037
|
||||
66636363376163343639666338356537383931666431396663613361386232376334326335366233
|
||||
37623739336665356637313636326236323636373166633561316437353366383664373836306265
|
||||
65326530666664313861363464306366326430396163653563323534313733626637336362626138
|
||||
32653232306131653832353464663864623330373935653036613664313236616236653263666164
|
||||
35313863623535646531643933653638353236303537326539623632316361623930613261363038
|
||||
38303066623762666363386238306534376537323933613434343161613136623532356531663530
|
||||
66373631636263653763356464383664373331373062373430613663656338383532383066386638
|
||||
66626161333733646362303031393830376334396463386661393863373163323736616561623839
|
||||
36396534626436656134653136646633646463393133366133366334393032326435303436313038
|
||||
32653961633036366339656664633362653864343539376134306561303163323735616462333964
|
||||
61376631323833346261313562616635363738653333333734616134303362346238326238386363
|
||||
38333437396562386265323033393338326539346265613362656332366265376530336438643433
|
||||
37363366376563323732376633633931633939363366323939326632633462663739666139313135
|
||||
35316536333331623263613163393938653434643130396365383735636436666134383030323535
|
||||
64316130343735306437313933613564353565656361613532353762393764626439303564613163
|
||||
64363737646533633361643332323764363637396232663034333437333136383162633731383363
|
||||
36313636316362383864336234653130333634353662383361343864396566366266653331616136
|
||||
32336637356664636135613530336566633435306132313862306265353633646136646661386334
|
||||
31666566363230393739663631383137356535653463313436633963303635383031343662616561
|
||||
39373165643735616535623235623265306439393237323330656535646162646235666661636663
|
||||
61313434383866323465663334356161636661336566346461373234643130333734653437366438
|
||||
30653764316139356633353130616564626534326633306461393933326334316239613361656363
|
||||
66363731353430636264383066376237623037396563353938373961633961623938623462396462
|
||||
37303631643531323130666165646232353961346362616232386437376331623839326132366363
|
||||
33346437643532616264343164333039666530616533393638663164656432666336346233333034
|
||||
61613731326665356331386534656237666631393138393230626562343366313062643930363832
|
||||
62393433646534653132323439636438653266316237396265663635333463653762636635396263
|
||||
61626434306466633731623937363430383134643233363964336537366666623733326635396466
|
||||
66623037376631366130323730343763323666356533653133336533326465653935383264393138
|
||||
34323565343939313836643263303064643030393965393136303136636366383239663337636431
|
||||
38616537626161613536663230393661356564303239386262326237333539333565653763656533
|
||||
36643336333739373934366334663766313832363366653135396131333238303230366530636361
|
||||
34336465343731663938
|
||||
|
|
|
|||
22
roles/k8s-manifests/tasks/hcloud-csi.yml
Normal file
22
roles/k8s-manifests/tasks/hcloud-csi.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
- name: Create secret with token for CSI driver
|
||||
k8s:
|
||||
definition:
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: hcloud-csi
|
||||
namespace: kube-system
|
||||
stringData:
|
||||
token: "{{ hcloud_token_csi }}"
|
||||
|
||||
- name: Download the CSI driver manifest
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/hetznercloud/csi-driver/master/deploy/kubernetes/hcloud-csi.yml
|
||||
dest: /tmp/hcloud-csi.yml
|
||||
mode: 0600
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Apply CSI driver manifest
|
||||
k8s:
|
||||
state: present
|
||||
definition: "{{ lookup('file', '/tmp/hcloud-csi.yml') }}"
|
||||
|
|
@ -2,6 +2,9 @@
|
|||
- import_tasks: prerequisites.yml
|
||||
tags: prerequisites
|
||||
|
||||
- import_tasks: hcloud-csi.yml
|
||||
tags: hcloud-csi
|
||||
|
||||
- import_tasks: cert-manager.yml
|
||||
tags: cert-manager
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue