1 #from random import randint
2 #set cluster_name = $getVar('name', '')
3 #set network_cfg = $getVar('network_cfg', {})
4 #set ntp_server = $getVar('ntp_server', "")
5 #set ceph_disk = $getVar('ceph_disk',"")
6 #set $sys_intf_mappings= {}
7 #for $intf_info in $network_cfg.sys_intf_mappings
8 #set $sys_intf_mappings[$intf_info["name"]] = $intf_info
12 #for k,v in $getVar('ip_settings', {}).items()
13 #set host_ip_settings={}
15 #set $host_ip_settings[$intf["alias"]]=intf
17 #set $ip_settings[$k]=$host_ip_settings
20 #set neutron_cfg = $getVar('neutron_config', {})
21 #set ovs_config = $neutron_cfg.openvswitch
23 #set has = $getVar('ha', [])
24 #set ha_vip = $getVar('ha_vip', [])
26 #set controllers = $getVar('controller', [])
27 #set computers = $getVar('compute', [])
29 enable_secgroup: $getVar('enable_secgroup', True)
30 enable_fwaas: $getVar('enable_fwaas', True)
31 enable_vpnaas: $getVar('enable_vpnaas', True)
32 odl_l3_agent: $getVar('odl_l3_agent', 'Disable')
33 moon: $getVar('moon', 'Disable')
34 ha_network: $getVar('ha_network', 'Disable')
35 onos_nic: $getVar('onos_nic', 'eth2')
36 ip_settings: $ip_settings
37 network_cfg: $network_cfg
38 sys_intf_mappings: $sys_intf_mappings
39 deploy_type: $getVar('deploy_type', 'virtual')
41 public_cidr: $computers[0]['install']['subnet']
42 storage_cidr: "{{ ip_settings[inventory_hostname]['storage']['cidr'] }}"
43 mgmt_cidr: "{{ ip_settings[inventory_hostname]['mgmt']['cidr'] }}"
45 public_net_info: "{{ network_cfg.public_net_info }}"
46 host_ip_settings: "{{ ip_settings[inventory_hostname] }}"
48 ntp_server: $ntp_server
50 ip: $network_cfg["internal_vip"]["ip"]
51 netmask: $network_cfg["internal_vip"]["netmask"]
52 #if "vlan_tag" in $sys_intf_mappings[$network_cfg["internal_vip"]["interface"]]
53 interface: $sys_intf_mappings[$network_cfg["internal_vip"]["interface"]]["name"]
55 interface: $sys_intf_mappings[$network_cfg["internal_vip"]["interface"]]["interface"]
59 ip: $network_cfg["public_vip"]["ip"]
60 netmask: $network_cfg["public_vip"]["netmask"]
61 #if "vlan_tag" in $sys_intf_mappings[$network_cfg["public_vip"]["interface"]]
62 interface: $sys_intf_mappings[$network_cfg["public_vip"]["interface"]]["name"]
64 interface: $sys_intf_mappings[$network_cfg["public_vip"]["interface"]]["interface"]
67 db_host: "{{ internal_vip.ip }}"
68 rabbit_host: "{{ internal_vip.ip }}"
70 internal_ip: "{{ ip_settings[inventory_hostname]['mgmt']['ip'] }}"
73 #set random_id = randint(1, 255)
74 vrouter_id_internal: $random_id
75 vrouter_id_public: $random_id
77 identity_host: "{{ internal_ip }}"
78 controllers_host: "{{ internal_ip }}"
79 storage_controller_host: "{{ internal_ip }}"
80 compute_controller_host: "{{ internal_ip }}"
81 image_host: "{{ internal_ip }}"
82 network_server_host: "{{ internal_ip }}"
83 dashboard_host: "{{ internal_ip }}"
87 #set $hostname=$item["hostname"]
88 $hostname: $ip_settings[$hostname]["mgmt"]["ip"]
92 #for $index, $item in enumerate($has)
93 $item["hostname"]: $index
96 ERLANG_TOKEN: YOWSJSJIGGAUFZTIBRAD
97 #set credentials = $getVar('service_credentials', {})
98 #set console_credentials = $getVar('console_credentials', {})
99 #set rabbit_username = $credentials.rabbitmq.username
100 #set rabbit_password = $credentials.rabbitmq.password
101 #set keystone_dbpass = $credentials.identity.password
102 #set keystone_pass = $console_credentials.identity.password
103 #set glance_dbpass = $credentials.image.password
104 #set glance_pass = $console_credentials.image.password
105 #set nova_dbpass = $credentials.compute.password
106 #set nova_pass = $console_credentials.compute.password
107 #set dash_dbpass = $credentials.dashboard.password
108 #set cinder_dbpass = $credentials.volume.password
109 #set cinder_pass = $console_credentials.volume.password
110 #set heat_dbpass = $credentials.heat.password
111 #set heat_pass = $console_credentials.heat.password
112 #set neutron_dbpass = $credentials.network.password
113 #set neutron_pass = $console_credentials.network.password
114 #set ceilometer_dbpass = $credentials.metering.password
115 #set ceilometer_pass = $console_credentials.metering.password
116 #set aodh_dbpass = $credentials.alarming.password
117 #set aodh_pass = $console_credentials.alarming.password
118 #set admin_pass = $console_credentials.admin.password
119 #set demo_pass = $console_credentials.demo.password
121 cluster_name: $cluster_name
123 odl_controller: 10.1.0.15
127 NTP_SERVER_LOCAL: "{{ controllers_host }}"
128 DB_HOST: "{{ db_host }}"
131 OPENSTACK_REPO: cloudarchive-mitaka.list
132 mitaka_cloud_archive: deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/mitaka main
134 CEILOMETER_TOKEN: c095d479023a0fd58a54
135 erlang.cookie: DJJVECFMCJPVYQTJTDWG
137 RABBIT_USER: $rabbit_username
138 RABBIT_PASS: $rabbit_password
139 KEYSTONE_DBPASS: $keystone_dbpass
140 KEYSTONE_PASS: $keystone_pass
141 CEILOMETER_DBPASS: $ceilometer_dbpass
142 CEILOMETER_PASS: $ceilometer_pass
143 AODH_DBPASS: $aodh_dbpass
144 AODH_PASS: $aodh_pass
145 GLANCE_DBPASS: $glance_dbpass
146 GLANCE_PASS: $glance_pass
147 NOVA_DBPASS: $nova_dbpass
148 NOVA_PASS: $nova_pass
149 DASH_DBPASS: $dash_dbpass
150 CINDER_DBPASS: $cinder_dbpass
151 CINDER_PASS: $cinder_pass
152 NEUTRON_DBPASS: $neutron_dbpass
153 NEUTRON_PASS: $neutron_pass
154 HEAT_DBPASS: $heat_dbpass
155 HEAT_PASS: $heat_pass
156 DEMO_PASS: $demo_pass
157 ADMIN_PASS: $admin_pass
159 #set neutron_service_plugins=['router']
161 #if $getVar('enable_fwaas', True)
162 #neutron_service_plugins.append('firewall')
165 #if $getVar('enable_vpnaas', True)
166 #neutron_service_plugins.append('vpnaas')
169 NEUTRON_SERVICE_PLUGINS: $neutron_service_plugins
170 NEUTRON_TYPE_DRIVERS: ['flat', 'gre', 'vxlan', 'vlan']
171 NEUTRON_TENANT_NETWORK_TYPES: ['$ovs_config["tenant_network_type"]']
172 NEUTRON_OVS_BRIDGE_MAPPINGS: $ovs_config['bridge_mappings']
173 #if 'vlan_ranges' in $ovs_config
174 NEUTRON_VLAN_RANGES: $ovs_config['vlan_ranges']
176 NEUTRON_VLAN_RANGES: []
178 #if 'tunnel_id_ranges' in $ovs_config
179 NEUTRON_TUNNEL_ID_RANGES: $ovs_config['tunnel_id_ranges']
181 NEUTRON_TUNNEL_ID_RANGES: []
184 #NEUTRON_MECHANISM_DRIVERS: ['opendaylight']
185 NEUTRON_MECHANISM_DRIVERS: ['openvswitch']
186 NEUTRON_TUNNEL_TYPES: ['vxlan']
187 METADATA_SECRET: metadata_secret
188 WSREP_SST_USER: wsrep_sst
189 WSREP_SST_PASS: wsrep_sst_sercet
191 INSTANCE_TUNNELS_INTERFACE_IP_ADDRESS: "{{ internal_ip }}"
193 #build_in_image: http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img
194 build_in_image: http://192.168.121.12:9999/img/cirros-0.3.3-x86_64-disk.img
195 build_in_image_name: cirros-0.3.3-x86_64-disk.img
197 physical_device: /dev/sdb
203 odl_pkg_url: https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.2.2-Helium-SR2/distribution-karaf-0.2.2-Helium-SR2.tar.gz
204 odl_pkg_name: karaf.tar.gz
205 odl_home: "/opt/opendaylight-0.2.2/"
206 odl_base_features: ['config', 'standard', 'region', 'package', 'kar', 'ssh', 'management', 'http', 'odl-base-all','odl-aaa-authn','odl-restconf','odl-nsf-all','odl-adsal-northbound','odl-mdsal-apidocs', 'odl-openflowplugin-all']
207 odl_extra_features: ['odl-l2switch-switch', 'odl-ovsdb-plugin', 'odl-ovsdb-openstack', 'odl-ovsdb-northbound','odl-dlux-core', 'odl-restconf-all', 'odl-mdsal-clustering', 'odl-openflowplugin-flow-services', 'odl-netconf-connector', 'odl-netconf-connector-ssh', 'jolokia-osgi']
208 odl_features: "{{ odl_base_features + odl_extra_features }}"