summaryrefslogtreecommitdiffstats
path: root/docs/examples/two-network
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2017-02-15 09:13:54 -0700
committerspisarski <s.pisarski@cablelabs.com>2017-02-15 09:15:34 -0700
commit57777f3df521553a06cd01a3861b415d2905ceca (patch)
treef3b3be457baec7b5231309989aa3ffa9658cd25d /docs/examples/two-network
parent73ef791a1cde68e0d8d69cddf63534fbb90f3e2d (diff)
Initial patch with all code from CableLabs repository.
Change-Id: I70a2778718c5e7f21fd14e4ad28c9269d3761cc7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'docs/examples/two-network')
-rw-r--r--docs/examples/two-network/deploy-two-net-centos.yaml96
-rw-r--r--docs/examples/two-network/deploy-two-net-ubuntu.yaml96
2 files changed, 192 insertions, 0 deletions
diff --git a/docs/examples/two-network/deploy-two-net-centos.yaml b/docs/examples/two-network/deploy-two-net-centos.yaml
new file mode 100644
index 0000000..4fae4aa
--- /dev/null
+++ b/docs/examples/two-network/deploy-two-net-centos.yaml
@@ -0,0 +1,96 @@
+# Copyright (c) 2016 Cable Television Laboratories, Inc. ("CableLabs")
+# and others. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+---
+openstack:
+ connection:
+ # Note - when http_proxy is set, you must also configure ssh for proxy tunneling on your host.
+ username: admin
+ password: cable123
+ auth_url: http://10.197.103.50:5000/v2.0/
+ project_name: admin
+ http_proxy: localhost:3128
+ images:
+ - image:
+ name: centos
+ format: qcow2
+ image_user: centos
+ download_url: http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2
+ nic_config_pb_loc: provisioning/ansible/centos-network-setup/playbooks/configure_host.yml
+ networks:
+ - network:
+ name: net-1
+ subnets:
+ - subnet:
+ name: subnet-1
+ cidr: 10.0.1.0/24
+ dns_nameservers: [8.8.8.8]
+ - network:
+ name: net-2
+ subnets:
+ - subnet:
+ name: subnet-2
+ cidr: 10.0.2.0/24
+ dns_nameservers: [8.8.8.8]
+ routers:
+ - router:
+ name: router-1
+ external_gateway: external
+ internal_subnets:
+ - subnet-1
+ keypairs:
+ - keypair:
+ name: two-net
+ public_filepath: /tmp/two-net.pub
+ private_filepath: /tmp/two-net
+ instances:
+ - instance:
+ name: vm1
+ flavor: m1.small
+ imageName: centos
+ keypair_name: two-net
+ ports:
+ - port:
+ name: port-1-vm1
+ network_name: net-1
+ - port:
+ name: port-2-vm1
+ network_name: net-2
+ floating_ips:
+ - floating_ip:
+ name: fip1
+ port_name: port-1-vm1
+ router_name: router-1
+ subnet_name: subnet-1
+ - instance:
+ name: vm2
+ flavor: m1.small
+ imageName: centos
+ keypair_name: two-net
+ ports:
+ - port:
+ name: port-1-vm2
+ network_name: net-1
+ - port:
+ name: port-2-vm2
+ network_name: net-2
+ ip_addrs:
+ - subnet_name: subnet-2
+ ip: 10.0.2.101
+ floating_ips:
+ - floating_ip:
+ name: fip1
+ port_name: port-1-vm2
+ router_name: router-1
+ subnet_name: subnet-1 \ No newline at end of file
diff --git a/docs/examples/two-network/deploy-two-net-ubuntu.yaml b/docs/examples/two-network/deploy-two-net-ubuntu.yaml
new file mode 100644
index 0000000..ffcb05d
--- /dev/null
+++ b/docs/examples/two-network/deploy-two-net-ubuntu.yaml
@@ -0,0 +1,96 @@
+# Copyright (c) 2016 Cable Television Laboratories, Inc. ("CableLabs")
+# and others. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+---
+openstack:
+ connection:
+ # Note - when http_proxy is set, you must also configure ssh for proxy tunneling on your host.
+ username: admin
+ password: cable123
+ auth_url: http://10.197.103.50:5000/v2.0/
+ project_name: admin
+ http_proxy: localhost:3128
+ images:
+ - image:
+ name: Ubuntu
+ format: qcow2
+ image_user: ubuntu
+ download_url: http://uec-images.ubuntu.com/releases/trusty/14.04/ubuntu-14.04-server-cloudimg-amd64-disk1.img
+ nic_config_pb_loc: provisioning/ansible/ubuntu-network-setup/playbooks/configure_host.yml
+ networks:
+ - network:
+ name: net-1
+ subnets:
+ - subnet:
+ name: subnet-1
+ cidr: 10.0.1.0/24
+ dns_nameservers: [8.8.8.8]
+ - network:
+ name: net-2
+ subnets:
+ - subnet:
+ name: subnet-2
+ cidr: 10.0.2.0/24
+ dns_nameservers: [8.8.8.8]
+ routers:
+ - router:
+ name: router-1
+ external_gateway: external
+ internal_subnets:
+ - subnet-1
+ keypairs:
+ - keypair:
+ name: simple
+ public_filepath: /tmp/simple.pub
+ private_filepath: /tmp/simple
+ instances:
+ - instance:
+ name: vm1
+ flavor: m1.small
+ imageName: Ubuntu
+ keypair_name: simple
+ ports:
+ - port:
+ name: port-1-vm1
+ network_name: net-1
+ - port:
+ name: port-2-vm1
+ network_name: net-2
+ floating_ips:
+ - floating_ip:
+ name: fip1
+ port_name: port-1-vm1
+ router_name: router-1
+ subnet_name: subnet-1
+ - instance:
+ name: vm2
+ flavor: m1.small
+ imageName: Ubuntu
+ keypair_name: simple
+ ports:
+ - port:
+ name: port-1-vm2
+ network_name: net-1
+ - port:
+ name: port-2-vm2
+ network_name: net-2
+ ip_addrs:
+ - subnet_name: subnet-2
+ ip: 10.0.2.101
+ floating_ips:
+ - floating_ip:
+ name: fip1
+ port_name: port-1-vm2
+ router_name: router-1
+ subnet_name: subnet-1 \ No newline at end of file