Add environment variables about nameserver
This commit is contained in:
parent
1e097b9f94
commit
ef965cee49
@ -8,3 +8,5 @@ maatma_network:
|
|||||||
gateway6: "2a01:e0a:518:833::1"
|
gateway6: "2a01:e0a:518:833::1"
|
||||||
|
|
||||||
wg_adlin_port: 42912
|
wg_adlin_port: 42912
|
||||||
|
|
||||||
|
nameserver_host: aton.ra.nemunai.re
|
||||||
|
@ -48,7 +48,6 @@
|
|||||||
lxc.net.1.veth.pair = veth_sshpipper
|
lxc.net.1.veth.pair = veth_sshpipper
|
||||||
lxc.net.1.ipv4.address = 169.254.42.1/30
|
lxc.net.1.ipv4.address = 169.254.42.1/30
|
||||||
|
|
||||||
lxc.environment = ADLIN_SHARED_SECRET={{ adlin_shared_secret }}
|
|
||||||
lxc.environment = MYSQL_HOST=tcp({{ mysql_endpoint.host }}:{{ mysql_endpoint.port}})
|
lxc.environment = MYSQL_HOST=tcp({{ mysql_endpoint.host }}:{{ mysql_endpoint.port}})
|
||||||
lxc.environment = MYSQL_USER={{ mysql_maatma.username }}
|
lxc.environment = MYSQL_USER={{ mysql_maatma.username }}
|
||||||
lxc.environment = MYSQL_PASSWORD={{ mysql_maatma.password }}
|
lxc.environment = MYSQL_PASSWORD={{ mysql_maatma.password }}
|
||||||
@ -83,6 +82,14 @@
|
|||||||
- checker
|
- checker
|
||||||
- clean-wg
|
- clean-wg
|
||||||
|
|
||||||
|
- name: Copy init configs
|
||||||
|
template:
|
||||||
|
src: "{{ item }}.conf.j2"
|
||||||
|
dest: "/var/lib/lxc/{{ ctr_name }}/rootfs/etc/conf.d/{{ item }}"
|
||||||
|
mode: 0755
|
||||||
|
loop:
|
||||||
|
- token-validator
|
||||||
|
|
||||||
- name: Setup runlevels
|
- name: Setup runlevels
|
||||||
file:
|
file:
|
||||||
path: "/var/lib/lxc/{{ ctr_name }}/rootfs/etc/runlevels/{{ item.runlevel }}/{{ item.filename }}"
|
path: "/var/lib/lxc/{{ ctr_name }}/rootfs/etc/runlevels/{{ item.runlevel }}/{{ item.filename }}"
|
||||||
|
7
templates/token-validator.conf.j2
Normal file
7
templates/token-validator.conf.j2
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export ADLIN_SHARED_SECRET="{{ adlin_shared_secret }}"
|
||||||
|
export ADLIN_NS_HOST={{ nameserver_host }}:53
|
||||||
|
{% if acl_maatma_secret is defined %}
|
||||||
|
export ADLIN_TSIG_NAME=maatma.
|
||||||
|
export ADLIN_TSIG_SECRET="{{ acl_maatma_secret }}"
|
||||||
|
{% endif %}
|
||||||
|
export ADLIN_COLLECTOR_SECRET="{{ adlin_collector_secret }}"
|
Loading…
Reference in New Issue
Block a user