Merge "Wire Neutron ML2 plugin and OVS agent settings as arrays"

This commit is contained in:
Jenkins
2015-12-16 11:12:59 +00:00
committed by Gerrit Code Review
6 changed files with 128 additions and 147 deletions

View File

@@ -109,7 +109,7 @@ parameters:
to create provider networks (and we use this for the default floating to create provider networks (and we use this for the default floating
network) - if changing this either use different post-install network network) - if changing this either use different post-install network
scripts or be sure to keep 'datacentre' as a mapping network name. scripts or be sure to keep 'datacentre' as a mapping network name.
type: string type: comma_delimited_list
default: "datacentre:br-ex" default: "datacentre:br-ex"
NeutronControlPlaneID: NeutronControlPlaneID:
default: 'ctlplane' default: 'ctlplane'
@@ -128,15 +128,15 @@ parameters:
Enable/disable the L2 population feature in the Neutron agents. Enable/disable the L2 population feature in the Neutron agents.
default: "False" default: "False"
NeutronFlatNetworks: NeutronFlatNetworks:
type: string type: comma_delimited_list
default: 'datacentre' default: 'datacentre'
description: > description: >
If set, flat networks to configure in neutron plugins. Defaults to If set, flat networks to configure in neutron plugins. Defaults to
'datacentre' to permit external network creation. 'datacentre' to permit external network creation.
NeutronNetworkType: NeutronNetworkType:
default: 'vxlan' default: 'vxlan'
description: The tenant network type for Neutron, either gre or vxlan. description: The tenant network type for Neutron.
type: string type: comma_delimited_list
NeutronPassword: NeutronPassword:
default: unset default: unset
description: The password for the neutron service account, used by neutron agents. description: The password for the neutron service account, used by neutron agents.
@@ -176,9 +176,8 @@ parameters:
NeutronTunnelTypes: NeutronTunnelTypes:
default: 'vxlan' default: 'vxlan'
description: | description: |
The tunnel types for the Neutron tenant network. To specify multiple The tunnel types for the Neutron tenant network.
values, use a comma separated string, like so: 'gre,vxlan' type: comma_delimited_list
type: string
NeutronTunnelIdRanges: NeutronTunnelIdRanges:
description: | description: |
Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges
@@ -211,9 +210,8 @@ parameters:
NeutronMechanismDrivers: NeutronMechanismDrivers:
default: 'openvswitch' default: 'openvswitch'
description: | description: |
The mechanism drivers for the Neutron tenant network. To specify multiple The mechanism drivers for the Neutron tenant network.
values, use a comma separated string, like so: 'openvswitch,l2_population' type: comma_delimited_list
type: string
NeutronAllowL3AgentFailover: NeutronAllowL3AgentFailover:
default: 'False' default: 'False'
description: Allow automatic l3-agent failover description: Allow automatic l3-agent failover

View File

@@ -1,4 +1,4 @@
heat_template_version: 2015-04-30 heat_template_version: 2015-10-15
description: > description: >
OpenStack hypervisor node configured via Puppet. OpenStack hypervisor node configured via Puppet.
@@ -80,7 +80,7 @@ parameters:
to create provider networks (and we use this for the default floating to create provider networks (and we use this for the default floating
network) - if changing this either use different post-install network network) - if changing this either use different post-install network
scripts or be sure to keep 'datacentre' as a mapping network name. scripts or be sure to keep 'datacentre' as a mapping network name.
type: string type: comma_delimited_list
default: "datacentre:br-ex" default: "datacentre:br-ex"
NeutronEnableTunnelling: NeutronEnableTunnelling:
type: string type: string
@@ -91,7 +91,7 @@ parameters:
Enable/disable the L2 population feature in the Neutron agents. Enable/disable the L2 population feature in the Neutron agents.
default: "False" default: "False"
NeutronFlatNetworks: NeutronFlatNetworks:
type: string type: comma_delimited_list
default: 'datacentre' default: 'datacentre'
description: > description: >
If set, flat networks to configure in neutron plugins. If set, flat networks to configure in neutron plugins.
@@ -99,8 +99,8 @@ parameters:
type: string type: string
default: '' # Has to be here because of the ignored empty value bug default: '' # Has to be here because of the ignored empty value bug
NeutronNetworkType: NeutronNetworkType:
type: string type: comma_delimited_list
description: The tenant network type for Neutron, either gre or vxlan. description: The tenant network type for Neutron.
default: 'vxlan' default: 'vxlan'
NeutronNetworkVLANRanges: NeutronNetworkVLANRanges:
default: 'datacentre' default: 'datacentre'
@@ -123,10 +123,9 @@ parameters:
description: A port to add to the NeutronPhysicalBridge. description: A port to add to the NeutronPhysicalBridge.
type: string type: string
NeutronTunnelTypes: NeutronTunnelTypes:
type: string type: comma_delimited_list
description: | description: |
The tunnel types for the Neutron tenant network. To specify multiple The tunnel types for the Neutron tenant network.
values, use a comma separated string, like so: 'gre,vxlan'
default: 'vxlan' default: 'vxlan'
NeutronTunnelIdRanges: NeutronTunnelIdRanges:
description: | description: |
@@ -171,9 +170,8 @@ parameters:
NeutronMechanismDrivers: NeutronMechanismDrivers:
default: 'openvswitch' default: 'openvswitch'
description: | description: |
The mechanism drivers for the Neutron tenant network. To specify multiple The mechanism drivers for the Neutron tenant network.
values, use a comma separated string, like so: 'openvswitch,l2_population' type: comma_delimited_list
type: string
# Not relevant for Computes, should be removed # Not relevant for Computes, should be removed
NeutronAllowL3AgentFailover: NeutronAllowL3AgentFailover:
default: 'True' default: 'True'
@@ -452,16 +450,16 @@ resources:
neutron::rabbit_user: {get_input: rabbit_username} neutron::rabbit_user: {get_input: rabbit_username}
neutron::rabbit_use_ssl: {get_input: rabbit_client_use_ssl} neutron::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
neutron::rabbit_port: {get_input: rabbit_client_port} neutron::rabbit_port: {get_input: rabbit_client_port}
neutron_flat_networks: {get_input: neutron_flat_networks} neutron::plugins::ml2::flat_networks: {get_input: neutron_flat_networks}
neutron_host: {get_input: neutron_host} neutron_host: {get_input: neutron_host}
neutron::agents::ml2::ovs::local_ip: {get_input: neutron_local_ip} neutron::agents::ml2::ovs::local_ip: {get_input: neutron_local_ip}
neutron_tenant_network_type: {get_input: neutron_tenant_network_type} neutron::plugins::ml2::tenant_network_types: {get_input: neutron_tenant_network_types}
neutron_tunnel_types: {get_input: neutron_tunnel_types} neutron::agents::ml2::ovs:tunnel_types: {get_input: neutron_tunnel_types}
neutron::plugins::ml2::network_vlan_ranges: {get_input: neutron_network_vlan_ranges} neutron::plugins::ml2::network_vlan_ranges: {get_input: neutron_network_vlan_ranges}
neutron::plugins::ml2::tunnel_id_ranges: {get_input: neutron_tunnel_id_ranges} neutron::plugins::ml2::tunnel_id_ranges: {get_input: neutron_tunnel_id_ranges}
neutron::plugins::ml2::vni_ranges: {get_input: neutron_vni_ranges} neutron::plugins::ml2::vni_ranges: {get_input: neutron_vni_ranges}
neutron_bridge_mappings: {get_input: neutron_bridge_mappings} neutron::agents::ml2::ovs::bridge_mappings: {get_input: neutron_bridge_mappings}
neutron::agents::ml2::ovs::enable_tunneling: {get_input: neutron_enable_tunneling} neutron::agents::ml2::ovs::enable_tunneling: {get_input: neutron_enable_tunneling}
neutron::agents::ml2::ovs::l2_population: {get_input: neutron_enable_l2pop} neutron::agents::ml2::ovs::l2_population: {get_input: neutron_enable_l2pop}
neutron_physical_bridge: {get_input: neutron_physical_bridge} neutron_physical_bridge: {get_input: neutron_physical_bridge}
@@ -475,7 +473,7 @@ resources:
neutron::core_plugin: {get_input: neutron_core_plugin} neutron::core_plugin: {get_input: neutron_core_plugin}
neutron::service_plugins: {get_input: neutron_service_plugins} neutron::service_plugins: {get_input: neutron_service_plugins}
neutron::plugins::ml2::type_drivers: {get_input: neutron_type_drivers} neutron::plugins::ml2::type_drivers: {get_input: neutron_type_drivers}
neutron_mechanism_drivers: {get_input: neutron_mechanism_drivers} neutron::plugins::ml2::mechanism_drivers: {get_input: neutron_mechanism_drivers}
neutron_public_interface_raw_device: {get_input: neutron_public_interface_raw_device} neutron_public_interface_raw_device: {get_input: neutron_public_interface_raw_device}
keystone_public_api_virtual_ip: {get_input: keystone_vip} keystone_public_api_virtual_ip: {get_input: keystone_vip}
admin_password: {get_input: admin_password} admin_password: {get_input: admin_password}
@@ -510,36 +508,43 @@ resources:
snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName} snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword} snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]} glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
neutron_flat_networks: {get_param: NeutronFlatNetworks} neutron_flat_networks:
str_replace:
template: NETWORKS
params:
NETWORKS: {get_param: NeutronFlatNetworks}
neutron_host: {get_param: NeutronHost} neutron_host: {get_param: NeutronHost}
neutron_local_ip: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, NeutronTenantNetwork]}]} neutron_local_ip: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, NeutronTenantNetwork]}]}
neutron_tenant_network_type: {get_param: NeutronNetworkType}
neutron_tunnel_types: {get_param: NeutronTunnelTypes}
neutron_tunnel_id_ranges: neutron_tunnel_id_ranges:
str_replace: str_replace:
template: "['RANGES']" template: RANGES
params: params:
RANGES: RANGES: {get_param: NeutronTunnelIdRanges}
list_join:
- "','"
- {get_param: NeutronTunnelIdRanges}
neutron_vni_ranges: neutron_vni_ranges:
str_replace: str_replace:
template: "['RANGES']" template: RANGES
params: params:
RANGES: RANGES: {get_param: NeutronVniRanges}
list_join: neutron_tenant_network_types:
- "','" str_replace:
- {get_param: NeutronVniRanges} template: TYPES
params:
TYPES: {get_param: NeutronNetworkType}
neutron_tunnel_types:
str_replace:
template: TYPES
params:
TYPES: {get_param: NeutronTunnelTypes}
neutron_network_vlan_ranges: neutron_network_vlan_ranges:
str_replace: str_replace:
template: "['RANGES']" template: RANGES
params: params:
RANGES: RANGES: {get_param: NeutronNetworkVLANRanges}
list_join: neutron_bridge_mappings:
- "','" str_replace:
- {get_param: NeutronNetworkVLANRanges} template: MAPPINGS
neutron_bridge_mappings: {get_param: NeutronBridgeMappings} params:
MAPPINGS: {get_param: NeutronBridgeMappings}
neutron_enable_tunneling: {get_param: NeutronEnableTunnelling} neutron_enable_tunneling: {get_param: NeutronEnableTunnelling}
neutron_enable_l2pop: {get_param: NeutronEnableL2Pop} neutron_enable_l2pop: {get_param: NeutronEnableL2Pop}
neutron_physical_bridge: {get_param: NeutronPhysicalBridge} neutron_physical_bridge: {get_param: NeutronPhysicalBridge}
@@ -551,21 +556,19 @@ resources:
neutron_core_plugin: {get_param: NeutronCorePlugin} neutron_core_plugin: {get_param: NeutronCorePlugin}
neutron_service_plugins: neutron_service_plugins:
str_replace: str_replace:
template: "['PLUGINS']" template: PLUGINS
params: params:
PLUGINS: PLUGINS: {get_param: NeutronServicePlugins}
list_join:
- "','"
- {get_param: NeutronServicePlugins}
neutron_type_drivers: neutron_type_drivers:
str_replace: str_replace:
template: "['DRIVERS']" template: DRIVERS
params: params:
DRIVERS: DRIVERS: {get_param: NeutronTypeDrivers}
list_join: neutron_mechanism_drivers:
- "','" str_replace:
- {get_param: NeutronTypeDrivers} template: MECHANISMS
neutron_mechanism_drivers: {get_param: NeutronMechanismDrivers} params:
MECHANISMS: {get_param: NeutronMechanismDrivers}
neutron_public_interface_raw_device: {get_param: NeutronPublicInterfaceRawDevice} neutron_public_interface_raw_device: {get_param: NeutronPublicInterfaceRawDevice}
neutron_internal_url: {get_param: [EndpointMap, NeutronInternal, uri]} neutron_internal_url: {get_param: [EndpointMap, NeutronInternal, uri]}
neutron_admin_auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri]} neutron_admin_auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri]}

View File

@@ -1,4 +1,4 @@
heat_template_version: 2015-04-30 heat_template_version: 2015-10-15
description: > description: >
OpenStack controller node configured by Puppet. OpenStack controller node configured by Puppet.
@@ -328,7 +328,7 @@ parameters:
to create provider networks (and we use this for the default floating to create provider networks (and we use this for the default floating
network) - if changing this either use different post-install network network) - if changing this either use different post-install network
scripts or be sure to keep 'datacentre' as a mapping network name. scripts or be sure to keep 'datacentre' as a mapping network name.
type: string type: comma_delimited_list
default: "datacentre:br-ex" default: "datacentre:br-ex"
NeutronDnsmasqOptions: NeutronDnsmasqOptions:
default: 'dhcp-option-force=26,1400' default: 'dhcp-option-force=26,1400'
@@ -391,9 +391,8 @@ parameters:
NeutronMechanismDrivers: NeutronMechanismDrivers:
default: 'openvswitch' default: 'openvswitch'
description: | description: |
The mechanism drivers for the Neutron tenant network. To specify multiple The mechanism drivers for the Neutron tenant network.
values, use a comma separated string, like so: 'openvswitch,l2_population' type: comma_delimited_list
type: string
NeutronAllowL3AgentFailover: NeutronAllowL3AgentFailover:
default: 'True' default: 'True'
description: Allow automatic l3-agent failover description: Allow automatic l3-agent failover
@@ -411,7 +410,7 @@ parameters:
Enable/disable the L2 population feature in the Neutron agents. Enable/disable the L2 population feature in the Neutron agents.
default: "False" default: "False"
NeutronFlatNetworks: NeutronFlatNetworks:
type: string type: comma_delimited_list
default: 'datacentre' default: 'datacentre'
description: If set, flat networks to configure in neutron plugins. description: If set, flat networks to configure in neutron plugins.
NeutronL3HA: NeutronL3HA:
@@ -420,8 +419,8 @@ parameters:
type: string type: string
NeutronNetworkType: NeutronNetworkType:
default: 'vxlan' default: 'vxlan'
description: The tenant network type for Neutron, either gre or vxlan. description: The tenant network type for Neutron.
type: string type: comma_delimited_list
NeutronNetworkVLANRanges: NeutronNetworkVLANRanges:
default: 'datacentre' default: 'datacentre'
description: > description: >
@@ -463,9 +462,8 @@ parameters:
NeutronTunnelTypes: NeutronTunnelTypes:
default: 'vxlan' default: 'vxlan'
description: | description: |
The tunnel types for the Neutron tenant network. To specify multiple The tunnel types for the Neutron tenant network.
values, use a comma separated string, like so: 'gre,vxlan' type: comma_delimited_list
type: string
NeutronTunnelIdRanges: NeutronTunnelIdRanges:
description: | description: |
Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges
@@ -809,12 +807,9 @@ resources:
cinder_nfs_mount_options: {get_param: CinderNfsMountOptions} cinder_nfs_mount_options: {get_param: CinderNfsMountOptions}
cinder_nfs_servers: cinder_nfs_servers:
str_replace: str_replace:
template: "['SERVERS']" template: SERVERS
params: params:
SERVERS: SERVERS: {get_param: CinderNfsServers}
list_join:
- "','"
- {get_param: CinderNfsServers}
cinder_lvm_loop_device_size: {get_param: CinderLVMLoopDeviceSize} cinder_lvm_loop_device_size: {get_param: CinderLVMLoopDeviceSize}
cinder_password: {get_param: CinderPassword} cinder_password: {get_param: CinderPassword}
cinder_enable_iscsi_backend: {get_param: CinderEnableIscsiBackend} cinder_enable_iscsi_backend: {get_param: CinderEnableIscsiBackend}
@@ -890,67 +885,72 @@ resources:
template: tripleo-CLUSTER template: tripleo-CLUSTER
params: params:
CLUSTER: {get_param: MysqlClusterUniquePart} CLUSTER: {get_param: MysqlClusterUniquePart}
neutron_flat_networks: {get_param: NeutronFlatNetworks} neutron_flat_networks:
str_replace:
template: NETWORKS
params:
NETWORKS: {get_param: NeutronFlatNetworks}
neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret} neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
neutron_agent_mode: {get_param: NeutronAgentMode} neutron_agent_mode: {get_param: NeutronAgentMode}
neutron_router_distributed: {get_param: NeutronDVR} neutron_router_distributed: {get_param: NeutronDVR}
neutron_core_plugin: {get_param: NeutronCorePlugin} neutron_core_plugin: {get_param: NeutronCorePlugin}
neutron_service_plugins: neutron_service_plugins:
str_replace: str_replace:
template: "['PLUGINS']" template: PLUGINS
params: params:
PLUGINS: PLUGINS: {get_param: NeutronServicePlugins}
list_join:
- "','"
- {get_param: NeutronServicePlugins}
neutron_type_drivers: neutron_type_drivers:
str_replace: str_replace:
template: "['DRIVERS']" template: DRIVERS
params: params:
DRIVERS: DRIVERS: {get_param: NeutronTypeDrivers}
list_join:
- "','"
- {get_param: NeutronTypeDrivers}
neutron_enable_dhcp_agent: {get_param: NeutronEnableDHCPAgent} neutron_enable_dhcp_agent: {get_param: NeutronEnableDHCPAgent}
neutron_enable_l3_agent: {get_param: NeutronEnableL3Agent} neutron_enable_l3_agent: {get_param: NeutronEnableL3Agent}
neutron_enable_metadata_agent: {get_param: NeutronEnableMetadataAgent} neutron_enable_metadata_agent: {get_param: NeutronEnableMetadataAgent}
neutron_enable_ovs_agent: {get_param: NeutronEnableOVSAgent} neutron_enable_ovs_agent: {get_param: NeutronEnableOVSAgent}
neutron_mechanism_drivers: {get_param: NeutronMechanismDrivers} neutron_mechanism_drivers:
str_replace:
template: MECHANISMS
params:
MECHANISMS: {get_param: NeutronMechanismDrivers}
neutron_allow_l3agent_failover: {get_param: NeutronAllowL3AgentFailover} neutron_allow_l3agent_failover: {get_param: NeutronAllowL3AgentFailover}
neutron_l3_ha: {get_param: NeutronL3HA} neutron_l3_ha: {get_param: NeutronL3HA}
neutron_dhcp_agents_per_network: {get_param: NeutronDhcpAgentsPerNetwork} neutron_dhcp_agents_per_network: {get_param: NeutronDhcpAgentsPerNetwork}
neutron_network_vlan_ranges: neutron_network_vlan_ranges:
str_replace: str_replace:
template: "['RANGES']" template: RANGES
params: params:
RANGES: RANGES: {get_param: NeutronNetworkVLANRanges}
list_join: neutron_bridge_mappings:
- "','" str_replace:
- {get_param: NeutronNetworkVLANRanges} template: MAPPINGS
neutron_bridge_mappings: {get_param: NeutronBridgeMappings} params:
MAPPINGS: {get_param: NeutronBridgeMappings}
neutron_external_network_bridge: {get_param: NeutronExternalNetworkBridge} neutron_external_network_bridge: {get_param: NeutronExternalNetworkBridge}
neutron_public_interface: {get_param: NeutronPublicInterface} neutron_public_interface: {get_param: NeutronPublicInterface}
neutron_public_interface_raw_device: {get_param: NeutronPublicInterfaceRawDevice} neutron_public_interface_raw_device: {get_param: NeutronPublicInterfaceRawDevice}
neutron_public_interface_default_route: {get_param: NeutronPublicInterfaceDefaultRoute} neutron_public_interface_default_route: {get_param: NeutronPublicInterfaceDefaultRoute}
neutron_public_interface_tag: {get_param: NeutronPublicInterfaceTag} neutron_public_interface_tag: {get_param: NeutronPublicInterfaceTag}
neutron_tenant_network_type: {get_param: NeutronNetworkType}
neutron_tunnel_types: {get_param: NeutronTunnelTypes}
neutron_tunnel_id_ranges: neutron_tunnel_id_ranges:
str_replace: str_replace:
template: "['RANGES']" template: RANGES
params: params:
RANGES: RANGES: {get_param: NeutronTunnelIdRanges}
list_join:
- "','"
- {get_param: NeutronTunnelIdRanges}
neutron_vni_ranges: neutron_vni_ranges:
str_replace: str_replace:
template: "['RANGES']" template: RANGES
params: params:
RANGES: RANGES: {get_param: NeutronVniRanges}
list_join: neutron_tenant_network_types:
- "','" str_replace:
- {get_param: NeutronVniRanges} template: TYPES
params:
TYPES: {get_param: NeutronNetworkType}
neutron_tunnel_types:
str_replace:
template: TYPES
params:
TYPES: {get_param: NeutronTunnelTypes}
neutron_password: {get_param: NeutronPassword} neutron_password: {get_param: NeutronPassword}
neutron_dnsmasq_options: {get_param: NeutronDnsmasqOptions} neutron_dnsmasq_options: {get_param: NeutronDnsmasqOptions}
neutron_dsn: neutron_dsn:
@@ -1249,7 +1249,7 @@ resources:
neutron::agents::ml2::ovs::l2_population: {get_input: neutron_enable_l2pop} neutron::agents::ml2::ovs::l2_population: {get_input: neutron_enable_l2pop}
neutron::agents::dhcp::enable_isolated_metadata: {get_input: neutron_enable_isolated_metadata} neutron::agents::dhcp::enable_isolated_metadata: {get_input: neutron_enable_isolated_metadata}
neutron::agents::ml2::ovs::local_ip: {get_input: neutron_local_ip} neutron::agents::ml2::ovs::local_ip: {get_input: neutron_local_ip}
neutron_flat_networks: {get_input: neutron_flat_networks} neutron::plugins::ml2::flat_networks: {get_input: neutron_flat_networks}
neutron::agents::metadata::shared_secret: {get_input: neutron_metadata_proxy_shared_secret} neutron::agents::metadata::shared_secret: {get_input: neutron_metadata_proxy_shared_secret}
neutron::agents::metadata::metadata_ip: {get_input: neutron_api_network} neutron::agents::metadata::metadata_ip: {get_input: neutron_api_network}
neutron_agent_mode: {get_input: neutron_agent_mode} neutron_agent_mode: {get_input: neutron_agent_mode}
@@ -1261,20 +1261,20 @@ resources:
neutron::enable_metadata_agent: {get_input: neutron_enable_metadata_agent} neutron::enable_metadata_agent: {get_input: neutron_enable_metadata_agent}
neutron::enable_ovs_agent: {get_input: neutron_enable_ovs_agent} neutron::enable_ovs_agent: {get_input: neutron_enable_ovs_agent}
neutron::plugins::ml2::type_drivers: {get_input: neutron_type_drivers} neutron::plugins::ml2::type_drivers: {get_input: neutron_type_drivers}
neutron_mechanism_drivers: {get_input: neutron_mechanism_drivers} neutron::plugins::ml2::mechanism_drivers: {get_input: neutron_mechanism_drivers}
neutron::server::allow_automatic_l3agent_failover: {get_input: neutron_allow_l3agent_failover} neutron::server::allow_automatic_l3agent_failover: {get_input: neutron_allow_l3agent_failover}
neutron::server::l3_ha: {get_input: neutron_l3_ha} neutron::server::l3_ha: {get_input: neutron_l3_ha}
neutron::dhcp_agents_per_network: {get_input: neutron_dhcp_agents_per_network} neutron::dhcp_agents_per_network: {get_input: neutron_dhcp_agents_per_network}
neutron::plugins::ml2::network_vlan_ranges: {get_input: neutron_network_vlan_ranges} neutron::plugins::ml2::network_vlan_ranges: {get_input: neutron_network_vlan_ranges}
neutron::plugins::ml2::tunnel_id_ranges: {get_input: neutron_tunnel_id_ranges} neutron::plugins::ml2::tunnel_id_ranges: {get_input: neutron_tunnel_id_ranges}
neutron::plugins::ml2::vni_ranges: {get_input: neutron_vni_ranges} neutron::plugins::ml2::vni_ranges: {get_input: neutron_vni_ranges}
neutron_bridge_mappings: {get_input: neutron_bridge_mappings} neutron::agents::ml2::ovs:bridge_mappings: {get_input: neutron_bridge_mappings}
neutron_public_interface: {get_input: neutron_public_interface} neutron_public_interface: {get_input: neutron_public_interface}
neutron_public_interface_raw_device: {get_input: neutron_public_interface_raw_device} neutron_public_interface_raw_device: {get_input: neutron_public_interface_raw_device}
neutron_public_interface_default_route: {get_input: neutron_public_interface_default_route} neutron_public_interface_default_route: {get_input: neutron_public_interface_default_route}
neutron_public_interface_tag: {get_input: neutron_public_interface_tag} neutron_public_interface_tag: {get_input: neutron_public_interface_tag}
neutron_tenant_network_type: {get_input: neutron_tenant_network_type} neutron::plugins::ml2::tenant_network_types: {get_input: neutron_tenant_network_types}
neutron_tunnel_types: {get_input: neutron_tunnel_types} neutron::agents::ml2::ovs::tunnel_types: {get_input: neutron_tunnel_types}
neutron::server::auth_password: {get_input: neutron_password} neutron::server::auth_password: {get_input: neutron_password}
neutron::agents::metadata::auth_password: {get_input: neutron_password} neutron::agents::metadata::auth_password: {get_input: neutron_password}
neutron_dnsmasq_options: {get_input: neutron_dnsmasq_options} neutron_dnsmasq_options: {get_input: neutron_dnsmasq_options}

View File

@@ -85,17 +85,10 @@ if hiera('neutron::core_plugin') == 'neutron.plugins.nuage.plugin.NuagePlugin' {
nova_auth_ip => hiera('keystone_public_api_virtual_ip'), nova_auth_ip => hiera('keystone_public_api_virtual_ip'),
} }
} else { } else {
class { '::neutron::plugins::ml2': include ::neutron::plugins::ml2
flat_networks => split(hiera('neutron_flat_networks'), ','), include ::neutron::agents::ml2::ovs
tenant_network_types => [hiera('neutron_tenant_network_type')],
}
class { '::neutron::agents::ml2::ovs': if 'cisco_n1kv' in hiera('neutron::plugins::ml2::mechanism_drivers') {
bridge_mappings => split(hiera('neutron_bridge_mappings'), ','),
tunnel_types => split(hiera('neutron_tunnel_types'), ','),
}
if 'cisco_n1kv' in hiera('neutron_mechanism_drivers') {
class { '::neutron::agents::n1kv_vem': class { '::neutron::agents::n1kv_vem':
n1kv_source => hiera('n1kv_vem_source', undef), n1kv_source => hiera('n1kv_vem_source', undef),
n1kv_version => hiera('n1kv_vem_version', undef), n1kv_version => hiera('n1kv_vem_version', undef),

View File

@@ -252,16 +252,10 @@ if hiera('step') >= 3 {
require => Package['neutron'], require => Package['neutron'],
} }
class { '::neutron::plugins::ml2': include ::neutron::plugins::ml2
flat_networks => split(hiera('neutron_flat_networks'), ','), include ::neutron::agents::ml2::ovs
tenant_network_types => [hiera('neutron_tenant_network_type')],
mechanism_drivers => [hiera('neutron_mechanism_drivers')], if 'cisco_n1kv' in hiera('neutron::plugins::ml2::mechanism_drivers') {
}
class { '::neutron::agents::ml2::ovs':
bridge_mappings => split(hiera('neutron_bridge_mappings'), ','),
tunnel_types => split(hiera('neutron_tunnel_types'), ','),
}
if 'cisco_n1kv' in hiera('neutron_mechanism_drivers') {
include ::neutron::plugins::ml2::cisco::nexus1000v include ::neutron::plugins::ml2::cisco::nexus1000v
class { '::neutron::agents::n1kv_vem': class { '::neutron::agents::n1kv_vem':
@@ -276,10 +270,10 @@ if hiera('step') >= 3 {
} }
} }
if 'cisco_ucsm' in hiera('neutron_mechanism_drivers') { if 'cisco_ucsm' in hiera('neutron::plugins::ml2::mechanism_drivers') {
include ::neutron::plugins::ml2::cisco::ucsm include ::neutron::plugins::ml2::cisco::ucsm
} }
if 'cisco_nexus' in hiera('neutron_mechanism_drivers') { if 'cisco_nexus' in hiera('neutron::plugins::ml2::mechanism_drivers') {
include ::neutron::plugins::ml2::cisco::nexus include ::neutron::plugins::ml2::cisco::nexus
include ::neutron::plugins::ml2::cisco::type_nexus_vxlan include ::neutron::plugins::ml2::cisco::type_nexus_vxlan
} }
@@ -467,7 +461,7 @@ if hiera('step') >= 3 {
include ::heat::engine include ::heat::engine
# Horizon # Horizon
if 'cisco_n1kv' in hiera('neutron_mechanism_drivers') { if 'cisco_n1kv' in hiera('neutron::plugins::ml2::mechanism_drivers') {
$_profile_support = 'cisco' $_profile_support = 'cisco'
} else { } else {
$_profile_support = 'None' $_profile_support = 'None'

View File

@@ -628,27 +628,20 @@ if hiera('step') >= 3 {
enabled => false, enabled => false,
} }
} }
if hiera('neutron::core_plugin') == 'ml2' { include ::neutron::plugins::ml2
class { '::neutron::plugins::ml2': class { '::neutron::agents::ml2::ovs':
flat_networks => split(hiera('neutron_flat_networks'), ','), manage_service => false,
tenant_network_types => [hiera('neutron_tenant_network_type')], enabled => false,
mechanism_drivers => [hiera('neutron_mechanism_drivers')],
}
class { '::neutron::agents::ml2::ovs':
manage_service => false,
enabled => false,
bridge_mappings => split(hiera('neutron_bridge_mappings'), ','),
tunnel_types => split(hiera('neutron_tunnel_types'), ','),
}
} }
if 'cisco_ucsm' in hiera('neutron_mechanism_drivers') {
if 'cisco_ucsm' in hiera('neutron::plugins::ml2::mechanism_drivers') {
include ::neutron::plugins::ml2::cisco::ucsm include ::neutron::plugins::ml2::cisco::ucsm
} }
if 'cisco_nexus' in hiera('neutron_mechanism_drivers') { if 'cisco_nexus' in hiera('neutron::plugins::ml2::mechanism_drivers') {
include ::neutron::plugins::ml2::cisco::nexus include ::neutron::plugins::ml2::cisco::nexus
include ::neutron::plugins::ml2::cisco::type_nexus_vxlan include ::neutron::plugins::ml2::cisco::type_nexus_vxlan
} }
if 'cisco_n1kv' in hiera('neutron_mechanism_drivers') { if 'cisco_n1kv' in hiera('neutron::plugins::ml2::mechanism_drivers') {
include ::neutron::plugins::ml2::cisco::nexus1000v include ::neutron::plugins::ml2::cisco::nexus1000v
class { '::neutron::agents::n1kv_vem': class { '::neutron::agents::n1kv_vem':
@@ -896,7 +889,7 @@ if hiera('step') >= 3 {
# service_manage => false, # <-- not supported with horizon&apache mod_wsgi? # service_manage => false, # <-- not supported with horizon&apache mod_wsgi?
} }
include ::apache::mod::status include ::apache::mod::status
if 'cisco_n1kv' in hiera('neutron_mechanism_drivers') { if 'cisco_n1kv' in hiera('neutron::plugins::ml2::mechanism_drivers') {
$_profile_support = 'cisco' $_profile_support = 'cisco'
} else { } else {
$_profile_support = 'None' $_profile_support = 'None'
@@ -1503,7 +1496,7 @@ if hiera('step') >= 4 {
} }
#VSM #VSM
if 'cisco_n1kv' in hiera('neutron_mechanism_drivers') { if 'cisco_n1kv' in hiera('neutron::plugins::ml2::mechanism_drivers') {
pacemaker::resource::ocf { 'vsm-p' : pacemaker::resource::ocf { 'vsm-p' :
ocf_agent_name => 'heartbeat:VirtualDomain', ocf_agent_name => 'heartbeat:VirtualDomain',
resource_params => 'force_stop=true config=/var/spool/cisco/vsm/vsm_primary_deploy.xml', resource_params => 'force_stop=true config=/var/spool/cisco/vsm/vsm_primary_deploy.xml',