aboutsummaryrefslogtreecommitdiffstats
path: root/group_vars
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2023-01-13 00:15:52 +0100
committerRomain Gonçalves <me@rgoncalves.se>2023-04-02 11:45:09 +0200
commit28332d389dd3644aeb3973d4ca472820f6b45b07 (patch)
treec458ec9899a90942e726ed92f2c1a49e99d1f805 /group_vars
parent1ff0fc1803fc71d925a0f2d0cf9c27058914044a (diff)
downloadrules-28332d389dd3644aeb3973d4ca472820f6b45b07.tar.gz
feat(roles/relayd): add argument specs
Diffstat (limited to 'group_vars')
-rw-r--r--group_vars/all.yml11
1 files changed, 8 insertions, 3 deletions
diff --git a/group_vars/all.yml b/group_vars/all.yml
index fc3b760..2ae2bbc 100644
--- a/group_vars/all.yml
+++ b/group_vars/all.yml
@@ -8,11 +8,16 @@ ansible_become_method: su
# roles overrides
wireguard_domain_controller: "{{ __global_domain_controller }}"
-relayd_domain_name: "{{ __global_domain_name }}"
+relayd_domain_name: "{{ __domain_name }}"
acme_domain_name: "{{ __global_domain_name }}"
nfsclient_server: stack0
httpd_use_nfs: true
-relayd_rules: "{{ __services }}"
+relayd_rules: "[
+ {% for rule in __services if
+ 'domain' in rule and 'port' in rule %}
+ {{ {'name': rule.name, 'domain': rule.domain, 'port': rule.port} }},
+ {% endfor %}
+ ]"
pf_rules: "[
{% for rule in __services if
'port' in rule and 'protocol' in rule and 'name' in rule %}
@@ -30,9 +35,9 @@ __ip:
internal:
__services: {}
+__domain_name: rgoncalves.se
__global_domain_controller: dc0
-__global_domain_name: rgoncalves.se
__global_domain_name_hosts: owo
__global_domain_name_servers:
- 8.8.8.8
remember that computers suck.