summaryrefslogtreecommitdiff
path: root/chaos-at-home/ch-gnocchi.yml
blob: fd519bfd4b195f2b87af58509d73a2b0653267da (plain) (blame)
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
---
- name: Basic Setup
  hosts: ch-gnocchi
  roles:
  - role: apt-repo/base
  - role: core/base
  - role: core/sshd
  - role: core/zsh
  - role: core/cpu-microcode
  - role: vm/host
  - role: installer/debian/base
  - role: installer/openbsd/base
  post_tasks:
  # you need to reboot for changes to take effect
  - name: install network interface config
    copy:
      dest: /etc/network/interfaces
      content: |
        # This file describes the network interfaces available on your system
        # and how to activate them. For more information, see interfaces(5).

        # The loopback network interface
        auto lo
        iface lo inet loopback
        {% for interface in (__vmhost_bridge_interface_zones__.keys() | sort) %}


        auto {{ interface }}
        iface {{ interface }} inet manual
        {%   for zone in __vmhost_bridge_interface_zones__[interface] %}

        auto {{ interface }}.{{ network_zones[zone].vlan }}
        iface {{ interface }}.{{ network_zones[zone].vlan }} inet manual
        {%   endfor %}
        {% endfor %}


        source /etc/network/interfaces.d/*