-
Notifications
You must be signed in to change notification settings - Fork 2
/
defaults.jinja
43 lines (41 loc) · 1.11 KB
/
defaults.jinja
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
{% load_yaml as defaults %}
net:
bridge_cidr: 10.0.3.1/24
bridge_name: lxcbr0
bridge_reservations: |
dhcp-host=test,10.0.3.10
bridge_domain: lxc
profile:
storage:
- name: default
network:
- name: default
eth0:
link: br0
type: veth
flags: up
image:
- name: focal
template: download
options:
dist: Ubuntu
release: focal
arch: {{ salt['grains.get']('osarch') }}
container:
- name: default
image: focal
network: default
storage: default
autostart: false {# autostart container on reboot #}
config_head: |
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
lxc.include = /usr/share/lxc/config/ubuntu.userns.conf
lxc.include = /usr/share/lxc/config/nesting.conf
lxc.mount.auto= proc sys cgroup:rw:force
config_custom: |
# custom config
config_bottom: |
# end of config
{% endload %}
{%- set settings = salt['grains.filter_by']({'default': defaults},
grain='default', default= 'default', merge= salt['pillar.get']('lxc', {})) %}