Merge "Add missing licences in requirements.txt"
[snaps.git] / examples / two-network / deploy-two-net-ubuntu.yaml
1 # Copyright (c) 2016 Cable Television Laboratories, Inc. ("CableLabs")
2 #                    and others.  All rights reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 ---
16 openstack:
17   connection:
18     # Note - when http_proxy is set, you must also configure ssh for proxy tunneling on your host.
19     username: admin
20     password: NotMyPass!
21     auth_url: http://10.10.10.50:5000/v2.0/
22     project_name: admin
23     http_proxy: localhost:3128
24   images:
25     - image:
26         name: Ubuntu
27         format: qcow2
28         image_user: ubuntu
29         download_url: http://uec-images.ubuntu.com/releases/trusty/14.04/ubuntu-14.04-server-cloudimg-amd64-disk1.img
30         nic_config_pb_loc: provisioning/ansible/ubuntu-network-setup/playbooks/configure_host.yml
31   networks:
32     - network:
33         name: net-1
34         subnets:
35           - subnet:
36               name: subnet-1
37               cidr: 10.0.1.0/24
38               dns_nameservers: [8.8.8.8]
39     - network:
40         name: net-2
41         subnets:
42           - subnet:
43               name: subnet-2
44               cidr: 10.0.2.0/24
45               dns_nameservers: [8.8.8.8]
46   routers:
47     - router:
48         name: router-1
49         external_gateway: external
50         internal_subnets:
51           - subnet:
52               project_name: admin
53               network_name: net-1
54               subnet_name: subnet-1
55   keypairs:
56     - keypair:
57         name: simple
58         public_filepath: /tmp/simple.pub
59         private_filepath: /tmp/simple
60   instances:
61     - instance:
62         name: vm1
63         flavor: m1.small
64         imageName: Ubuntu
65         keypair_name: simple
66         ports:
67           - port:
68               name: port-1-vm1
69               network_name: net-1
70           - port:
71               name: port-2-vm1
72               network_name: net-2
73         floating_ips:
74           - floating_ip:
75               name: fip1
76               port_name: port-1-vm1
77               router_name: router-1
78               subnet_name: subnet-1
79     - instance:
80         name: vm2
81         flavor: m1.small
82         imageName: Ubuntu
83         keypair_name: simple
84         ports:
85           - port:
86               name: port-1-vm2
87               network_name: net-1
88           - port:
89               name: port-2-vm2
90               network_name: net-2
91               ip_addrs:
92                 - subnet_name: subnet-2
93                   ip: 10.0.2.101
94         floating_ips:
95           - floating_ip:
96               name: fip1
97               port_name: port-1-vm2
98               router_name: router-1
99               subnet_name: subnet-1