Add vm zyklon
This commit is contained in:
15
roles/ariane/files/lxc-zyklon.conf
Normal file
15
roles/ariane/files/lxc-zyklon.conf
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
lxc.network.type = veth
|
||||||
|
lxc.network.link = br0
|
||||||
|
lxc.network.flags = up
|
||||||
|
lxc.network.hwaddr = 2e:6d:b6:07:15:01
|
||||||
|
|
||||||
|
lxc.aa_profile = unconfined
|
||||||
|
lxc.rootfs = /var/lib/lxc/lxc-zyklon-01/rootfs
|
||||||
|
lxc.rootfs.backend = dir
|
||||||
|
|
||||||
|
lxc.include = /usr/share/lxc/config/voidlinux.common.conf
|
||||||
|
|
||||||
|
lxc.utsname = lxc-zyklon-01
|
||||||
|
lxc.arch = amd64
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
#- name: lxc - betam container
|
- name: lxc - betam container
|
||||||
# lxc_container:
|
lxc_container:
|
||||||
# name: betam
|
name: lxc-betam-01
|
||||||
# template: debian
|
template: debian
|
||||||
|
|
||||||
- name: lxc - betam config
|
- name: lxc - betam config
|
||||||
copy:
|
template:
|
||||||
dest: /var/lib/lxc/lxc-betam-01/config
|
dest: /var/lib/lxc/lxc-betam-01/config
|
||||||
src: lxc-betam.conf
|
src: lxc-betam.conf.j2
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|||||||
14
roles/ariane/tasks/lxc-zyklon.yml
Normal file
14
roles/ariane/tasks/lxc-zyklon.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
- name: lxc - zyklon container
|
||||||
|
lxc_container:
|
||||||
|
name: lxc-zyklon-01
|
||||||
|
template: voidlinux
|
||||||
|
|
||||||
|
- name: lxc - zyklon config
|
||||||
|
copy:
|
||||||
|
dest: /var/lib/lxc/lxc-zyklon-01/config
|
||||||
|
src: lxc-zyklon.conf
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
backup: yes
|
||||||
@@ -27,6 +27,10 @@
|
|||||||
when: ariane_lxc
|
when: ariane_lxc
|
||||||
tags: ['ariane_lxc', 'lxc']
|
tags: ['ariane_lxc', 'lxc']
|
||||||
|
|
||||||
|
- include_tasks: lxc-zyklon.yml
|
||||||
|
when: ariane_lxc
|
||||||
|
tags: ['ariane_lxc', 'lxc']
|
||||||
|
|
||||||
- include_tasks: snapper.yml
|
- include_tasks: snapper.yml
|
||||||
when: ariane_snapper
|
when: ariane_snapper
|
||||||
tags: ['ariane_snapper', 'snapper']
|
tags: ['ariane_snapper', 'snapper']
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ lxc.network.flags = up
|
|||||||
lxc.network.hwaddr = 2e:6d:b6:07:14:01
|
lxc.network.hwaddr = 2e:6d:b6:07:14:01
|
||||||
|
|
||||||
lxc.aa_profile = unconfined
|
lxc.aa_profile = unconfined
|
||||||
lxc.rootfs = /var/lib/lxc/lxc-betam-01/rootfs
|
lxc.rootfs = /var/lib/lxc/lxc-{{ lxc_host }}-01/rootfs
|
||||||
lxc.rootfs.backend = dir
|
lxc.rootfs.backend = dir
|
||||||
|
|
||||||
lxc.include = /usr/share/lxc/config/debian.common.conf
|
lxc.include = /usr/share/lxc/config/debian.common.conf
|
||||||
@@ -15,3 +15,10 @@ lxc.utsname = lxc-betam-01
|
|||||||
lxc.arch = amd64
|
lxc.arch = amd64
|
||||||
|
|
||||||
lxc.cgroup.devices.allow = c 188:0 rwm
|
lxc.cgroup.devices.allow = c 188:0 rwm
|
||||||
|
|
||||||
|
|
||||||
|
lxc_host: betam
|
||||||
|
lxc_rev: 01
|
||||||
|
lxc_hwaddr: 2e:6d:b6:07:14:01
|
||||||
|
lxc_extra: lxc.cgroup.devices.allow = c 188:0 rwm
|
||||||
|
|
||||||
Reference in New Issue
Block a user