Ansible role to provision a zone on OpenIndiana
Olaf Bohlen
2020-08-19 3ada41b2e02817175192ac3e44f261ee76993a66
commit | author | age
9cdfbb 1 ---
3ada41 2 # defaults file for oi-zone
OB 3 oizone:
4   name: oizone
5   zoneroot: /export/zones/
6   autoboot: "true"
7   bootargs: # -v
8   iptype: exclusive
9   cpus: dedicated # dedicated or capped-cpu
10   ncpus: 1
11   mem: capped-memory # or nil
12   ram: 1G
13   swap: 1G
14   locked: 1G
15   brand: ipkg
16   filesystems:
17     - path: /export/zones/oizone
18       type: zoneroot
19       zfscreate: true
20       zfs_extra_properties:
21         refquota: 10G
22     - path: apppool/oizone/datavol1
23       type: volume
24       zfscreate: true
25       zfs_extra_properties:
26         volsize: 5G
27     - path: apppool/oizone/dataset1
28       type: dataset
29       zfscreate: true
30       zfs_extra_properties:
31         quota: 2G
32     - path: /disk1
33       type: lofs
34       mountpoint: /hostdisks/disk1
35       zfscreate: false
36       options:
37         - ro
38         - nodevices
39   nics:
40     - physical: ixgbe0
41       logical: oizoneint0
42       vlan: 100
43       address: dhcp  # can be "dhcp" or a regular IP address
44       addrsuffix: v4 # can be a string, interface0/suffix will be the ipadm create-addr
45   kvm:
46     vnc: "on"
47     bootorder: cd
48   sysding:
49     timezone: UTC
50     locale: C
51     ip:
52       routes:
53         - target: default # can be a CIDR or a host ip or "default"
54           router: 172.18.0.200 # IP of the router
55       dns:
56         nameservers:
57           - 1.1.1.1
58           - 8.8.8.8
59         search:
60           - example.com
61           - openindiana.org
62         domain: example.com
63     users:
64       - name: root
65         hashedpassword: "$5$foobar...."
66       - name: localadm
67         uid: 100
68         gid: 10
69         shell: /usr/bin/bash
70         gecos: "Local Admin Account"
71         home: /export/home/localadm
72         hashedpassword: "$5$barfoo...."