Merge "Get ppa:maas/next, add eth1 on controller, other minor edits"
[joid.git] / ci / maas / att / virpod1 / deployment.yaml
1 # This file defines the deployment for the MAAS environment which is to be
2 # deployed and automated.
3 demo-maas:
4     maas:
5         # Defines the general setup for the MAAS environment, including the
6         # username and password for the host as well as the MAAS server.
7         user: ubuntu
8         password: ubuntu
9
10         # Contains the virtual machine parameters for creating the MAAS virtual
11         # server. Here you can configure the name of the virsh domain, the
12         # parameters for how the network is attached.
13         name: opnfv-maas-att
14         interfaces: ['bridge=brAdm,model=virtio']
15         memory: 4096
16         vcpus: 2
17         arch: amd64
18         pool: default
19         disk_size: 160G
20
21         # Apt http proxy setting(s)
22         apt_http_proxy:
23
24         apt_sources:
25 #          - ppa:maas/stable
26           - ppa:maas/next
27           - ppa:juju/stable
28
29         # Virsh power settings
30         # Specifies the uri and keys to use for virsh power control of the 
31         # juju virtual machine. If the uri is omitted, the value for the
32         # --remote is used. If no power settings are desired, then do not
33         # supply the virsh block.
34         virsh:
35             rsa_priv_key: /home/ubuntu/.ssh/id_rsa
36             rsa_pub_key: /home/ubuntu/.ssh/id_rsa.pub
37             uri: qemu+ssh://ubuntu@192.168.10.2/system
38
39         # Defines the IP Address that the configuration script will use to
40         # to access the MAAS controller via SSH.
41         ip_address: 192.168.10.3
42
43         # This section allows the user to set a series of options on the
44         # MAAS server itself. The list of config options can be found in
45         # the upstream MAAS documentation:
46         #  - http://maas.ubuntu.com/docs/api.html#maas-server
47         settings:
48             main_archive: http://us.archive.ubuntu.com/ubuntu
49             upstream_dns: 8.8.8.8
50             maas_name: attvirpod1
51             # kernel_opts: "console=tty0 console=ttyS1,115200n8"
52             # ntp_server: ntp.ubuntu.com
53
54         # This section is used to define the networking parameters for when
55         # the node first comes up. It is fed into the meta-data cloud-init
56         # configuration and is used to configure the networking piece of the
57         # service. The contents of this section are written directly to the
58         # /etc/network/interfaces file.
59         #
60         # Please note, this is slightly different than the
61         # node-group-interfaces section below. This will configure the
62         # machine's networking params, and the node-group-interfaces will
63         # configure the maas node-group interfaces which is used for
64         # controlling the dhcp, dns, etc.
65         network_config: |
66             auto lo
67             iface lo inet loopback
68
69             auto eth0
70             iface eth0 inet static
71             address 192.168.10.3
72             netmask 255.255.255.0
73             network 192.168.10.0
74             broadcast 192.168.10.255
75             gateway 192.168.10.1
76             dns-nameservers 8.8.8.8 127.0.0.1
77
78         # The node-group-interfaces section is used to configure the MAAS
79         # network interfaces. Basic configuration is supported, such as which
80         # device should be bound, the range of IP addresses, etc.
81         # Note: this may contain the special identifiers:
82         #   ${maas_net} - the first 3 octets of the ipv4 address
83         #   ${maas_ip} - the ip address of the MAAS controller 
84         node_group_ifaces:
85             - device: eth0
86               ip: 192.168.10.3
87               subnet_mask: 255.255.255.0
88               broadcast_ip: 192.168.10.255
89               router_ip: 192.168.10.1
90               static_range:
91                   low: 192.168.10.20
92                   high: 192.168.10.100
93               dynamic_range:
94                   low: 192.168.10.101
95                   high: 192.168.10.200
96
97         # Defines the physical nodes which are added to the MAAS cluster
98         # controller upon startup of the node.
99         nodes:
100             - name: controller1
101               tags: control
102               architecture: amd64/generic
103               mac_addresses:
104                   - "B8:AE:ED:76:F9:FF"
105               power:
106                   type: ether_wake
107                   address: B8:AE:ED:76:F9:FF
108
109             - name: compute1
110               tags: compute
111               architecture: amd64/generic
112               mac_addresses:
113                   - "B8:AE:ED:76:FB:C4"
114               power:
115                   type: ether_wake
116                   address: B8:AE:ED:76:FB:C4
117
118     # Contains the virtual machine parameters for creating the Juju bootstrap
119     # node virtual machine
120     juju-bootstrap:
121         name: bootstrap
122         interfaces: ['bridge=brAdm,model=virtio']
123         memory: 4096
124         vcpus: 2
125         arch: amd64
126         pool: default
127         disk_size: 120G