Move variables around
This commit is contained in:
parent
f6db815eff
commit
5ad5e36998
|
@ -1,5 +1,7 @@
|
|||
# vim: ft=yaml.ansible
|
||||
# code: language=ansible
|
||||
---
|
||||
apps_base_domain: staging.sapti.me
|
||||
|
||||
db_inventory_hostname: sapt-labs-db01
|
||||
db_host: "{{ hostvars[db_inventory_hostname].ansible_host }}"
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
# code: language=ansible
|
||||
---
|
||||
apps_data_root: "{{ encrypted_fs }}/apps"
|
||||
apps_base_domain: "{{ base_domain }}"
|
||||
apps_local_domain: "{{ local_domain }}"
|
||||
|
||||
docker_data_root: "{{ encrypted_fs }}/docker"
|
||||
|
||||
redis_passwords:
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# vim: ft=yaml.ansible
|
||||
# code: language=ansible
|
||||
---
|
||||
base_domain: sapti.me
|
||||
local_domain: local.{{ base_domain }}
|
||||
|
||||
db_passwords:
|
||||
nextcloud: "{{ vault_db_passwords.nextcloud }}"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# vim: ft=yaml.ansible
|
||||
# code: language=ansible
|
||||
---
|
||||
base_domain: staging.sapti.me
|
||||
local_domain: local.{{ base_domain }}
|
||||
|
||||
db_passwords:
|
||||
nextcloud: "{{ vault_db_passwords.nextcloud }}"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# vim: ft=yaml.ansible
|
||||
# code: language=ansible
|
||||
---
|
||||
apps_base_domain: example.com
|
||||
apps_base_domain: sapti.me
|
||||
apps_local_domain: local.{{ apps_base_domain }}
|
||||
apps_data_root: /apps
|
||||
apps_shared_docker_network: apps_network
|
||||
|
@ -16,6 +16,7 @@ apps_vars:
|
|||
postfix:
|
||||
domain: smtp.{{ apps_base_domain }}
|
||||
backup: true
|
||||
sender: false
|
||||
extra_tasks: false
|
||||
version: latest-alpine
|
||||
|
||||
|
@ -23,41 +24,44 @@ apps_vars:
|
|||
domain: ipfs.{{ apps_local_domain }}
|
||||
gateway_domain: ipfs-gateway.{{ apps_base_domain }}
|
||||
backup: false
|
||||
sender: false
|
||||
extra_tasks: true
|
||||
version: v0.23.0
|
||||
|
||||
monerod:
|
||||
domain: xmr.{{ apps_base_domain }}
|
||||
backup: false
|
||||
sender: false
|
||||
extra_tasks: false
|
||||
version: latest
|
||||
|
||||
nextcloud:
|
||||
domain: cloud.{{ apps_base_domain }}
|
||||
backup: true
|
||||
sender: true
|
||||
extra_tasks: true
|
||||
version: 27-apache
|
||||
postgres_version: 14-alpine
|
||||
redis_version: 7-alpine
|
||||
|
||||
snowflake:
|
||||
backup: false
|
||||
sender: false
|
||||
extra_tasks: false
|
||||
version: latest
|
||||
|
||||
restic:
|
||||
backup: false
|
||||
sender: false
|
||||
extra_tasks: false
|
||||
version: '1.7.0'
|
||||
|
||||
watchtower:
|
||||
backup: false
|
||||
sender: false
|
||||
extra_tasks: false
|
||||
version: '1.6.0'
|
||||
|
||||
apps_include: "{{ apps_vars | dict2items | map(attribute='key') | list }}"
|
||||
apps_backup: "{{ apps_vars | dict2items | selectattr('value.backup', 'true') | map(attribute='key') | list | intersect(apps_include) }}"
|
||||
apps_proxied: "{{ apps_vars | dict2items | selectattr('value.domain', 'defined') | map(attribute='key') | list | intersect(apps_include) }}"
|
||||
|
||||
apps_sender_domains:
|
||||
- "{{ apps_vars.nextcloud.domain }}"
|
||||
apps_senders: "{{ apps_vars | dict2items | selectattr('value.sender', 'true') | map(attribute='key') | list | intersect(apps_include) }}"
|
||||
|
|
|
@ -6,7 +6,7 @@ services:
|
|||
image: boky/postfix:{{ apps_vars.postfix.version }}
|
||||
restart: always
|
||||
environment:
|
||||
ALLOWED_SENDER_DOMAINS: "{{ apps_sender_domains | join(' ') }}"
|
||||
ALLOWED_SENDER_DOMAINS: "{{ apps_senders | join(' ') }}"
|
||||
HOSTNAME: "{{ apps_vars.postfix.domain }}"
|
||||
DKIM_AUTOGENERATE: "true"
|
||||
networks:
|
||||
|
|
Loading…
Reference in a new issue