Ansible role to provision a zone on OpenIndiana
Olaf Bohlen
2020-08-20 47e9c11c8edf174168dea800d2eb9415c6bb6048
cleaned up template
1 files modified
10 ■■■■■ changed files
templates/sysding.j2 10 ●●●●● patch | view | raw | blame | history
templates/sysding.j2
@@ -1,5 +1,6 @@
setup_timezone "{{ oizone['sysding']['timezone'] }}"
setup_locale "{{ oizone['sysding']['locale'] }}"
setup_timezone {{ oizone['sysding']['timezone'] }}
setup_locale {{ oizone['sysding']['locale'] }}
{% if oizone['sysding']['nfs4domain'] %}
setup_nfs4domain "{{ oizone['sysding']['nfs4domain'] }}"
{% endif %}
@@ -12,6 +13,7 @@
{% endif %}
setup_user_password {{ user['name'] }} '{{ user["hashedpassword"] }}'
{% endfor %}
{% if oizone['iptype'] == "exclusive-ip" %}
{% for nic in oizone['nics'] %}
setup_interface {{ nic['logical'] }} {{ nic['addrsuffix'] }} {{ nic['address'] }}
@@ -22,6 +24,6 @@
setup_route {{ route['target'] }} {{ route['router'] }}
{% endfor %}
{% if oizone['sysding']['dns'] %}
setup_ns_dns "{{ oizone['sysding']['dns']['domain'] }}" "{{ oizone['sysding']['dns']['search'] | join(' ') }}" "{{ oizone['sysding']['dns']['nameservers'] | join(' ') }}"
{% if oizone['sysding']['ip']['dns'] %}
setup_ns_dns "{{ oizone['sysding']['ip']['dns']['domain'] }}" "{{ oizone['sysding']['ip']['dns']['search'] | join(' ') }}" "{{ oizone['sysding']['ip']['dns']['nameservers'] | join(' ') }}"
{% endif %}