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