commit | author | age
|
47e9c1
|
1 |
setup_timezone {{ oizone['sysding']['timezone'] }} |
OB |
2 |
setup_locale {{ oizone['sysding']['locale'] }} |
|
3 |
|
3ada41
|
4 |
{% if oizone['sysding']['nfs4domain'] %} |
OB |
5 |
setup_nfs4domain "{{ oizone['sysding']['nfs4domain'] }}" |
|
6 |
{% endif %} |
|
7 |
|
|
8 |
{% for user in oizone['sysding']['users'] %} |
|
9 |
{% if user['name'] != "root" %} |
|
10 |
setup_user_account {{ user['name'] }} {{ user['uid'] }} {{ user['gid'] }} {{ user['gecos'] }} {{ user['home'] }} {{ user['shell'] }} |
|
11 |
mkdir -p {{ user['home'] }} |
|
12 |
chmod {{ user['name'] }}:{{ user['gid'] }} {{ user['home'] }} |
|
13 |
{% endif %} |
|
14 |
setup_user_password {{ user['name'] }} '{{ user["hashedpassword"] }}' |
|
15 |
{% endfor %} |
47e9c1
|
16 |
|
3ada41
|
17 |
{% if oizone['iptype'] == "exclusive-ip" %} |
OB |
18 |
{% for nic in oizone['nics'] %} |
|
19 |
setup_interface {{ nic['logical'] }} {{ nic['addrsuffix'] }} {{ nic['address'] }} |
|
20 |
{% endfor %} |
|
21 |
{% endif %} |
|
22 |
|
|
23 |
{% for route in oizone['sysding']['ip']['routes'] %} |
|
24 |
setup_route {{ route['target'] }} {{ route['router'] }} |
|
25 |
{% endfor %} |
|
26 |
|
47e9c1
|
27 |
{% if oizone['sysding']['ip']['dns'] %} |
OB |
28 |
setup_ns_dns "{{ oizone['sysding']['ip']['dns']['domain'] }}" "{{ oizone['sysding']['ip']['dns']['search'] | join(' ') }}" "{{ oizone['sysding']['ip']['dns']['nameservers'] | join(' ') }}" |
3ada41
|
29 |
{% endif %} |