Add environment variables about nameserver

This commit is contained in:
nemunaire 2023-03-15 23:34:30 +01:00
commit ef965cee49
3 changed files with 17 additions and 1 deletions

View file

@ -48,7 +48,6 @@
lxc.net.1.veth.pair = veth_sshpipper
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_USER={{ mysql_maatma.username }}
lxc.environment = MYSQL_PASSWORD={{ mysql_maatma.password }}
@ -83,6 +82,14 @@
- checker
- 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
file:
path: "/var/lib/lxc/{{ ctr_name }}/rootfs/etc/runlevels/{{ item.runlevel }}/{{ item.filename }}"