-
Notifications
You must be signed in to change notification settings - Fork 17
/
pillar.example.yaml
56 lines (53 loc) · 1.56 KB
/
pillar.example.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
lxd:
lookup:
python:
packages:
- python3-pip
containers:
local:
bootstraptest:
opts:
require:
- {lxd_profile: lxd_profile_local_default}
- {lxd_profile: lxd_profile_local_autostart}
- {lxd_image: lxd_image_local_ubuntu_xenial_amd64}
profiles: [default, autostart]
running: true
source: xenial/amd64
bootstrap_scripts:
- cmd: [ '/bin/sleep', '2' ]
- src: salt://lxd/scripts/bootstrap.sh
dst: /root/bootstrap.sh
cmd: [ '/root/bootstrap.sh', 'bootstraptest', 'pcdummy.lan', 'salt.pcdummy.lan', 'true' ]
- cmd: [ '/usr/bin/salt-call', 'state.apply' ]
images:
local:
ubuntu_xenial_amd64:
name: ubuntu/xenial/amd64
aliases:
- xenial/amd64
- ubuntu/xenial/amd64
auto_update: true
public: false
source:
name: ubuntu/xenial/amd64
remote: images_linuxcontainers_org
lxd:
init: {network_address: '[::]', network_port: 8443, trust_password: PassW0rd}
run_init: true
profiles:
local:
autostart:
config:
boot.autostart: 1
boot.autostart.delay: 2
boot.autostart.priority: 1
default:
devices:
eth0:
nictype: macvlan
parent: eth1
type: nic
#remotes:
# local: {cert: /root/.config/lxc/client.crt, key: /root/.config/lxc/client.key,
# password: PassW0rd, remote_addr: 'https://srv03:8443', type: lxd, verify_cert: false}