tripleo-heat-templates/puppet/extraconfig/pre_deploy/controller/neutron-ml2-bigswitch.yaml
Carlos Camacho 44ef2a3ec1 Change template names to rocky
The new master branch should point now to rocky.

So, HOT templates should specify that they might contain features
for rocky release [1]

Also, this submission updates the yaml validation to use only latest
heat_version alias. There are cases in which we will need to set
the version for specific templates i.e. mixed versions, so there
is added a variable to assign specific templates to specific heat_version
aliases, avoiding the introductions of error by bulk replacing the
the old version in new releases.

[1]: https://docs.openstack.org/heat/latest/template_guide/hot_spec.html#rocky
Change-Id: Ib17526d9cc453516d99d4659ee5fa51a5aa7fb4b
2018-05-09 08:28:42 +02:00

84 lines
3.8 KiB
YAML

heat_template_version: rocky
description: Configure hieradata for Neutron Big Switch configuration
parameters:
server:
description: ID of the controller node to apply this config to
type: string
NeutronBigswitchAgentEnabled:
description: The state of the neutron-bsn-agent service.
type: boolean
default: true
NeutronBigswitchLLDPEnabled:
description: The state of the neutron-bsn-lldp service.
type: boolean
default: false
NeutronBigswitchRestproxyServers:
description: 'Big Switch controllers ("IP:port,IP:port")'
type: string
NeutronBigswitchRestproxyServerAuth:
description: 'Big Switch controller credentials ("username:password")'
type: string
NeutronBigswitchRestproxyAutoSyncOnFailure:
description: Resynchronize with the new master server on Big Switch failover.
type: boolean
default: true
NeutronBigswitchRestproxyConsistencyInterval:
description: Keepalive message interval (from Neutron to Big Switch controller).
type: number
default: 60
NeutronBigswitchRestproxyNeutronId:
description: Unique identifier of the Neutron instance for the Big Switch controller.
type: string
default: 'neutron'
NeutronBigswitchRestproxyServerSsl:
description: Whether Neutron should use SSL to talk to the Big Switch controllers.
type: boolean
default: true
NeutronBigswitchRestproxySslCertDirectory:
description: Directory where Big Switch controller certificate will be stored.
type: string
default: '/var/lib/neutron'
resources:
NeutronBigswitchConfig:
type: OS::Heat::StructuredConfig
properties:
group: hiera
config:
datafiles:
neutron_bigswitch_data:
neutron::agents::bigswitch::agent_enabled: {get_input: neutron_enable_bigswitch_agent}
neutron::agents::bigswitch::lldp_enabled: {get_input: neutron_enable_bigswitch_lldp}
neutron::plugins::ml2::bigswitch::restproxy::servers: {get_input: restproxy_servers}
neutron::plugins::ml2::bigswitch::restproxy::server_auth: {get_input: restproxy_server_auth}
neutron::plugins::ml2::bigswitch::restproxy::auto_sync_on_failure: {get_input: restproxy_auto_sync_on_failure}
neutron::plugins::ml2::bigswitch::restproxy::consistency_interval: {get_input: restproxy_consistency_interval}
neutron::plugins::ml2::bigswitch::restproxy::neutron_id: {get_input: restproxy_neutron_id}
neutron::plugins::ml2::bigswitch::restproxy::server_ssl: {get_input: restproxy_server_ssl}
neutron::plugins::ml2::bigswitch::restproxy::ssl_cert_directory: {get_input: restproxy_ssl_cert_directory}
NeutronBigswitchDeployment:
type: OS::Heat::StructuredDeployment
properties:
name: NeutronBigswitchDeployment
config: {get_resource: NeutronBigswitchConfig}
server: {get_param: server}
input_values:
neutron_enable_bigswitch_agent: {get_param: NeutronBigswitchAgentEnabled}
neutron_enable_bigswitch_lldp: {get_param: NeutronBigswitchLLDPEnabled}
restproxy_servers: {get_param: NeutronBigswitchRestproxyServers}
restproxy_server_auth: {get_param: NeutronBigswitchRestproxyServerAuth }
restproxy_auto_sync_on_failure: {get_param: NeutronBigswitchRestproxyAutoSyncOnFailure}
restproxy_consistency_interval: {get_param: NeutronBigswitchRestproxyConsistencyInterval}
restproxy_neutron_id: {get_param: NeutronBigswitchRestproxyNeutronId}
restproxy_server_ssl: {get_param: NeutronBigswitchRestproxyServerSsl}
restproxy_ssl_cert_directory: {get_param: NeutronBigswitchRestproxySslCertDirectory}
outputs:
deploy_stdout:
description: Deployment reference, used to trigger puppet apply on changes
value: {get_attr: [NeutronBigswitchDeployment, deploy_stdout]}