ansible-edda/inventory/group_vars/asgard/vars.yml

97 lines
4.5 KiB
YAML
Raw Normal View History

2022-12-18 23:43:40 +01:00
---
# --------------------------------------------------------------------------------------------------
# system:base
# --------------------------------------------------------------------------------------------------
system_base_additional_tcp_ports: "{{
2023-02-19 21:12:16 +01:00
services_host_services | dict2items | map(attribute='value.tcp', default=[]) | flatten |
2023-02-22 21:25:21 +01:00
union(system_base_tcp_ports | default([])) }}"
# --------------------------------------------------------------------------------------------------
# system:var
# --------------------------------------------------------------------------------------------------
system_var_root_directory: "/var/lib/{{ system_var_hostname }}"
system_var_home_directory: "{{ system_var_root_directory }}/home"
system_var_data_directory: "{{ system_var_root_directory }}/data"
system_var_containers_directory: "{{ system_var_root_directory }}/containers"
2022-12-13 22:06:29 +01:00
# --------------------------------------------------------------------------------------------------
# vpn:wireguard
# --------------------------------------------------------------------------------------------------
vpn_wireguard_port: 51820
vpn_wireguard_address: "10.66.0.{{ vpn_subnet_id }}"
vpn_wireguard_netmask: "255.255.255.252"
vpn_wireguard_subnet: "10.66.0.0/30"
# --------------------------------------------------------------------------------------------------
# vpn:bridge
# --------------------------------------------------------------------------------------------------
vpn_bridge_prefix: "10.66.{{ vpn_subnet_id }}"
vpn_bridge_address: "{{ vpn_bridge_prefix }}.1"
vpn_bridge_broadcast: "{{ vpn_bridge_prefix }}.255"
vpn_bridge_netmask: "255.255.255.0"
2022-12-18 02:53:05 +01:00
vpn_bridge_dnat: "\
{% set vpn_bridge_dnat = [] %}\
{% for properties in ( services_host_services.values() | selectattr('tcp', 'defined') ) %}\
{{ vpn_bridge_dnat.append({ 'address': properties.address, 'ports': properties.tcp }) }}\
{% endfor %}\
{{ vpn_bridge_dnat }}"
2022-12-13 22:06:29 +01:00
# --------------------------------------------------------------------------------------------------
# services
# --------------------------------------------------------------------------------------------------
services_root_directory: "{{ system_var_root_directory }}"
services_home_directory: "{{ system_var_home_directory }}"
services_data_directory: "{{ system_var_data_directory }}"
services_containers_directory: "{{ system_var_containers_directory }}"
2022-12-18 00:05:58 +01:00
2022-12-16 22:16:23 +01:00
services_all_hosts: "{{ groups['asgard'] }}"
2022-12-16 23:57:38 +01:00
services_all_services: "{{
services_all_hosts | map('extract', hostvars, 'services_host_services') | map('dict2items') |
flatten | items2dict }}"
2022-12-16 22:16:23 +01:00
2023-02-12 19:37:33 +01:00
services_resolv_host: "valkyrie"
2022-12-13 22:06:29 +01:00
services:
rproxy: {}
www:
repo_user: "{{ vault_services.www.repo_user }}"
repo_token: "{{ vault_services.www.repo_token }}"
lrproxy: {}
database:
password: "{{ vault_services.database.password }}"
cloud:
domain: "{{ vault_services.cloud.domain }}"
database_name: "{{ vault_services.cloud.database_name }}"
database_user: "{{ vault_services.cloud.database_user }}"
database_password: "{{ vault_services.cloud.database_password }}"
admin_user: "{{ vault_services.cloud.admin_user }}"
admin_password: "{{ vault_services.cloud.admin_password }}"
smtp_host: "{{ vault_services.cloud.smtp_host }}"
smtp_name: "{{ vault_services.cloud.smtp_name }}"
smtp_password: "{{ vault_services.cloud.smtp_password }}"
git:
domain: "{{ vault_services.git.domain }}"
database_name: "{{ vault_services.git.database_name }}"
database_user: "{{ vault_services.git.database_user }}"
database_passwd: "{{ vault_services.git.database_passwd }}"
smtp_host: "{{ vault_services.git.smtp_host }}"
smtp_user: "{{ vault_services.git.smtp_user }}"
smtp_passwd: "{{ vault_services.git.smtp_passwd }}"
2022-12-17 00:09:05 +01:00
ssh_port: 2770
2022-12-13 22:06:29 +01:00
notes:
domain: "{{ vault_services.notes.domain }}"
database_name: "{{ vault_services.notes.database_name }}"
database_user: "{{ vault_services.notes.database_user }}"
database_password: "{{ vault_services.notes.database_password }}"
smtp_host: "{{ vault_services.notes.smtp_host }}"
smtp_name: "{{ vault_services.notes.smtp_name }}"
smtp_password: "{{ vault_services.notes.smtp_password }}"
2023-02-21 00:06:29 +01:00
music:
domain: "{{ vault_services.music.domain }}"
password_encryption_key: "{{ vault_services.music.password_encryption_key }}"
2022-12-13 22:06:29 +01:00
# --------------------------------------------------------------------------------------------------
# services:user_setup
# --------------------------------------------------------------------------------------------------
services_bridge_gateway: "{{ vpn_bridge_address }}"