refactor: clean up directories and start standardized role names
This commit is contained in:
parent
e2ef196a62
commit
2ae759025c
25 changed files with 160 additions and 0 deletions
14
inventory/external.ini
Normal file
14
inventory/external.ini
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
; [nas]
|
||||
; 213.119.99.214 ansible_ssh_port=2223 static_ip=192.168.0.3
|
||||
|
||||
[ruby]
|
||||
213.119.99.214 ansible_ssh_port=2222 static_ip=192.168.0.2
|
||||
|
||||
[gitea]
|
||||
213.119.99.214 ansible_ssh_port=2222 static_ip=192.168.0.2
|
||||
|
||||
[web]
|
||||
213.119.99.214 ansible_ssh_port=2223 static_ip=192.168.0.3
|
||||
|
||||
; [actual]
|
||||
; 213.119.99.214 ansible_ssh_port=2223 static_ip=192.168.0.3
|
||||
29
inventory/group_vars/all/vars.yml
Normal file
29
inventory/group_vars/all/vars.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
ansible_ssh_user: debian
|
||||
ansible_ssh_port: 22
|
||||
|
||||
# Values for static IP configuration
|
||||
broadcast_ip: 192.168.0.255
|
||||
router_ip: 192.168.0.1
|
||||
|
||||
debian_pass: "{{ vault_debian_pass }}"
|
||||
|
||||
ansible_become_pass: !vault |
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
38306565386265383731653936353766396630626163316335643261613561363030653561346239
|
||||
3764363033386531623331616132643637353536326439620a356232626635626266656331643466
|
||||
36343435646561643662373138613237626461373330346566356132636366623731643838383633
|
||||
3765666163656264340a663138623535626161376666323862373131383637356231323737313564
|
||||
6430
|
||||
|
||||
woodpecker_server: 'ci.rustybever.be:9000'
|
||||
woodpecker_secret: "{{ vault_woodpecker_secret }}"
|
||||
|
||||
restic_version: '0.16.2'
|
||||
|
||||
ntfy_user_pi_pass: "{{ vault_ntfy_user_pi_pass }}"
|
||||
|
||||
gitea_lfs_jwt_secret: "{{ vault_gitea_lfs_jwt_secret }}"
|
||||
gitea_secret_key: "{{ vault_gitea_secret_key }}"
|
||||
gitea_internal_token: "{{ vault_gitea_internal_token }}"
|
||||
gitea_jwt_secret: "{{ vault_gitea_jwt_secret }}"
|
||||
32
inventory/group_vars/all/vault.yml
Normal file
32
inventory/group_vars/all/vault.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
$ANSIBLE_VAULT;1.1;AES256
|
||||
62316366343931626135336332623963643864616164386132363565303565303165326238303132
|
||||
3266623662613739333637393937373137313161306136310a613335346362346333323461336130
|
||||
61386264346464376539303733393961306664376663613034316337313963343761636634636131
|
||||
3231633934646130630a303038383563346539383561386362613935376634306561643964626334
|
||||
35333166623531383236623535636362323039613136346534343232306163393436366135373634
|
||||
31303338303939613433326633373838353431653231646430333333323665643130306436663539
|
||||
35393266346232366161653332303264623733343262636363613630323366376130646264333739
|
||||
34396139303130613631646535363831623463333565396134376234356132336236373366313830
|
||||
61386661303966313862653732653338386466643838636263393766366139373237316165643764
|
||||
66336465613838316465316166653064343066623339616530303038356238303832373135663665
|
||||
35383938333362643038326635316538666536613137663633363434336138306135316665353734
|
||||
63633439366664613633353465643466663564663832396435663931643538636238643233373039
|
||||
35623438333139353632383263343538626561343035613239366266623033636335633536643431
|
||||
30663139353634663662373062363937393838393266343264386134306333326164656334316364
|
||||
39343662313464383362646237383337393664623632653235623165666636363635383636363430
|
||||
35306365383536356265363733396165303765316638366331376230306630393735393334653362
|
||||
65313332646434323831313764306230616236383963376634623437346635653937623830653064
|
||||
62396162396165643563373239373264396137666334646238616262663464623363373565626539
|
||||
64373936346166356134306431616638346633376366336136383939666665373565383633336431
|
||||
33346431353639643063616630313630653038616430316366323137303034336539643161383734
|
||||
35346430643433653866663636333639343364363831343531363937313330343865323535353533
|
||||
32666566343736653135363966643665396234636437316438636530366231653963356237613065
|
||||
30623338323733666365613631666361306666613364393261623732623963613731613933383138
|
||||
65656565396435643833613764346139343365663766623535626166346330633938626135326230
|
||||
63356535633834633763363666333662646633366537623732623835653332316239646135373933
|
||||
30333339396237386538343434653764613036396463333263333061316136323336356663666664
|
||||
36363235643334363666336364333336366439646537306235333532343832653531356430353730
|
||||
34303830343734653631313936383962343131643965303464343031633030613635356231633566
|
||||
63366531663361386461333532383638636662633261343365633361346535366132303339346664
|
||||
33626638643233333766356534393039393962343630303137653733393532633264616664363235
|
||||
343465376233356362383334663334633033
|
||||
23
inventory/group_vars/nas/vars.yml
Normal file
23
inventory/group_vars/nas/vars.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
raid_uuid: '4d184875-19eb-4923-9b79-bf669c1f7978'
|
||||
|
||||
lambroek_password: "{{ vault_lambroek_password }}"
|
||||
|
||||
s3_access_key_id: "{{ vault_s3_access_key_id }}"
|
||||
s3_secret_access_key: "{{ vault_s3_secret_access_key }}"
|
||||
rclone_obf_pass: "{{ vault_rclone_obf_pass }}"
|
||||
rclone_obf_pass2: "{{ vault_rclone_obf_pass2 }}"
|
||||
|
||||
lander_commit_sha: 'e438bd045ca2ee64e3d9ab98f416027b5417c3f6'
|
||||
lander_api_key: "{{ vault_lander_api_key }}"
|
||||
|
||||
restic_rest_version: '0.12.1'
|
||||
|
||||
ntfy_user_pi_pass: "{{ vault_ntfy_user_pi_pass }}"
|
||||
|
||||
nefarious_admin_user: "{{ vault_nefarious_admin_user }}"
|
||||
nefarious_admin_pass: "{{ vault_nefarious_admin_pass }}"
|
||||
|
||||
webdav_version: '5.7.4'
|
||||
webdav_user: "{{ vault_webdav_user }}"
|
||||
webdav_password_bcrypt: "{{ vault_webdav_password_bcrypt }}"
|
||||
webdav_password: "{{ vault_webdav_password }}"
|
||||
46
inventory/group_vars/nas/vault.yml
Normal file
46
inventory/group_vars/nas/vault.yml
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
$ANSIBLE_VAULT;1.1;AES256
|
||||
37373564656134613736306633386537663237363864326137613332366537353336373431653664
|
||||
6334326532353261303062636632346564303131663462380a333937373539616234663363353536
|
||||
33626565303730373666363938343739666138326437323732666238353364636665626439396633
|
||||
3039623438383931390a333733356337373636653033303963326338353333663965353465326231
|
||||
39306461633566396234646437366130623934623438313631373939343839653062323163326562
|
||||
31336337393335313038363263616337343239646366383734306533336432643762303265376161
|
||||
39633263326464663538386435313836363831396638663332323135333066636564383139326235
|
||||
30313731616363383332666637633431666332613566383437653939386238306634306238383764
|
||||
36643864373165633366626130336235303832323132613766623836376531316339313161383533
|
||||
38383536656530303262363238343666303535343837623662663537386634346430353464326630
|
||||
32383332343633313232316135653561653130363635343731316330643331636265623532633030
|
||||
37643234373234663566313436653961333962626436633735623165353237636363323530353061
|
||||
64336336373566343664343062396534316332303039663561383339643038336332353762636236
|
||||
39636139383138623762373837333063316330306137336163323534316231643331373235613935
|
||||
30323730363363663535346534356233623235653131633564613062623661363765663562323661
|
||||
31386430623364643262356536343837356139616435306334313137643361383732666133343164
|
||||
66383338383137633136373861623062616233346165353165623635663034633031393635333732
|
||||
61313238386466346434396632656337393765306464346636643762366261383935393966393963
|
||||
66336362303136323033613561613132663863316366663231636365393161353937353236363466
|
||||
38663265653136646462396136323231636536373463376635646238386334313965346431373465
|
||||
33373431636166303335643338323632336661623531353039633431656365653236303236373735
|
||||
32643564363034366631326366326262373239393463363533396365303434393834363438303862
|
||||
66313532633439303138323139383739633765366264316637653936333035656438306335333963
|
||||
30663331333062396166376538636564303035636561613239363034343036343437323062303432
|
||||
63386332346330663939343133393763663130303430333862353165343563623435303131656634
|
||||
34663266663030326432626262363632366339383335383534623565356331383439623066303735
|
||||
32666137333632653134303331373332626135623861646230363365666333623832306561353163
|
||||
31303065653865306136613762333835336535306336326331303161653438363261326339633431
|
||||
63643266646630656464646463363930626163363635333061313733353234613766666134393761
|
||||
34346137393836666162363834313531353830366164646430373838393636643962646530326436
|
||||
39336665323163393236393131633432306639633733353236656131306662373566636530343236
|
||||
63323538323365383137326361386162616233633663656461636336343161356334366232363738
|
||||
66623534313632343561356261343361346231363639376339366430303739633233343838333061
|
||||
38356265633635636361366366343034643631393834343962306466383931353463643333346164
|
||||
37366461316638303738376138356165653833616264343937383964326330663265393938643265
|
||||
66613364323766613061616434356532383530373434363562653132353031633432376231666135
|
||||
30633236386131646438623932363332373037363336663838343035613334323133623933623838
|
||||
30313934383634346266326163383362326436333337363034373830666564303761313430303462
|
||||
62303035623231326566636265333733386130643231646133366434373438383266346436306134
|
||||
64393332383765656163376433636163666564333862303131373561643036303364643831663232
|
||||
63303561386334623038383462643463333335396331623530386432646663336638636263306537
|
||||
64613239623563626266663536356338363961373636633831613863343631643461376566623138
|
||||
33306334353534323465323834306631373139666134373664383735646365643737376233356434
|
||||
32653435373533353634306331343139656636643439666536666539313934356532336461653934
|
||||
36366537653762303331613466323438653032326132353135303934356430376663
|
||||
12
inventory/group_vars/ruby/vars.yml
Normal file
12
inventory/group_vars/ruby/vars.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
t5_uuid: 'b3b60b45-0bd2-42ac-a8d8-35a44fbd2529'
|
||||
elements_uuid: '5D19-E5D1'
|
||||
|
||||
monica_app_key: "{{ vault_monica_app_key }}"
|
||||
monica_hash_salt: "{{ vault_monica_hash_salt }}"
|
||||
monica_mariadb_root_pass: "{{ vault_monica_mariadb_root_pass }}"
|
||||
|
||||
miniflux_admin: "{{ vault_miniflux_admin }}"
|
||||
miniflux_admin_pass: "{{ vault_miniflux_admin_pass }}"
|
||||
|
||||
digikam_mariadb_pass: "{{ vault_digikam_mariadb_pass }}"
|
||||
digikam_mariadb_root_pass: "{{ vault_digikam_mariadb_root_pass }}"
|
||||
26
inventory/group_vars/ruby/vault.yml
Normal file
26
inventory/group_vars/ruby/vault.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
$ANSIBLE_VAULT;1.1;AES256
|
||||
38613635363435396562373461643133326636633430393530643166666334366132396335316130
|
||||
3662663565653432656365653265393636643233363564370a323866373639376438323135343239
|
||||
35623865373737396636353766636333626566666439343737396537343838333361363366303334
|
||||
6632343033386337330a333665643361373564636636666461393637356332333466656430383731
|
||||
65626537623733356134383464333162656438323964313630383930313739313465316331653034
|
||||
36376665663331363466613330343665313333323339306365323365646166623537303434303730
|
||||
32363037343761633466636531383864303335363938623932346232366261636262643034346138
|
||||
31346132636334636637353030313339376262316433396334333532363138353365313838373231
|
||||
35636335626664663637326437323733366331623435336666383434376430613564356636376432
|
||||
62393064323336663064346266373934343736653666383362636434333962323466313631333165
|
||||
66323431323966373263326464316432313636386238393339333161386162333337353631303466
|
||||
64653034653965303039343464366463613564343634616230366665363861336633366530303562
|
||||
38303065346237653233386566353766356637383965363636386566656139643638613461613037
|
||||
61333737343964383034393839633462323466303030323433383163623862313433333932613831
|
||||
63306665626465386230326665303430643637653836383237393531373739646666383237356338
|
||||
30663462336366356636366662383864353764356264643237396561316633353261626236306165
|
||||
65623366356665623334303835366361656365333835663032656338373937306130353839333366
|
||||
62386130646164656538653031386561666230653635636661643264396430656234623634333037
|
||||
63373939346461613964363335663833376564363234616564346261363362626135323537643864
|
||||
38353936653434323735393966623664343761653934366638626239643135333139653461306435
|
||||
38393232373834366234663762633062393633333234363938646562386334663633626434653763
|
||||
32643831303037323738393962666136333138343937313966623264613633373134316135666563
|
||||
36366165343031376266353461326465393538363039333135613736643931306333353031313635
|
||||
66646266346566303231346638346436323766633233633833376166663235326337363136376561
|
||||
63363633613639656437363738636236636365343232393731356638333335356331
|
||||
55
inventory/local.ini
Normal file
55
inventory/local.ini
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
[nas]
|
||||
192.168.0.3 static_ip=192.168.0.3
|
||||
|
||||
[ruby]
|
||||
192.168.0.2 static_ip=192.168.0.2
|
||||
|
||||
# Caddy reverse proxy host
|
||||
[web]
|
||||
192.168.0.3 static_ip=192.168.0.3
|
||||
|
||||
[lander]
|
||||
192.168.0.3 static_ip=192.168.0.3
|
||||
|
||||
# Miniflux server host
|
||||
[miniflux]
|
||||
192.168.0.2 static_ip=192.168.0.2
|
||||
|
||||
[monica]
|
||||
192.168.0.2 static_ip=192.168.0.2
|
||||
|
||||
[ntfyserver]
|
||||
192.168.0.3 static_ip=192.168.0.3
|
||||
|
||||
[nefarious]
|
||||
192.168.0.3 static_ip=192.168.0.3
|
||||
|
||||
[matrix]
|
||||
192.168.0.2 static_ip=192.168.0.2
|
||||
|
||||
[atuin-server]
|
||||
192.168.0.2 static_ip=192.168.0.2
|
||||
|
||||
[gitea]
|
||||
192.168.0.2 static_ip=192.168.0.2
|
||||
|
||||
[kanboard]
|
||||
192.168.0.2 static_ip=192.168.0.2
|
||||
|
||||
[baikal]
|
||||
192.168.0.2 static_ip=192.168.0.2
|
||||
|
||||
[photoview]
|
||||
192.168.0.3 static_ip=192.168.0.3
|
||||
|
||||
[calathea]
|
||||
192.168.0.2 static_ip=192.168.0.2
|
||||
|
||||
[actual]
|
||||
192.168.0.3 static_ip=192.168.0.3
|
||||
|
||||
[otter]
|
||||
192.168.0.2 static_ip=192.168.0.2
|
||||
|
||||
[webdav]
|
||||
192.168.0.3 static_ip=192.168.0.3
|
||||
7
inventory/template.ini
Normal file
7
inventory/template.ini
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# The admin is the main host that initializes the swarm
|
||||
admin ansible_host=
|
||||
|
||||
[managers]
|
||||
|
||||
|
||||
[workers]
|
||||
2
inventory/vagrant.ini
Normal file
2
inventory/vagrant.ini
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[pearl]
|
||||
192.168.56.2 ansible_ssh_user=vagrant ansible_ssh_private_key_file='.vagrant/machines/pearl/virtualbox/private_key'
|
||||
Loading…
Add table
Add a link
Reference in a new issue