Backup work.

This commit is contained in:
Maurice Makaay 2020-02-07 11:49:00 +01:00
parent ac583527f5
commit d3aabf04a8
4 changed files with 29 additions and 9 deletions

View File

@ -31,6 +31,11 @@ lxd:
- python3 - python3
timezone: Europe/Amsterdam timezone: Europe/Amsterdam
devices: devices:
if-public:
name: if-public
nictype: bridged
parent: br-public
type: nic
if-demo: if-demo:
name: if-demo name: if-demo
nictype: bridged nictype: bridged

View File

@ -11,14 +11,19 @@
# are attached to the same network/interface.) # are attached to the same network/interface.)
networks: networks:
demo: public:
network: 192.168.56.0 network: 192.168.56.0
gateway: 192.168.56.1 gateway: 192.168.56.1
netmask: 255.255.255.0 netmask: 255.255.255.0
dns: dns:
- 192.168.56.1 - 192.168.56.1
interface: if-public
segments:
- public
- hostname
demo:
network: 10.0.0.0
netmask: 255.255.255.0
interface: if-demo interface: if-demo
segments: segments:
- mgmt - mgmt
- public
- hostname

View File

@ -7,17 +7,20 @@ nodes:
- name: sidn-demo-01 - name: sidn-demo-01
type: ubuntu-18.04-lxd_host type: ubuntu-18.04-lxd_host
network: network:
demo: {address: 192.168.56.150} public: {address: 192.168.56.150}
demo: {address: 10.0.0.150}
- name: sidn-demo-02 - name: sidn-demo-02
type: ubuntu-18.04-lxd_host type: ubuntu-18.04-lxd_host
network: network:
demo: {address: 192.168.56.151} public: {address: 192.168.56.151}
demo: {address: 10.0.0.151}
ansible: ansible:
- name: ansible-01 - name: ansible-01
lxd_host: sidn-demo-01 lxd_host: sidn-demo-01
network: network:
demo: {address: 192.168.56.160} public: {address: 192.168.56.160}
demo: {address: 10.0.0.160}
ansible_connection: local ansible_connection: local
galera-shared: galera-shared:
@ -32,12 +35,15 @@ nodes:
- name: galera-01 - name: galera-01
lxd_host: sidn-demo-01 lxd_host: sidn-demo-01
network: network:
demo: {address: 192.168.56.161, mac_address: "00:16:e3:00:00:a1"} public: {address: 192.168.56.161, mac_address: "00:16:e3:00:00:a1"}
demo: {address: 10.0.0.161, mac_address: "00:16:e3:00:01:a1"}
- name: galera-02 - name: galera-02
lxd_host: sidn-demo-02 lxd_host: sidn-demo-02
network: network:
demo: {address: 192.168.56.162, mac_address: "00:16:e3:00:00:a2"} public: {address: 192.168.56.162, mac_address: "00:16:e3:00:00:a2"}
demo: {address: 10.0.0.162, mac_address: "00:16:e3:00:01:a2"}
- name: galera-03 - name: galera-03
lxd_host: sidn-demo-02 lxd_host: sidn-demo-02
network: network:
demo: {address: 192.168.56.163, mac_address: "00:16:e3:00:00:a3"} public: {address: 192.168.56.163, mac_address: "00:16:e3:00:00:a3"}
demo: {address: 10.0.0.163, mac_address: "00:16:e3:00:01:a3"}

View File

@ -19,6 +19,10 @@
{{ hostvars[inventory_hostname].lxd_host | quote }}:{{ inventory_hostname | quote }} {{ hostvars[inventory_hostname].lxd_host | quote }}:{{ inventory_hostname | quote }}
{{ item.name | quote }} {{ item.value | quote }} {{ item.name | quote }} {{ item.value | quote }}
with_items: with_items:
- name: boot.autostart
value: 1
- name: boot.autostart.delay
value: 1
- name: boot.autostart.priority - name: boot.autostart.priority
value: "{{ hostvars[inventory_hostname].lxd_boot_priority | default(0) }}" value: "{{ hostvars[inventory_hostname].lxd_boot_priority | default(0) }}"