Add more service databases to terraform
This commit is contained in:
parent
43baf205dc
commit
ad2d3c6c06
9 changed files with 39 additions and 22 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
|
||||
- role: acme_dns
|
||||
tags: [acme-dns, certificates]
|
||||
tags: [acme-dns, acme_dns, certificates]
|
||||
- role: authentik
|
||||
tags: [authentik, authentication]
|
||||
- role: coder
|
||||
|
@ -72,6 +72,6 @@
|
|||
- role: webhook
|
||||
tags: [webhook]
|
||||
- role: wiki_js
|
||||
tags: [wiki-js]
|
||||
tags: [wiki-js, wiki_js, wiki]
|
||||
- role: woodpecker
|
||||
tags: [woodpecker, ci, development]
|
||||
|
|
|
@ -10,8 +10,8 @@ acme_dns_svc:
|
|||
db:
|
||||
host: "{{ postgres.host }}"
|
||||
port: "{{ postgres.port }}"
|
||||
user: "{{ vault_acmedns.db.user }}"
|
||||
pass: "{{ vault_acmedns.db.pass }}"
|
||||
user: "{{ opentofu.postgresql_service_roles.acme_dns.name }}"
|
||||
pass: "{{ opentofu.postgresql_service_roles.acme_dns.password }}"
|
||||
db: acme_dns
|
||||
|
||||
acme_dns_compose:
|
||||
|
|
|
@ -3,5 +3,4 @@ FROM ubuntu
|
|||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt update -y \
|
||||
&& apt install -y curl dnsutils msmtp gettext-base python3-pip python3-requests \
|
||||
&& pip install matrix-nio
|
||||
&& apt install -y curl dnsutils msmtp gettext-base python3-matrix-nio python3-requests
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Copy the docker-compose file
|
||||
ansible.builtin.copy:
|
||||
src: docker-compose.yml
|
||||
- name: Template the docker-compose file
|
||||
ansible.builtin.template:
|
||||
src: docker-compose.yml.j2
|
||||
dest: "{{ (service_path, 'docker-compose.yml') | path_join }}"
|
||||
mode: "0644"
|
||||
- name: Copy the Dockerfile
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
version: "3.7"
|
||||
|
||||
x-common-elements:
|
||||
&common-elements
|
||||
build:
|
|
@ -7,8 +7,8 @@ tinytinyrss_svc:
|
|||
host: "{{ postgres.host }}"
|
||||
port: "{{ postgres.port }}"
|
||||
database: tinytinyrss
|
||||
user: "{{ vault_tinytinyrss.db.user }}"
|
||||
pass: "{{ vault_tinytinyrss.db.pass }}"
|
||||
user: "{{ opentofu.postgresql_service_roles.tinytinyrss.name }}"
|
||||
pass: "{{ opentofu.postgresql_service_roles.tinytinyrss.password }}"
|
||||
|
||||
tinytinyrss_env:
|
||||
TTRSS_DB_TYPE: pgsql
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
umami_db_host: "{{ postgres.host }}"
|
||||
umami_db_user: "{{ vault_umami.db.user }}"
|
||||
umami_db_pass: "{{ vault_umami.db.pass }}"
|
||||
umami_db_user: "{{ opentofu.postgresql_service_roles.umami.name }}"
|
||||
umami_db_pass: "{{ opentofu.postgresql_service_roles.umami.password }}"
|
||||
umami_db_database: umami
|
||||
|
||||
umami_hash_salt: "{{ vault_umami.hash_salt }}"
|
||||
|
|
|
@ -8,9 +8,9 @@ wiki_js_svc:
|
|||
db:
|
||||
host: "{{ postgres.host }}"
|
||||
port: "{{ postgres.port }}"
|
||||
user: "{{ vault_wiki_js.db.user }}"
|
||||
pass: "{{ vault_wiki_js.db.pass }}"
|
||||
name: wikijs
|
||||
user: "{{ opentofu.postgresql_service_roles.wiki_js.name }}"
|
||||
pass: "{{ opentofu.postgresql_service_roles.wiki_js.password }}"
|
||||
name: wiki_js
|
||||
|
||||
wiki_js_env:
|
||||
DB_TYPE: postgres
|
||||
|
|
|
@ -1,12 +1,32 @@
|
|||
services = {
|
||||
"linkwarden" = {
|
||||
name = "linkwarden"
|
||||
bucket = true
|
||||
"acme_dns" = {
|
||||
name = "acme_dns"
|
||||
bucket = false
|
||||
database = true
|
||||
},
|
||||
"forgejo" = {
|
||||
name = "forgejo"
|
||||
bucket = true
|
||||
database = true
|
||||
}
|
||||
},
|
||||
"linkwarden" = {
|
||||
name = "linkwarden"
|
||||
bucket = true
|
||||
database = true
|
||||
},
|
||||
"tinytinyrss" = {
|
||||
name = "tinytinyrss"
|
||||
bucket = false
|
||||
database = true
|
||||
},
|
||||
"umami" = {
|
||||
name = "umami"
|
||||
bucket = false
|
||||
database = true
|
||||
},
|
||||
"wiki_js" = {
|
||||
name = "wiki_js"
|
||||
bucket = false
|
||||
database = true
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue