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