-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenv.j2
38 lines (32 loc) · 1.34 KB
/
env.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Subnet info, used by DNSMasq. PRIVATE_IP is used by most components to ensure the composition is only exposed privately.
PRIVATE_CIDR="{{ private_cidr }}"
PRIVATE_IP="{{ private_cidr | ansible.utils.ipv4('address') }}"
SUBNET_START="{{ private_cidr |
ansible.utils.ipaddr((leases_min_start, 2+(static_macs|length)) | max) |
ansible.utils.ipv4('address') }}"
SUBNET_END="{{ private_cidr |
ansible.utils.ipaddr(-1) |
ansible.utils.ipv4('address') }}"
SUBNET_NETMASK="{{ private_cidr |
ansible.utils.ipaddr('netmask') |
ansible.utils.ipv4('address') }}"
# The interface DNSMasq will bind to.
PRIVATE_INTERFACE="{{ private_interface }}"
# The DNS server that DNSMasq will use.
DNS_RESOLVER="{{ dns_resolver }}"
STATIC_LEASES="# Static leases
{% for mac in static_macs %}
{% if not (mac | ansible.utils.hwaddr) %}# INVALID MAC ADDRESS {% endif %}
dhcp-host={{ mac }},{{ private_cidr |
ansible.utils.ipaddr(2+loop.index0) |
ansible.utils.ipv4('address') }},0
{% endfor %}"
# Information on the username to
MACHINE_HOSTNAME="{{ machine_hostname }}"
MACHINE_USERNAME="{{ machine_username }}"
MACHINE_PASSWORD="{{ machine_password }}"
GITHUB_USERNAMES="{{ github_usernames | join(',') }}"
CCS_HOST="{{ ccs_host }}"
DOMAIN="{{ domain }}"
ACNG_PORT="{{ acng_port }}"
LANGUAGES="{{ languages|join(' ') }}"