ac5e214b1631d6b734ae9177e19cdae3a3fe820c
[snaps.git] / examples / external-network / deploy-ext-net.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   networks:
31     - network:
32         name: ext-net
33         external: True
34         network_type: vlan
35         project_name: service
36         subnets:
37           - subnet:
38               name: ext-subnet
39               cidr: 10.197.101.0/24
40               gateway_ip: 10.197.101.1
41               start: 10.197.101.101
42               end: 10.197.101.200
43     - network:
44         name: internal-net
45         subnets:
46           - subnet:
47               name: internal-subnet
48               cidr: 10.0.1.0/24
49               dns_nameservers: [8.8.8.8]
50   routers:
51     - router:
52         name: ext-net-router
53         external_gateway: ext-net
54         internal_subnets:
55           - internal-subnet
56   keypairs:
57     - keypair:
58         name: ext-net-kp
59         public_filepath: /tmp/ext-net.pub
60         private_filepath: /tmp/ext-net
61   instances:
62     - instance:
63         name: ext-net-app
64         flavor: m1.small
65         imageName: Ubuntu
66         keypair_name: ext-net-kp
67         ports:
68           - port:
69               name: internal-net-port
70               network_name: internal-net
71         floating_ips:
72           - floating_ip:
73               name: fip1
74               port_name: internal-net-port
75               router_name: ext-net-router
76               subnet_name: internal-subnet
77