#from random import randint #set cluster_name = $getVar('name', '') #set network_cfg = $getVar('network_cfg', {}) #set ntp_server = $getVar('ntp_server', "") #set ceph_disk = $getVar('ceph_disk',"") #set $sys_intf_mappings= {} #for $intf_info in $network_cfg.sys_intf_mappings #set $sys_intf_mappings[$intf_info["name"]] = $intf_info #end for #set ip_settings={} #for k,v in $getVar('ip_settings', {}).items() #set host_ip_settings={} #for intf in v #set $host_ip_settings[$intf["alias"]]=intf #end for #set $ip_settings[$k]=$host_ip_settings #end for #set has = $getVar('ha', []) #set ha_vip = $getVar('ha_vip', []) #set kube_masters = $getVar('kube_master', []) #set kube_nodes = $getVar('kube_node', []) run_dir: $getVar('run_dir', '') enable_secgroup: $getVar('enable_secgroup', True) enable_fwaas: $getVar('enable_fwaas', True) enable_vpnaas: $getVar('enable_vpnaas', True) odl_l3_agent: $getVar('odl_l3_agent', 'Disable') moon: $getVar('moon', 'Disable') ha_network: $getVar('ha_network', 'Disable') onos_nic: $getVar('onos_nic', 'eth2') ip_settings: $ip_settings network_cfg: $network_cfg sys_intf_mappings: $sys_intf_mappings deploy_type: $getVar('deploy_type', 'virtual') public_cidr: $kube_nodes[0]['install']['subnet'] storage_cidr: "{{ ip_settings[inventory_hostname]['storage']['cidr'] }}" mgmt_cidr: "{{ ip_settings[inventory_hostname]['mgmt']['cidr'] }}" external_cidr: "{{ ip_settings[inventory_hostname]['external']['cidr'] }}" public_net_info: "{{ network_cfg.public_net_info }}" host_ip_settings: "{{ ip_settings[inventory_hostname] }}" ntp_server: $ntp_server internal_vip: ip: $network_cfg["internal_vip"]["ip"] netmask: $network_cfg["internal_vip"]["netmask"] #if "vlan_tag" in $sys_intf_mappings[$network_cfg["internal_vip"]["interface"]] interface: $sys_intf_mappings[$network_cfg["internal_vip"]["interface"]]["name"] #else interface: $sys_intf_mappings[$network_cfg["internal_vip"]["interface"]]["interface"] #end if public_vip: ip: $network_cfg["public_vip"]["ip"] netmask: $network_cfg["public_vip"]["netmask"] #if "vlan_tag" in $sys_intf_mappings[$network_cfg["public_vip"]["interface"]] interface: $sys_intf_mappings[$network_cfg["public_vip"]["interface"]]["name"] #else interface: $sys_intf_mappings[$network_cfg["public_vip"]["interface"]]["interface"] #end if db_host: "{{ internal_vip.ip }}" rabbit_host: "{{ internal_vip.ip }}" internal_ip: "{{ ip_settings[inventory_hostname]['mgmt']['ip'] }}" internal_nic: mgmt #set random_id = randint(1, 255) vrouter_id_internal: $random_id vrouter_id_public: $random_id identity_host: "{{ internal_ip }}" controllers_host: "{{ internal_ip }}" storage_controller_host: "{{ internal_ip }}" compute_controller_host: "{{ internal_ip }}" image_host: "{{ internal_ip }}" network_server_host: "{{ internal_ip }}" dashboard_host: "{{ internal_ip }}" haproxy_hosts: #for $item in $has #set $hostname=$item["hostname"] $hostname: $ip_settings[$hostname]["external"]["ip"] #end for host_index: #for $index, $item in enumerate($has) $item["hostname"]: $index #end for ERLANG_TOKEN: YOWSJSJIGGAUFZTIBRAD cluster_name: $cluster_name odl_controller: 11.1.0.15 DEBUG: true VERBOSE: true NTP_SERVER_LOCAL: "{{ controllers_host }}" DB_HOST: "{{ db_host }}" MQ_BROKER: rabbitmq OPENSTACK_REPO: cloudarchive-newton.list newton_cloud_archive: deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/newton main ADMIN_TOKEN: admin CEILOMETER_TOKEN: c095d479023a0fd58a54 erlang.cookie: DJJVECFMCJPVYQTJTDWG #set plugins = $getVar('plugins', []) #for item in plugins #set keys = $item.keys() #set values = $item.values() $keys[0]: $values[0] #end for #set neutron_service_plugins=['router'] #if $getVar('enable_fwaas', True) #neutron_service_plugins.append('firewall') #end if #if $getVar('enable_vpnaas', True) #neutron_service_plugins.append('vpnaas') #end if NEUTRON_SERVICE_PLUGINS: $neutron_service_plugins NEUTRON_TYPE_DRIVERS: ['flat', 'gre', 'vxlan', 'vlan'] #NEUTRON_MECHANISM_DRIVERS: ['opendaylight'] NEUTRON_MECHANISM_DRIVERS: ['openvswitch'] NEUTRON_TUNNEL_TYPES: ['vxlan'] METADATA_SECRET: metadata_secret WSREP_SST_USER: wsrep_sst WSREP_SST_PASS: wsrep_sst_sercet INSTANCE_TUNNELS_INTERFACE_IP_ADDRESS: "{{ internal_ip }}" #build_in_image: http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img build_in_image: http://192.168.121.12:9999/img/cirros-0.3.3-x86_64-disk.img build_in_image_name: cirros-0.3.3-x86_64-disk.img physical_device: /dev/sdb 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 odl_pkg_name: karaf.tar.gz odl_home: "/opt/opendaylight-0.2.2/" 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'] 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'] odl_features: "{{ odl_base_features + odl_extra_features }}" odl_api_port: 8080