modified the dhcp for mutiple deployment of openstack.
[joid.git] / ci / maas / juniper / pod1 / 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-juniper
14         interfaces: ['bridge=brAdm,model=virtio', 'bridge=brPublic,model=virtio']
15         memory: 4096
16         vcpus: 1
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@172.16.50.51/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: 172.16.50.50
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: juniperpod1
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 172.16.50.50
71             netmask 255.255.255.0
72             network 172.16.50.0
73             broadcast 172.16.50.255
74             dns-nameservers 8.8.8.8 127.0.0.1
75
76             auto eth1
77             iface eth1 inet static
78             address 10.10.15.50
79             netmask 255.255.240.0
80             network 10.10.0.0
81             broadcast 10.10.15.255
82             gateway 10.10.10.1
83
84         # The node-group-interfaces section is used to configure the MAAS
85         # network interfaces. Basic configuration is supported, such as which
86         # device should be bound, the range of IP addresses, etc.
87         # Note: this may contain the special identifiers:
88         #   ${maas_net} - the first 3 octets of the ipv4 address
89         #   ${maas_ip} - the ip address of the MAAS controller 
90         node_group_ifaces:
91             - device: eth0
92               ip: 172.16.50.50
93               subnet_mask: 255.255.255.0
94               broadcast_ip: 172.16.50.255
95               router_ip: 172.16.50.50
96               static_range:
97                   low: 172.16.50.60
98                   high: 172.16.50.90
99               dynamic_range:
100                   low: 172.16.50.91
101                   high: 172.16.50.254
102
103         # Defines the physical nodes which are added to the MAAS cluster
104         # controller upon startup of the node.
105         nodes:
106             - name: 2-R4N4B2-control
107               tags: control
108               architecture: amd64/generic
109               mac_addresses:
110                   - "0c:c4:7a:16:2a:70"
111               power:
112                   type: ipmi
113                   address: 10.10.7.92
114                   user: ADMIN
115                   pass: ADMIN
116                   driver: LAN_2_0
117
118             - name: 3-R4N3B1-compute
119               tags: compute
120               architecture: amd64/generic
121               mac_addresses:
122                   - "0c:c4:7a:53:57:c2"
123               power:
124                   type: ipmi
125                   address: 10.10.7.84
126                   user: ADMIN
127                   pass: ADMIN
128                   driver: LAN_2_0
129
130             - name: 4-R4N4B4-control
131               tags: control
132               architecture: amd64/generic
133               mac_addresses:
134                   - "0c:c4:7a:16:22:9c"
135               power:
136                   type: ipmi
137                   address: 10.10.7.95
138                   user: ADMIN
139                   pass: ADMIN
140                   driver: LAN_2_0
141
142             - name: 5-R4N3B2-compute
143               tags: compute
144               architecture: amd64/generic
145               mac_addresses:
146                   - "0c:c4:7a:53:57:16"
147               power:
148                   type: ipmi
149                   address: 10.10.7.85
150                   user: ADMIN
151                   pass: ADMIN
152                   driver: LAN_2_0
153
154             - name: 6-R4N4B3-control
155               tags: control
156               architecture: amd64/generic
157               mac_addresses:
158                   - "0c:c4:7a:16:2a:0a"
159               power:
160                   type: ipmi
161                   address: 10.10.7.93
162                   user: ADMIN
163                   pass: ADMIN
164                   driver: LAN_2_0
165
166     # Contains the virtual machine parameters for creating the Juju bootstrap
167     # node virtual machine
168     juju-bootstrap:
169         name: bootstrap
170         interfaces: ['bridge=brAdm,model=virtio', 'bridge=brPublic,model=virtio']
171         memory: 4096
172         vcpus: 2
173         arch: amd64
174         pool: default
175         disk_size: 120G