1 heat_template_version: 2015-10-15
4 Template for deploying n PROX instances. The template allows for deploying
5 multiple groups of PROX VMs. You can create a first group with certain
6 flavors, availability groups, etc... Another group can be created with
7 different characteristics.
10 public_net_name: {description: Public network to allocate (floating) IPs to VMs', type: string, default: admin_floating_net}
11 mgmt_net_name: {description: Name of PROX mgmt network to be created, type: string, default: admin_internal_net}
12 PROX_image: {description: Image name to use for PROX, type: string, default: rapidVM}
13 PROX_key: {description: DO NOT CHANGE THIS DEFAULT KEY NAME, type: string, default: rapid_key}
14 my_availability_zone: {description: availability_zone for Hosting VMs, type: string, default: nova}
15 security_group: {description: Security Group to use, type: string, default: prox_security_group}
16 PROXVM_count: {description: Total number of testVMs to create, type: number, default: 2}
17 PROX2VM_count: {description: Total number of testVMs to create, type: number, default: 1}
19 # The following paramters are not used, but are here in case you want to also
20 # create the management and dataplane networks in this template
21 mgmt_net_cidr: {description: PROX mgmt network CIDR, type: string, default: 20.20.1.0/24}
22 mgmt_net_gw: {description: PROX mgmt network gateway address, type: string, default: 20.20.1.1}
23 mgmt_net_pool_start: {description: Start of mgmt network IP address allocation pool, type: string, default: 20.20.1.100}
24 mgmt_net_pool_end: {description: End of mgmt network IP address allocation pool, type: string, default: 20.20.1.200}
25 data_net_name: {description: Name of PROX private network to be created, type: string, default: dataplane-network}
26 data_net_cidr: {description: PROX private network CIDR,type: string, default: 30.30.1.0/24}
27 data_net_pool_start: {description: Start of private network IP address allocation pool, type: string, default: 30.30.1.100}
28 data_net_pool_end: {description: End of private network IP address allocation pool, type: string, default: 30.30.1.200}
30 type: comma_delimited_list
31 label: DNS nameservers
32 description: Comma separated list of DNS nameservers for the management network.
37 type: OS::Heat::ResourceGroup
38 description: Group of PROX VMs according to specs described in this section
40 count: { get_param: PROXVM_count }
42 type: rapid-openstack-server.yaml
44 PROX_availability_zone : {get_param: my_availability_zone}
45 PROX_security_group : {get_param: security_group}
46 PROX_image: {get_param: PROX_image}
47 PROX_key: {get_param: PROX_key}
48 PROX_server_name: rapidVM-%index%
49 PROX_public_net: {get_param: public_net_name}
50 PROX_mgmt_net_id: {get_param: mgmt_net_name}
51 PROX_data_net_id: {get_param: data_net_name}
52 PROX_config: {get_resource: MyConfig}
57 type: OS::Heat::ResourceGroup
58 description: Group of PROX VMs according to specs described in this section
60 count: { get_param: PROX2VM_count }
62 type: rapid-openstack-server.yaml
64 PROX_availability_zone : {get_param: my_availability_zone}
65 PROX_security_group : {get_param: security_group}
66 PROX_image: {get_param: PROX_image}
67 PROX_key: {get_param: PROX_key}
68 PROX_server_name: rapidType2VM-%index%
69 PROX_public_net: {get_param: public_net_name}
70 PROX_mgmt_net_id: {get_param: mgmt_net_name}
71 PROX_data_net_id: {get_param: data_net_name}
72 PROX_config: {get_resource: MyConfig}
77 type: OS::Heat::CloudConfig
87 sudo: "ALL=(ALL) NOPASSWD:ALL"
94 - path: /opt/rapid/after_boot_do_not_run.sh
95 # after_boot.sh is ran by check_prox_system_setup.sh, if it exists
96 # This can be used to fix some issues, like in the example below
97 # Remove this section or rename the file, if you do not want to run
102 list="$(ip route | grep via | grep -v 'dev eth0')"
103 # Delete all routes using gateway on other interfaces than eth0
105 do /bin/bash -c "sudo ip route del ${item}"
107 /bin/bash -c "sudo ip route add default via 10.6.6.1 dev eth0"
108 /bin/bash -c "echo nameserver 8.8.8.8 > /etc/resolv.conf"
114 description: List of number or PROX instance
116 - {get_param: PROXVM_count}
117 - {get_param: PROX2VM_count}
119 description: List of list of names of the PROX instances
121 - {get_attr: [PROXVMs, name]}
122 - {get_attr: [PROX2VMs, name]}
124 description: List of list of Management IPs of the VMs
126 - {get_attr: [PROXVMs, mngmt_ip]}
127 - {get_attr: [PROX2VMs, mngmt_ip]}
129 description: List of list of list of DataPlane IPs of the VMs
131 - {get_attr: [PROXVMs, data_plane_ips]}
132 - {get_attr: [PROX2VMs, data_plane_ips]}
134 description: List of list of list of DataPlane MACs of the VMs
136 - {get_attr: [PROXVMs, data_plane_mac]}
137 - {get_attr: [PROX2VMs, data_plane_mac]}