Compare commits

...

38 Commits

Author SHA1 Message Date
Jesper Hess 04b3fb4baa
Upgrade gitea -> v1.15.7 2021-12-14 16:24:02 +01:00
Jesper Hess c2f1f10e0d Merge pull request 'Define referenced variable nextcloud.volume_folder' (#67) from nextcloud-fixup into master
Reviewed-on: data.coop/ansible#67
2021-11-23 14:31:55 +00:00
Reynir Björnsson 9e0fcfc4a7 Define referenced variable nextcloud.volume_folder 2021-11-23 13:49:50 +01:00
Reynir Björnsson 68c82a785b Upgrade synapse to v1.47.1 2021-11-23 13:12:15 +01:00
Jesper Hess 682e205c0b Bump OpenLDAP to 1.5.0 and phpLDAPAdmin to 0.9.0 2021-10-11 18:53:22 +02:00
Jesper Hess e64c858df8 Bump portainer version to 2.9.1 2021-10-11 18:52:39 +02:00
Jesper Hess c0bd431d3c Change default sender domain to @services.data.coop so as not to cause issues with our @data.coop emails 2021-10-10 18:03:09 +02:00
Jesper Hess a5a2d38b0c Bump Synapse to v1.44.0 and Element to v1.9.0 2021-10-10 15:25:54 +02:00
Jesper Hess c34d9fcb90 Add Hedgedoc
- Add Hedgedoc as a replacement for CodiMD.
- Integrate it with the new SSO system
2021-10-09 22:42:35 +02:00
Jesper Hess 5294b5f230 Merge pull request 'Add keycloak service' (#66) from keycloak into master
Reviewed-on: data.coop/ansible#66
2021-10-09 12:20:18 +00:00
Jesper Hess 270b7aa0e1 Merge branch 'master' into keycloak 2021-10-09 12:19:45 +00:00
Jesper Hess b6c2db6434
Switch NextCloud to docker_compose in Ansible + upgrade to v22 2021-10-09 14:13:18 +02:00
Jesper Hess 2af5165349
Upgrade portainer to 2.9.0 2021-10-07 20:59:38 +02:00
Jesper Hess ca6c3a96a1
Comment out the KEYCLOAK_USER and KEYCLOAK_PASSWORD since they mess up things after first run 2021-10-07 20:58:31 +02:00
Jesper Hess e6ee76ddde Merge branch 'master' into keycloak 2021-10-07 11:31:07 +00:00
Jesper Hess 19e7a397e3 Merge pull request 'Bump element to v1.8.4' (#65) from element.v1.8.4 into master
Reviewed-on: data.coop/ansible#65
2021-10-07 11:26:56 +00:00
Jesper Hess 2c8482a5ab Merge branch 'master' into element.v1.8.4 2021-10-07 11:26:42 +00:00
Jesper Hess 3999db2eff
Add keycloak service 2021-10-07 13:20:30 +02:00
Reynir Björnsson 43f39c981d Bump element to v1.8.4
See https://matrix.org/blog/2021/09/13/vulnerability-disclosure-key-sharing
2021-09-14 15:30:08 +02:00
Jesper Hess b39df6003b
Disable Matrix registrations and move Matrix secrets to Ansible vault.
Fixes #46
2021-07-03 09:12:18 +02:00
Jesper Hess 0ef4f972ed
Update Element -> 1.7.29 & Synapse -> 1.34.0 2021-05-28 06:23:46 +02:00
Jesper Hess 9b1dc31163 Merge pull request 'Use inventory in ansible.cfg' (#60) from hosts into master
Reviewed-on: data.coop/ansible#60
2021-03-05 07:49:59 +00:00
Reynir Björnsson 62cc00bea7 Use inventory in ansible.cfg 2021-03-04 13:52:25 +01:00
Víðir Valberg Guðmundsson 30b9580d3c Add required pip packages. 2021-02-01 21:06:39 +01:00
Víðir Valberg Guðmundsson 9e5c18f839 Rename docker_service tasks to docker_compose. 2021-02-01 21:06:23 +01:00
Víðir Valberg Guðmundsson 068502773e Fix matrix_riot service. 2021-02-01 20:51:28 +01:00
valberg fbebeef57b Merge pull request 'Migrate Passit to docker_service & set correct volume folder path' (#54) from passit-cleanup into master
Reviewed-on: data.coop/ansible#54
2021-01-31 10:30:23 +00:00
Jesper Hess a692e7d2cb
Migrate Passit to docker_service & set correct volume folder path 2021-01-28 14:01:19 +01:00
Jesper Hess 406e19a95c
Document new secrets needed in secrets.yml 2021-01-27 13:17:48 +01:00
Víðir Valberg Guðmundsson cec959a47e Upgrade portainer to 2.0.1. 2021-01-26 21:59:26 +01:00
valberg c8cc5b7534 Merge pull request 'Backup of /docker-volumes folder' (#53) from restic_backup into master
Reviewed-on: data.coop/ansible#53
2021-01-26 19:45:13 +00:00
Jesper Hess 9ae295896f
Use docker_service ansible command 2021-01-26 20:40:22 +01:00
Jesper Hess 6d2fbdbbb6
Fix secret for restic repo 2021-01-26 20:19:34 +01:00
Jesper Hess 3fe7d162aa
Use correct volume folder 2021-01-26 20:01:05 +01:00
Jesper Hess 86de1fd24e
Initial work on restic container for backup 2021-01-26 19:57:06 +01:00
Víðir Valberg Guðmundsson a4966e74fe Remove deni key. 2021-01-19 23:08:56 +01:00
valberg cf6fe970eb Merge pull request 'Change YAML to use lists instead of comma-separated strings for domains because it looks nicer' (#51) from domain_lists into master
Reviewed-on: data.coop/ansible#51
2020-12-17 08:20:50 +00:00
Jesper Hess f5293c016d
Change YAML to use lists instead of comma-separated strings for domains because it looks nicer 2020-12-17 08:43:24 +01:00
23 changed files with 413 additions and 195 deletions

View File

@ -1,2 +1,3 @@
[defaults]
remote_user = root
inventory = datacoop_hosts

View File

@ -1,6 +1,6 @@
#!/bin/sh
BASE_CMD="ansible-playbook playbook.yml -i datacoop_hosts --ask-vault-pass"
BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass"
if [ -z "$1" ]; then
echo "Deploying all!"

View File

@ -1,67 +1,102 @@
$ANSIBLE_VAULT;1.1;AES256
36303830393964636165353932336334643761653732643036303563313439623836626231313739
6239326131333263383438613161353435393036663162310a646237306461633337383838306139
37303434653266303866643162306433636532333131366132366431303766306232653837653463
6139336230306131660a636165373732313930396632336532366239303766393937386135306235
62633837363138323365646235333137646363626430633339376636333838663738316535396161
66653931666565353337623336636338383035333133643639323739393565396434373734323235
34306132666430376537643431343362383734343861633332373838383837316266336131353231
31356665313333343139303337633530643534376338343631396431663937616535306136343266
36323761653933386231386339666333306331326161306536616238623836306335373930386539
32326331366435386132393731633664333862656130636632656335353939656638613863633637
64366662623531333933613566356632383061656165323839623732306331653133393463373465
61363036613234353962353135366361363537313138626337376138383335633865663237303464
37373032353066323532313364333863663739613631633230323339346634663733326430343263
64636331616434343331333065633936313265393739353937396165363337366263393131316661
34643263343263306235326562663065343438363338326138653066326432646531643764396161
34343834643134363662373934346463383263636436346433303231656535626664626530326131
39303231646537316136653932306135303931333762343434623636623436383561353131303163
63373833656430336365316433663538643634303962623538663362383536613136366230396533
37363963613532666434653863623030653434303463616638653135666433613030656335396238
37356632376366383463343736303265326436383435363335333838313264333134653932616465
31363832656563383035306537376532343934373933306232333631363132616665663433666133
36643131386134303362373264356437333236663232373035363765303936313162353930353033
38303864643237323437653463313238613036386461303066353465336230303632613432353661
36313761303234303363346432666638323865663764623862623165633234363437653964343830
62656365363538303035326239663264646163366332306332383262356130356436366661383234
66643832656661623132303562333432656365323836363133373932333732323133383832623939
37333632623933656336316161376565653363633330646239666266313336306563366462376531
34623636646439366438316530386334313233613963643634366135373661373138316466313739
64623835613166616165383463323137303431303035363733366563623934366439323666653633
65663532343939343334616662366633353231636135346564643034666331616666316561386664
30636535633432336438663462356232383737393031383431666664303563623932666630653233
65323932303638653562663734386637323964333331356262346463333065633565386363393064
37646563366437646330353765623236306561646433636534666438323036373132363036626438
61393866626236316238326236656164643864343734353438313466633136343931376634366261
64353631363665366237356566323532306563333937343665393166336535383636303930346362
38333733306430636436623661653066313936626362373464396138343439376430626162316466
66623837353763333864663562653166316665363537636537626234666230636665396438313832
61613330396134666437306162386335613466383231633034393639366533363137613964383135
35356136393962353262313635343031323638326163336433303066393939646536653033343530
38303935663038303639616661346664666435393266653663373435363433386461633133343964
65633532656566613638333266393131653863336563386262643630633164346139383436326463
62316131363335376336366332323564383036333139386462353933316461346363626465396631
39616164316463323162616235653365363737373736646331303436303037333536633466303533
32663335386332663334653734303136333066636234643537393931626333303735386238373763
33323333646531633964613633356539636538306163303938373638623230396661663538653463
35396434303634316631376138336530393134353235383637326466306363313462323330623535
33353335306364323335316336643233386561306134636461336537353838373830373031616636
62333335616639353436303336653965303132316439316362303931373465376264396139346631
61393064326433366337613266306263336163393731633165303536636132636638656339373634
32313637666334313935613564316331396437343335313336666137366133376666306138383163
62383131616339393534613231616134383562346163343430323261336531306332363736396663
39643134633838393566643237656663313161326631316437663463653566343238343736656566
35663231623533323261326162356137646436643766646439663538306661643861356565666434
38353131363863666439316666353965663531323662376235636533363262353131323166326335
61656432666130313762376334656434333532636165313834333634646465346234653662393735
35643138623832646633666366616436323730383066323637316635336134356461353666636164
30633833313863656237653762373965376638393232376532666361396363303030383138616631
32633739626565383161343065646232636464373538626330636466316337663739376638386337
32383763313064666464623137373036336562633734313663313463386430313838636165313962
31383466363466396337333837626462303434353739343338313137633736313664346239666237
62313462366136313037646264663533323738656138353235646136383334613035383236383865
38666432313761653234636363396361643139353730323237616663323433363463373666613765
31656430326138373434356130626465643733313065366562313566326633653832316265636538
35396164313932356432306639653461343063643666656265333033643863303637313031653134
39636436636333343030333762376463303538626665343434633236353236373765643231383933
3130336364366434306366623062613130616230366633333536
32336562633266653862666430393834306131343538636136643866306639313132383063393335
3437383263343337323637616330383761346661383065390a396466663135313433643830316439
65626336303339653730643435353366633839366165393463663031333030356464373338353765
3662646137623936650a633038376161633737376432306466663938333838333339626235663362
34303237306533343435346361346461613339323931666461313261623936653936656439663139
39666639616234653565303235313866636463656237363861636366666433393631366364623534
39313638363231646539383133383938353439356335313263656362376538623531636166383233
32653461653965303835613833383736396563306436623762613138343665343461623964666464
31363836343534616235323238663262343963376133636337333937353732623938616434333666
37386231356633653034656130383463643065373935633334653766396539326262646465376338
31346134356162613266393132313839363166623562316230313338373062393535363236363133
62653261663865323933323061353864643435323538633733363030356636653162616237323839
33636235396166326336303133613431326231356434383431623366386437303162396234626563
66333232343234613661363339653234343333323965353537353337303964653066356664303265
62333237343334333836623566643633656134353034623630323361376562353464636538623664
65313435316533633834303734636233333164616230393664646261663133323536356338323430
38623734366530313461653062376136336634386132333138666439326636373536636134333432
61396432353962366333373961323263633036656362653330393236333737306664633335313438
34383335313933613930376436323236343539363035323461333366646462623961633933313432
38656530653336306130313932393162626437383736393162656364333162623831356163303365
66343433316131313332346537343863343966323765373035306661366633336261306661363966
39326131336561633463613731396663336639613634636631373435623263353961323539623162
30383831393164373632336265373662663936336131306563323833643236616338653835633832
33383530623733386564373935663437613366633536386131363465363466306632373535646661
62616531363737336536616132343034663038623665666636613232663666303164663661366232
33626536336435323031663662383836326331633262386634393333373630343431333461393234
33656664666466623262353533363833616663303637393164633633336438393131366261326230
63623266353432613832633163663363663964303461386366373236386131376336623138366134
33626234383661646637323062363265623630663061353630313466626632623062386638643433
36333262666562396433393866393362303134616664616531386637336233306334383434616238
62353237396432353335316631336265326135616430383735353638346339623539393064373365
66336463653139323962333065666363363733376161613434363830663161303735306264396339
35643535326130313033636135656634303731323030623131613866653932346665343365343537
30393534346438343833336262646161643665613639373835336438663664643763323735646566
30303339386131353863643463383333616432333262633962656434343563323165366533643730
36646431336361316234393731373563656164646437636536353530343731373531373932313633
61363462386663333465333465363864643039346238303635323362646335363037323437633462
62373839666639326465383766333462356635636163376366373764373462386430616566386564
39353662346632623661326238306136373364343231303664626630663761643433393033633335
62336232376134656537383632643730303330353533626634633138383163356533646461656230
31373733326436323937373537363839653034356137343864656364313831336235396530373265
31663035326365373033313030363032343030346635343333656637343961303861393336316134
35383635393737643935646334373865386637373636303162363562326239326433396466396435
66336235373238326662323763333733636635313862653233353165346233313663353164383937
37373934343261373462373832363633323438663536356133343464316563316362343932396234
30343335396562336433353233306132656239663036663064653235376264653933363636326132
33353064663930626330386562396564323965393432353430326362616235353464623861313336
37363333623736306632643931356138373031363938363966616632666236346265323562306538
39303365613463393964376536383431326661323237616538353333373930616438633630633961
35303436353231373133666165306534346137396662653736343135303431613438363864616237
65643338633065663266303232643264316564373066663038306632653962626336346639393061
33326638323066323264353338636535336363376639646233336234643137646262666238363865
34623236396437623539653466653331326434643036663930333065393836383265613036393233
64333530636138356361643635613933313335636662646666656131613834376632313734373261
66626262373630386337303539323332343831373731643830323661656435626266386633366666
38626330663635623262336435373432383066393335633261383633343633616564353135613334
34616663333562643232333133626433313265316561633638633236343334323337643066386363
33316637303533393165656665373931313666616330316465643531303730333036613965383161
65346133303835643134643030373966636632663937343434633263633161366236613039313866
63343362303866313732326438393262643630633461316534313638343230653462636330363437
36613561366235646465326163343165633764333466643766316235396534363366366238626161
32656566386130623962643865643562623338353939306463663034653939383864356164316332
34396661303364323430323764346438393165313430623464373436323337303966613437626136
34303166396636666237383138636230306161323161343738353062383262373631643637366139
36313033623162366530366130376338623634363661623965643364666330313066646233303963
65353137616236396266336238346562343331363964356237356132303734326138646164663961
62383761663837326431343939666432663132396464646439626364373833653164313931353631
34633737333961646137663764363763356138396264353534303236633135643936313039303565
37663937613961643563346130653536653236346165633333383666623961303138363961646138
36613062346562326537656236343835383663386235353638653861613865333635333161326337
66343664373262383164313838393261663566393838633364363931653164613663643966643063
39656261643733663763383339653433616231653737623865353038646331373334666232346334
39653730613439393532326430623239666239616361313738343738376536303839623938396439
37393134343333383430303963356563633862336134373962306634613261653131636631626638
35613635643336306435643832383761353465633537666563333763646338656164333661666462
38643765313865626535326136343365643362373234326262366332653264363863646539366630
36623635396635363636373139383530633332386263656339396433653936333834656631373637
65663564353938623737303332373261623862646566386230313865643835323231373933303165
39356561656534326661346636633933613532373137393737623737383134333132363436373630
63653139356565356566663532313736613437623634313236663537376462383465613332656233
65306131356165366131633432383730356163326561326332346535373738636333333165666365
31636564303838333061323063653135623162636464656263613538306561303361633864383634
35613164386334646338613661356134303766393239366530666137376362646263333530623565
34643166313038376136643032393630303435376631336366343632383735626335333232303463
33643363313434363633393964323064653966353161636135633264333766386266646366316132
63303935356138356566306234356435343961356166646430633335386435366666333234636465
36336439663731643663353732353261313037363231306430373962613838616238313662343761
33316335316236626631636636386137376263323862306262316366663039396334326564303762
34623562363839386439366639323662393831653530663463396230663133396466326363303065
35646635323439323062333864336332333938663536373834663535643832316532313262326265
63376436356662663165616532613963303030613166663865376531613031383865363864333238
33616230336263306434643933356530303163653232323331643731353134353939363762303933
32363061346537666637663733346431643164323364363133316265306336626466353366313635
66653162643533316162363035373532656239356434623761666663626366663336376539656537
31323561356363393038323762646633323461666263633937313264346364356439343761623337
34643731393763323339653636656565663665646431313531616337616363373764626334656264
66633366346137613032313865666363613530643663373834313731353437373239653332656134
62376164313138303233623964663234643661336232366165616163313866336230353565393365
36613361346437336431376164663930393530626339626361323764623635396137396634316364
31393030323539376233383965366433623562646161643866346138316536613437383035656139
6533

View File

@ -1,4 +1,5 @@
# These are the variables contained in secrets.yml
# Secrets are usually 32 characters or more, matching [a-Z0-9]
postgres_passwords:
fider: xxx
@ -9,6 +10,7 @@ postgres_passwords:
codimd: xxx
mailu: xxx
ttrss: xxx
keycloak: xxx
fider_jwt_secret: xxx
@ -25,3 +27,16 @@ drone_secrets:
oauth_client_id: xxx
oauth_client_secret: xxx
rpc_shared_secret: xxx
restic_secrets:
user_secret: xxx
encryption_secret: xxx
matrix_secrets:
registration_shared_secret: xxx
macaroon_secret_key: xxx
form_secret: xxx
keycloak_secrets:
admin_user: xxx //used for setting up the initial admin user on first run
admin_password: xxx

View File

@ -21,11 +21,4 @@ users:
groups:
- sudo
deni:
comment: Denis Smajlović
key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC0pB42dtqruXr2Ha8Rdp3QoSrMOLU5cbLMfuNTNmgwPZmprhGGRTAsz8E0aG+5HCFBmW6JxiTGyHGdIZrhYWpKYshxxn4zODfitP7IzDgvg9Pz0Ugw/c5i5eKjkVfw9xLZKjO/H3Ql8R+wFMawpdw7j+Q9G+J3eIidEI6TmSvJVWijBxpLI4qrLceL084qg93XpJENYBOcvx9fYQQ+Es0jo4hmPuHWq5VIkIoIfvVvdhwjlaBsqv2je5BNx8uTMVIyV34ZHpJc95wJ6MOcqpQunW2bR4mGc9FLh67eP2ba9nDoQ0pnnlWGqAIKx5P1ELIg7RM3HhuwfRVh4DxCfjXpMz3l1gr1dA1wVD9bOtzbPWLjo7LNkRcT/loba/jpznTNIEv+kawmm/H0aTZZdlofkGHuX0iOpLV1c1tCDMH1s/MCqwosSRihrXhSOozsABvaaZpJiHcpE4DcNr+xJhe1XrHMqR30KU0r7ulIP8JdhzMNEsq3HxZQh9s8XLIUukrpcpOgJYyGuQK3kG6li5kYbmVqjLDQ1xHi/4r/4TXjJYpsFCZ71SURLzxoF1nauHpBLKcHI3MPFvqr27SQcM92fO14wKDAmAtHINwzMQjlda6B0jFNC+2xUfHrH7yIhwSktytq5qbhiFKK71DSLiMKFvOqoTVWRckO2+Zw1HZB+Q== deni@deni.dk
password: $6$ooKtdqASOxYJN2CJ$ziMrGG/qIOeyiTGjx.hPYjVBlHpzM9YY6qCJB9/L8aR33feUvXxZNBCgME93ZhbwDBjblS/tP796LsCF4i17D.
groups:
- sudo
volume_root_folder: "/docker-volumes"

View File

@ -12,6 +12,7 @@ thelounge:
nextcloud:
domain: "cloud.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/nextcloud"
gitea:
domain: "git.{{ base_domain }}"
@ -19,6 +20,7 @@ gitea:
passit:
domain: "passit.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/passit"
fider:
domain: "feedback.{{ base_domain }}"
@ -28,7 +30,9 @@ matrix:
volume_folder: "{{ volume_root_folder }}/matrix"
riot:
domain: "riot.{{ base_domain }},element.{{ base_domain }}"
domains:
- "riot.{{ base_domain }}"
- "element.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/riot"
privatebin:
@ -36,9 +40,13 @@ privatebin:
volume_folder: "{{ volume_root_folder }}/privatebin"
codimd:
domain: "pad.{{ base_domain }}"
domain: "oldpad.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/codimd"
hedgedoc:
domain: "pad.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/hedgedoc"
netdata:
domain: "netdata.{{ base_domain }}"
@ -49,16 +57,25 @@ docker_registry:
password: "{{ docker_password }}"
data_coop_website:
domain: "{{ base_domain }},www.{{ base_domain }}"
domains:
- "{{ base_domain }}"
- "www.{{ base_domain }}"
cryptohagen_website:
domain: "cryptohagen.dk,www.cryptohagen.dk"
domains:
- "cryptohagen.dk"
- "www.cryptohagen.dk"
ulovliglogning_website:
domain: "ulovliglogning.dk,www.ulovliglogning.dk,ulovlig-logning.dk"
domains:
- "ulovliglogning.dk"
- "www.ulovliglogning.dk"
- "ulovlig-logning.dk"
cryptoaarhus_website:
domain: "cryptoaarhus.dk,www.cryptoaarhus.dk"
domains:
- "cryptoaarhus.dk"
- "www.cryptoaarhus.dk"
drone:
domain: "drone.{{ base_domain }}"
@ -79,3 +96,6 @@ ttrss:
domain: rss.{{ base_domain }}
volume_folder: "{{ volume_root_folder }}/tt-rss"
keycloak:
domain: sso.{{ base_domain }}
volume_folder: "{{ volume_root_folder }}/keycloak"

View File

@ -577,7 +577,7 @@ turn_allow_guests: True
## Registration ##
# Enable registration for new users.
enable_registration: True
enable_registration: False
# The user must provide all of the below types of 3PID when registering.
#
@ -604,7 +604,7 @@ enable_registration: True
# If set, allows registration by anyone who also has the shared
# secret, even if registration is otherwise disabled.
#
registration_shared_secret: "jnJ5gfTj_qi#H0:vnPZx7OH*Qz.9u4cxpq.wHcHEAfuhcMgpxG"
registration_shared_secret: "{{ matrix_secrets.registration_shared_secret }}"
# Set the number of bcrypt rounds used to generate password hash.
# Larger numbers increase the work factor needed to generate the hash.
@ -699,7 +699,7 @@ track_appservice_user_ips: False
# the registration_shared_secret is used, if one is given; otherwise,
# a secret key is derived from the signing key.
#
macaroon_secret_key: "PLawJ8o.Q_.pR3Rr.vJO3=F&eAe=b~g6hVOKbrRrSl#w5Eqr8X"
macaroon_secret_key: "{{ matrix_secrets.macaroon_secret_key }}"
# Used to enable access token expiration.
#
@ -709,7 +709,7 @@ expire_access_token: False
# falsification of values. Must be specified for the User Consent
# forms to work.
#
form_secret: "ssHGS0,URi,oQ8~Upfi53meultXQ-Vo-r5XgKjP.u42qL;WGc-"
form_secret: "{{ matrix_secrets.form_secret }}"
## Signing Keys ##

View File

@ -0,0 +1 @@
MIICszCCAZsCBgF8WpKKwTANBgkqhkiG9w0BAQsFADAdMRswGQYDVQQDDBJkYXRhLmNvb3Agc2VydmljZXMwHhcNMjExMDA3MTE0MzQ1WhcNMzExMDA3MTE0NTI1WjAdMRswGQYDVQQDDBJkYXRhLmNvb3Agc2VydmljZXMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCdV0stfU8aA1bi+GYd/a5DOyoox01BgzWwBFqVjlo80frsOsH8g814eDuMuff/UJy+2YxaozYQGxP+DcOVXi+0Fts9zjRj6wa6HCQqiR/SNUa69fGHcyAo2Tr0faxOyf3QMBqIngTRZB99quNMuAM96RCg25LtDaaWjNVxdHlj78+kU1bQXExp0ZfELlKGtllWP07cyz4nGfZmuK1AiWSsRbDIbyK5dvzw/pMS1kexh6ylnQu1iLqD3vYZBUDX9lPNkavTYZNCEL4ElUvR81S0ko2zkYAUiuVTtTUKucc98dTRhkuV4YCiiW6UQGY/jzmXYBfpzAY3n5eH5iUu/tRXAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAFQc8ytexKiXOIGrSYYtFaF/lxv8AwMgsndv8YxJ+x/cUwN9tdmA8IAZDIS13qBrCOdZE4pJ/09VkYdErcpbtV7PWC3LDv/c2qakyiBUYZj4WgJio+oD0GCqXsby3aqJeVt9cJr4gSsXxn1c+7GV7p/gc/2FFmlWcqMN/2F7LvFvObu55QlppWZrn8kreaUQmRuTTIviFQRmvrmwKyK52LEcK7qoh/v1aHyYDl91gu3nLMEluz6hy3UEPYgpdH1t2C7K0Kjri25pJNGCFrpKjWWveteKazUeDd4adHMiw2MVfeEyTCXEFoaxQS9QmbmhSMRhiHjbdffL7xi//aSh1bo=

View File

@ -7,7 +7,7 @@
- name: gitea container
docker_container:
name: gitea
image: gitea/gitea:1.12.3
image: gitea/gitea:1.15.7
restart_policy: unless-stopped
networks:
- name: gitea

View File

@ -0,0 +1,66 @@
---
- name: create hedgedoc volume folders
file:
name: "{{ hedgedoc.volume_folder }}/{{ volume }}"
state: directory
loop:
- "db"
- "hedgedoc/uploads"
loop_control:
loop_var: volume
- name: copy sso public certificate
copy:
src: "files/sso/sso.data.coop.pem"
dest: "{{ hedgedoc.volume_folder }}/sso.data.coop.pem"
mode: "0644"
- name: setup hedgedoc
docker_compose:
project_name: "hedgedoc"
pull: "yes"
definition:
services:
database:
image: "postgres:10-alpine"
environment:
POSTGRES_USER: "codimd"
POSTGRES_PASSWORD: "{{ postgres_passwords.hedgedoc }}"
POSTGRES_DB: "codimd"
restart: "unless-stopped"
networks:
- "hedgedoc"
volumes:
- "{{ hedgedoc.volume_folder }}/db:/var/lib/postgresql/data"
app:
image: quay.io/hedgedoc/hedgedoc:1.9.0
environment:
CMD_DB_URL: "postgres://codimd:{{ postgres_passwords.hedgedoc }}@hedgedoc_database_1:5432/codimd"
CMD_DOMAIN: "{{ hedgedoc.domain }}"
CMD_ALLOW_EMAIL_REGISTER: "False"
CMD_IMAGE_UPLOAD_TYPE: "filesystem"
CMD_EMAIL: "False"
CMD_SAML_IDPCERT: "/sso.data.coop.pem"
CMD_SAML_IDPSSOURL: "https://sso.data.coop/auth/realms/datacoop/protocol/saml"
CMD_SAML_ISSUER: "hedgedoc"
CMD_SAML_IDENTIFIERFORMAT: "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
CMD_USECDN: "false"
CMD_PROTOCOL_USESSL: "true"
VIRTUAL_HOST: "{{ hedgedoc.domain }}"
LETSENCRYPT_HOST: "{{ hedgedoc.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
volumes:
- "{{ hedgedoc.volume_folder }}/hedgedoc/uploads:/hedgedoc/public/uploads"
- "{{ hedgedoc.volume_folder }}/sso.data.coop.pem:/sso.data.coop.pem"
restart: "unless-stopped"
networks:
- "hedgedoc"
- "external_services"
depends_on:
- database
networks:
hedgedoc:
external_services:
external: true

View File

@ -0,0 +1,45 @@
- name: setup keycloak containers for sso.data.coop
docker_compose:
project_name: "keycloak"
pull: "yes"
definition:
version: "3.6"
services:
postgres:
image: "postgres:10"
restart: "unless-stopped"
networks:
- "keycloak"
volumes:
- "{{ keycloak.volume_folder }}/data:/var/lib/postgresql/data"
environment:
POSTGRES_USER: "keycloak"
POSTGRES_PASSWORD: "{{ postgres_passwords.keycloak }}"
POSTGRES_DB: "keycloak"
app:
image: "quay.io/keycloak/keycloak:15.0.2"
restart: "unless-stopped"
networks:
- "keycloak"
- "postfix"
- "external_services"
environment:
VIRTUAL_HOST: "{{ keycloak.domain }}"
VIRTUAL_PORT: "8080"
LETSENCRYPT_HOST: "{{ keycloak.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
DB_USER: "keycloak"
DB_PASSWORD: "{{ postgres_passwords.keycloak }}"
DB_ADDR: "keycloak_postgres_1"
#KEYCLOAK_USER: "{{ keycloak_secrets.admin_user }}" # Only used for the first run of the application to set up the admin user
#KEYCLOAK_PASSWORD: "{{ keycloak_secrets.admin_password }}"
PROXY_ADDRESS_FORWARDING: "true"
networks:
keycloak:
postfix:
external: true
external_services:
external: true

View File

@ -38,7 +38,7 @@
force: yes
- name: run mail server containers
docker_service:
docker_compose:
project_name: mail_server
pull: yes
definition:

View File

@ -49,11 +49,11 @@
- name: upload vhost config for riot domain
template:
src: files/configs/matrix/vhost-riot
dest: "{{ nginx.volume_folder }}/vhost/{{ riot.domain }}"
dest: "{{ nginx.volume_folder }}/vhost/{{ riot.domains[0] }}"
- name: upload homeserver.yaml
template:
src: "files/configs/matrix/homeserver.yaml"
src: "files/configs/matrix/homeserver.yaml.j2"
dest: "{{ matrix.volume_folder }}/data/homeserver.yaml"
- name: upload matrix logging config
@ -62,7 +62,7 @@
dest: "{{ matrix.volume_folder }}/data/matrix.data.coop.log.config"
- name: set up matrix and riot
docker_service:
docker_compose:
project_name: matrix
pull: yes
definition:
@ -82,7 +82,7 @@
matrix_app:
container_name: matrix
image: matrixdotorg/synapse:v1.18.0
image: matrixdotorg/synapse:v1.47.1
restart: unless-stopped
networks:
- matrix
@ -102,7 +102,7 @@
riot:
container_name: riot_app
image: avhost/docker-matrix-riot:v1.7.3
image: avhost/docker-matrix-riot:v1.9.0
restart: unless-stopped
networks:
- matrix
@ -112,9 +112,9 @@
volumes:
- "{{ riot.volume_folder }}/data:/data"
environment:
VIRTUAL_HOST: "{{ riot.domain }}"
VIRTUAL_HOST: "{{ riot.domains|join(',') }}"
VIRTUAL_PORT: "8080"
LETSENCRYPT_HOST: "{{ riot.domain }}"
LETSENCRYPT_HOST: "{{ riot.domains|join(',') }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
networks:

View File

@ -1,48 +1,42 @@
---
- name: setup nextcloud containers
docker_compose:
project_name: "nextcloud"
pull: "yes"
definition:
services:
postgres:
image: "postgres:10"
restart: "unless-stopped"
networks:
- "nextcloud"
volumes:
- "{{ nextcloud.volume_folder }}/postgres:/var/lib/postgresql/data"
environment:
POSTGRES_DB: "nextcloud"
POSTGRES_PASSWORD: "{{ postgres_passwords.nextcloud }}"
POSTGRES_USER: "nextcloud"
app:
image: "nextcloud:22-apache"
restart: "unless-stopped"
networks:
- "nextcloud"
- "external_services"
volumes:
- "{{ nextcloud.volume_folder }}/app:/var/www/html"
environment:
VIRTUAL_HOST: "{{ nextcloud.domain }}"
LETSENCRYPT_HOST: "{{ nextcloud.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
POSTGRES_HOST: "nextcloud_postgres_1"
POSTGRES_DB: "nextcloud"
POSTGRES_USER: "nextcloud"
POSTGRES_PASSWORD: "{{ postgres_passwords.nextcloud }}"
- name: nextcloud network
docker_network:
name: nextcloud
- name: nextcloud database volume
docker_volume:
name: nextcloud_db
- name: nextcloud database container
docker_container:
name: nextcloud_db
image: postgres:10
state: started
restart_policy: always
networks:
- name: nextcloud
volumes:
- nextcloud_db:/var/lib/postgresql/data
env:
POSTGRES_DB: somethingelse
POSTGRES_USER: nextcloud
POSTGRES_PASSWORD: "{{ postgres_passwords.nextcloud }}"
- name: nextcloud app volume
docker_volume:
name: nextcloud_app
- name: nextcloud app container
docker_container:
name: nextcloud_app
image: nextcloud:apache
state: started
restart_policy: always
networks:
- name: nextcloud
- name: external_services
volumes:
- nextcloud_app:/var/www/html
env:
VIRTUAL_HOST: "{{ nextcloud.domain }}"
LETSENCRYPT_HOST: "{{ nextcloud.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
POSTGRES_HOST: nextcloud_db
POSTGRES_DB: nextcloud
POSTGRES_USER: nextcloud
POSTGRES_PASSWORD: "{{ postgres_passwords.nextcloud }}"
networks:
nextcloud:
postfix:
external: true
external_services:
external: true

View File

@ -17,7 +17,7 @@
- name: openLDAP container
docker_container:
name: openldap
image: osixia/openldap:1.2.2
image: osixia/openldap:1.5.0
tty: true
interactive: true
volumes:
@ -57,7 +57,7 @@
- name: phpLDAPadmin container
docker_container:
name: phpldapadmin
image: osixia/phpldapadmin:latest
image: osixia/phpldapadmin:0.9.0
networks:
- name: external_services
- name: ldap

View File

@ -1,45 +1,47 @@
---
- name: passit network
docker_network:
name: passit
- name: setup passit containers
docker_compose:
project_name: "passit"
pull: "yes"
definition:
version: "3.6"
services:
- name: passit database volume
docker_volume:
name: passit_db
passit_db:
image: "postgres:10"
restart: "always"
networks:
- "passit"
volumes:
- "{{ passit.volume_folder }}/data:/var/lib/postgresql/data"
environment:
POSTGRES_USER: "passit"
POSTGRES_PASSWORD: "{{ postgres_passwords.passit }}"
- name: passit database container
docker_container:
name: passit_db
image: postgres:10
state: started
restart_policy: always
networks:
- name: passit
volumes:
- passit_db:/var/lib/postgresql/data
env:
POSTGRES_USER: passit
POSTGRES_PASSWORD: "{{ postgres_passwords.passit }}"
passit_app:
image: "passit/passit:stable"
command: "bin/start.sh"
restart: "always"
networks:
- "passit"
- "postfix"
- "external_services"
environment:
DATABASE_URL: "postgres://passit:{{ postgres_passwords.passit }}@passit_db:5432/passit"
SECRET_KEY: "{{ passit_secret_key }}"
IS_DEBUG: 'False'
EMAIL_URL: "smtp://noop@{{ smtp_host }}:{{ smtp_port }}"
DEFAULT_FROM_EMAIL: "noreply@{{ passit.domain }}"
EMAIL_CONFIRMATION_HOST: "https://{{ passit.domain }}"
- name: passit app container
docker_container:
name: passit
image: passit/passit:stable
command: bin/start.sh
restart_policy: always
networks:
- name: passit
- name: postfix
- name: external_services
env:
DATABASE_URL: "postgres://passit:{{ postgres_passwords.passit }}@passit_db:5432/passit"
SECRET_KEY: "{{ passit_secret_key }}"
IS_DEBUG: 'False'
EMAIL_URL: smtp://noop@{{ smtp_host }}:{{ smtp_port }}
DEFAULT_FROM_EMAIL: "noreply@{{ passit.domain }}"
EMAIL_CONFIRMATION_HOST: "https://{{ passit.domain }}"
VIRTUAL_HOST: "{{ passit.domain }}"
LETSENCRYPT_HOST: "{{ passit.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
VIRTUAL_HOST: "{{ passit.domain }}"
LETSENCRYPT_HOST: "{{ passit.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
networks:
passit:
postfix:
external: true
external_services:
external: true

View File

@ -8,7 +8,7 @@
- name: run portainer
docker_container:
name: portainer
image: portainer/portainer:1.23.1
image: portainer/portainer-ce:2.9.1
restart_policy: always
networks:
- name: external_services
@ -19,5 +19,6 @@
- 9001:9000
env:
VIRTUAL_HOST: "{{ portainer.domain }}"
VIRTUAL_PORT: "9000"
LETSENCRYPT_HOST: "{{ portainer.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"

View File

@ -15,5 +15,5 @@
networks:
- name: postfix
env:
ALLOWED_SENDER_DOMAINS: "{{ base_domain }}"
ALLOWED_SENDER_DOMAINS: "services.{{ base_domain }}"

View File

@ -0,0 +1,38 @@
---
- name: setup restic backup
docker_compose:
project_name: restic_backup
pull: yes
definition:
version: '3.6'
services:
restic-backup:
image: mazzolino/restic
restart: always
environment:
RUN_ON_STARTUP: "true"
BACKUP_CRON: "0 30 3 * * *"
RESTIC_REPOSITORY: "rest:https://datacoop:{{ restic_secrets.user_secret }}@restic.graffen.io/datacoop-hevonen"
RESTIC_PASSWORD: "{{ restic_secrets.encryption_secret }}"
RESTIC_BACKUP_SOURCES: "/mnt/volumes"
RESTIC_BACKUP_ARGS: >-
--tag datacoop-volumes
--exclude='*.tmp'
--verbose
RESTIC_FORGET_ARGS: >-
--keep-last 10
--keep-daily 7
--keep-weekly 5
--keep-monthly 12
TZ: Europe/Copenhagen
volumes:
- /docker-volumes:/mnt/volumes:ro
restic-prune:
image: "mazzolino/restic"
environment:
RUN_ON_STARTUP: "true"
PRUNE_CRON: "0 0 4 * * *"
RESTIC_REPOSITORY: "rest:https://datacoop:{{ restic_secrets.user_secret }}@restic.graffen.io/datacoop-hevonen"
RESTIC_PASSWORD: "{{ restic_secrets.encryption_secret }}"
TZ: Europe/copenhagen

View File

@ -10,7 +10,7 @@
loop_var: volume
- name: "set up tt-rss"
docker_service:
docker_compose:
project_name: "tt-rss"
pull: yes
definition:

View File

@ -6,8 +6,8 @@
networks:
- name: external_services
env:
VIRTUAL_HOST: "{{ ulovliglogning_website.domain }}"
LETSENCRYPT_HOST: "{{ ulovliglogning_website.domain }}"
VIRTUAL_HOST: "{{ ulovliglogning_website.domains|join(',') }}"
LETSENCRYPT_HOST: "{{ ulovliglogning_website.domains|join(',') }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
labels:
com.ouroboros.enable: "true"

View File

@ -8,8 +8,8 @@
networks:
- name: external_services
env:
VIRTUAL_HOST : "{{ data_coop_website.domain }}"
LETSENCRYPT_HOST: "{{ data_coop_website.domain }}"
VIRTUAL_HOST : "{{ data_coop_website.domains|join(',') }}"
LETSENCRYPT_HOST: "{{ data_coop_website.domains|join(',') }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
labels:
com.ouroboros.enable: "true"
@ -22,8 +22,8 @@
networks:
- name: external_services
env:
VIRTUAL_HOST : "new.{{ data_coop_website.domain }}"
LETSENCRYPT_HOST: "new.{{ data_coop_website.domain }}"
VIRTUAL_HOST : "new.{{ data_coop_website.domains|join(',') }}"
LETSENCRYPT_HOST: "new.{{ data_coop_website.domains|join(',') }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
labels:
com.ouroboros.enable: "true"
@ -36,8 +36,8 @@
networks:
- name: external_services
env:
VIRTUAL_HOST : "{{ cryptohagen_website.domain }}"
LETSENCRYPT_HOST: "{{ cryptohagen_website.domain }}"
VIRTUAL_HOST : "{{ cryptohagen_website.domains|join(',') }}"
LETSENCRYPT_HOST: "{{ cryptohagen_website.domains|join(',') }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
labels:
com.ouroboros.enable: "true"
@ -50,8 +50,8 @@
networks:
- name: external_services
env:
VIRTUAL_HOST : "{{ cryptoaarhus_website.domain }}"
LETSENCRYPT_HOST: "{{ cryptoaarhus_website.domain }}"
VIRTUAL_HOST : "{{ cryptoaarhus_website.domains|join(',') }}"
LETSENCRYPT_HOST: "{{ cryptoaarhus_website.domains|join(',') }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
labels:
com.ouroboros.enable: "true"

View File

@ -1,5 +1,5 @@
---
- name: Install necessary packages
- name: Install necessary packages via apt
apt:
name: "{{ packages }}"
vars:
@ -8,4 +8,11 @@
- python3-pip
- apparmor
- haveged
- name: Install necessary packages via pip
pip:
name: "{{ packages }}"
vars:
packages:
- docker
- docker-compose