modified to comment the use of juju-br0 as external network.
[joid.git] / ci / 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.5
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
34         # Apt http proxy setting(s)
35         #apt_http_proxy:
36
37         # Package sources. These will be used on the MAAS controller.
38         apt_sources:
39           - ppa:maas/stable
40           - ppa:juju/stable
41
42         # Virsh power settings
43         # Specifies the uri and keys to use for virsh power control of the 
44         # juju virtual machine. If the uri is omitted, the value for the
45         # --remote is used. If no power settings are desired, then do not
46         # supply the virsh block.
47         virsh:
48             rsa_priv_key: /home/ubuntu/.ssh/id_rsa
49             rsa_pub_key: /home/ubuntu/.ssh/id_rsa.pub
50             uri: qemu+ssh://ubuntu@192.168.122.1/system
51
52         # Defines the IP Address that the configuration script will use to
53         # to access the MAAS controller via SSH.
54         ip_address: 192.168.122.2
55
56         # This section allows the user to set a series of options on the
57         # MAAS server itself. The list of config options can be found in
58         # the upstream MAAS documentation:
59         #  - http://maas.ubuntu.com/docs/api.html#maas-server
60         settings:
61             main_archive: http://us.archive.ubuntu.com/ubuntu
62             upstream_dns: 192.168.122.1
63             maas_name: automaas
64             # kernel_opts: "console=tty0 console=ttyS1,115200n8"
65             ntp_server: ntp.ubuntu.com
66
67         # This section is used to define the networking parameters for when
68         # the node first comes up. It is fed into the meta-data cloud-init
69         # configuration and is used to configure the networking piece of the
70         # service. The contents of this section are written directly to the
71         # /etc/network/interfaces file.
72         #
73         # Please note, this is slightly different than the
74         # node-group-interfaces section below. This will configure the
75         # machine's networking params, and the node-group-interfaces will
76         # configure the maas node-group interfaces which is used for
77         # controlling the dhcp, dns, etc.
78         network_config: |
79             auto lo
80             iface lo inet loopback
81
82             auto eth0
83             iface eth0 inet static
84               address 192.168.122.2
85               netmask 255.255.255.0
86               network 192.168.122.0
87               broadcast 192.168.122.255
88               gateway 192.168.122.1
89               dns-nameservers 192.168.122.1 127.0.0.1
90
91         # See https://maas.ubuntu.com/docs/maascli.html#node-groups for
92         # description and full list of supported options.
93         # NOTE: interfaces are added using the node_group_interfaces section
94         #       and only one node_group can be created by this bundle.
95         #       Additional node groups can be added post deployment.
96         #node_group:
97         #    # This is the cluster DNS name.
98         #    name: maas
99
100         # The node-group-interfaces section is used to configure the MAAS
101         # network interfaces. Basic configuration is supported, such as which
102         # device should be bound, the range of IP addresses, etc.
103         # Note: this may contain the special identifiers:
104         #   ${maas_net} - the first 3 octets of the ipv4 address
105         #   ${maas_ip} - the ip address of the MAAS controller 
106         node_group_ifaces:
107             - device: eth0
108               ip: 192.168.122.2
109               subnet_mask: 255.255.255.0
110               broadcast_ip: 192.168.122.255
111               router_ip: 192.168.122.1
112               static_range:
113                   low: 192.168.122.51
114                   high: 192.168.122.60
115               dynamic_range:
116                   low: 192.168.122.5
117                   high: 192.168.122.50
118
119         # Physical nodes to be added to the MAAS cluster. Nodes will be
120         # configured, commissioned and put into the Ready state so
121         # they are ready to be deployed to.
122         #nodes:
123         #    - name: node1
124         #      tags: api
125         #      architecture: amd64/generic
126         #      mac_addresses:
127         #          - "38:63:bb:43:b8:9c"
128         #      power:
129         #          type: ipmi
130         #          address: 10.0.1.1
131         #          user: maas
132         #          pass: passw0rd
133         #          driver: LAN_2_0
134         #      sticky_ip_address:
135         #          mac_address: "38:63:bb:43:b8:9c"
136         #          requested_address: 192.168.122.6
137