Bump template version for all templates to "ocata"
[apex-tripleo-heat-templates.git] / puppet / extraconfig / pre_deploy / compute / neutron-ml2-bigswitch.yaml
1 heat_template_version: ocata
2
3 description: Configure hieradata for Big Switch agents on compute node
4
5 parameters:
6   server:
7     description: ID of the controller node to apply this config to
8     type: string
9   NeutronBigswitchAgentEnabled:
10     description: The state of the neutron-bsn-agent service.
11     type: boolean
12     default: false
13   NeutronBigswitchLLDPEnabled:
14     description: The state of the neutron-bsn-lldp service.
15     type: boolean
16     default: true
17
18
19 resources:
20   NeutronBigswitchConfig:
21     type: OS::Heat::StructuredConfig
22     properties:
23       group: os-apply-config
24       config:
25         hiera:
26           datafiles:
27             neutron_bigswitch_data:
28               mapped_data:
29                 neutron::agents::bigswitch::agent_enabled: {get_input: neutron_enable_bigswitch_agent}
30                 neutron::agents::bigswitch::lldp_enabled: {get_input: neutron_enable_bigswitch_lldp}
31
32   NeutronBigswitchDeployment:
33     type: OS::Heat::StructuredDeployment
34     properties:
35       name: NeutronBigswitchDeployment
36       config: {get_resource: NeutronBigswitchConfig}
37       server: {get_param: server}
38       input_values:
39         neutron_enable_bigswitch_agent: {get_param: NeutronBigswitchAgentEnabled}
40         neutron_enable_bigswitch_lldp: {get_param: NeutronBigswitchLLDPEnabled}
41
42 outputs:
43   deploy_stdout:
44     description: Deployment reference, used to trigger puppet apply on changes
45     value: {get_attr: [NeutronBigswitchDeployment, deploy_stdout]}