ee35f651eb08d4819e63ff8b994b1b09f422a1bd
[joid.git] / labconfig / default / labconfig.yaml
1 demo-maas:
2     # Contains the virtual machine parameters for creating the Juju bootstrap
3     # node virtual machine
4     juju-bootstrap:
5         name: bootstrap
6         interfaces: ['bridge=virbr0,model=virtio']
7         memory: 2048
8         vcpus: 2
9         arch: amd64
10         pool: default
11         disk_size: 20G
12 #        sticky_ip_address:
13 #            requested_address: 192.168.122.25
14
15     maas:
16         # Defines the general setup for the MAAS environment, including the
17         # username and password for the host as well as the MAAS server.
18         user: ubuntu
19         password: ubuntu
20
21         # Contains the virtual machine parameters for creating the MAAS virtual
22         # server. Here you can configure the name of the virsh domain, the
23         # parameters for how the network is attached.
24         name: opnfv-maas
25         interfaces: ['bridge=virbr0,model=virtio']
26         memory: 4096
27         vcpus: 2
28         arch: amd64
29         pool: default
30         disk_size: 60G
31         release: trusty
32
33         # Apt http proxy setting(s)
34         apt_http_proxy:
35
36         apt_sources:
37           - ppa:maas/stable
38           - ppa:juju/stable
39
40         boot_source:
41             url: http://maas.ubuntu.com/images/ephemeral-v2/releases/
42             keyring_filename: /usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
43             selections:
44                 1:
45                     release: xenial
46                     os: ubuntu
47                     arches: amd64
48                     subarches: "*"
49                     labels: release
50         # Virsh power settings
51         # Specifies the uri and keys to use for virsh power control of the 
52         # juju virtual machine. If the uri is omitted, the value for the
53         # --remote is used. If no power settings are desired, then do not
54         # supply the virsh block.
55         virsh:
56             rsa_priv_key: /home/ubuntu/.ssh/id_rsa
57             rsa_pub_key: /home/ubuntu/.ssh/id_rsa.pub
58             uri: qemu+ssh://ubuntu@192.168.122.1/system
59
60         # Defines the IP Address that the configuration script will use to
61         # to access the MAAS controller via SSH.
62         ip_address: 192.168.122.1
63
64         # This section allows the user to set a series of options on the
65         # MAAS server itself. The list of config options can be found in
66         # the upstream MAAS documentation:
67         #  - http://maas.ubuntu.com/docs/api.html#maas-server
68         settings:
69             main_archive: http://us.archive.ubuntu.com/ubuntu
70             upstream_dns: 192.168.122.1
71             maas_name: automaas
72             # kernel_opts: "console=tty0 console=ttyS1,115200n8"
73             ntp_server: ntp.ubuntu.com
74
75         # This section is used to define the networking parameters for when
76         # the node first comes up. It is fed into the meta-data cloud-init
77         # configuration and is used to configure the networking piece of the
78         # service. The contents of this section are written directly to the
79         # /etc/network/interfaces file.
80         #
81         # Please note, this is slightly different than the
82         # node-group-interfaces section below. This will configure the
83         # machine's networking params, and the node-group-interfaces will
84         # configure the maas node-group interfaces which is used for
85         # controlling the dhcp, dns, etc.
86         network_config: |
87             auto lo
88             iface lo inet loopback
89
90             auto eth0
91             iface eth0 inet static
92               address 192.168.122.2
93               netmask 255.255.255.0
94               network 192.168.122.0
95               broadcast 192.168.122.255
96               gateway 192.168.122.1
97               dns-nameservers 192.168.122.1 127.0.0.1
98
99         # See https://maas.ubuntu.com/docs/maascli.html#node-groups for
100         # description and full list of supported options.
101         # NOTE: interfaces are added using the node_group_interfaces section
102         #       and only one node_group can be created by this bundle.
103         #       Additional node groups can be added post deployment.
104         #node_group:
105         #    # This is the cluster DNS name.
106         #    name: maas
107
108         # The node-group-interfaces section is used to configure the MAAS
109         # network interfaces. Basic configuration is supported, such as which
110         # device should be bound, the range of IP addresses, etc.
111         # Note: this may contain the special identifiers:
112         #   ${maas_net} - the first 3 octets of the ipv4 address
113         #   ${maas_ip} - the ip address of the MAAS controller 
114         node_group_ifaces:
115             - device: eth0
116               ip: 192.168.122.2
117               subnet_mask: 255.255.255.0
118               broadcast_ip: 192.168.122.255
119               router_ip: 192.168.122.1
120               static_range:
121                   low: 192.168.122.101
122                   high: 192.168.122.200
123               dynamic_range:
124                   low: 192.168.122.25
125                   high: 192.168.122.100
126
127         # Physical nodes to be added to the MAAS cluster. Nodes will be
128         # configured, commissioned and put into the Ready state so
129         # they are ready to be deployed to.
130         #nodes:
131         #    - name: node1
132         #      tags: api
133         #      architecture: amd64/generic
134         #      mac_addresses:
135         #          - "38:63:bb:43:b8:9c"
136         #      power:
137         #          type: ipmi
138         #          address: 10.0.1.1
139         #          user: maas
140         #          pass: passw0rd
141         #          driver: LAN_2_0
142         #      sticky_ip_address:
143         #          mac_address: "38:63:bb:43:b8:9c"
144         #          requested_address: 192.168.122.6
145