Merge "Use the new hiera hook in all remaining templates"
[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: hiera
24       config:
25         datafiles:
26           neutron_bigswitch_data:
27             mapped_data:
28               neutron::agents::bigswitch::agent_enabled: {get_input: neutron_enable_bigswitch_agent}
29               neutron::agents::bigswitch::lldp_enabled: {get_input: neutron_enable_bigswitch_lldp}
30
31   NeutronBigswitchDeployment:
32     type: OS::Heat::StructuredDeployment
33     properties:
34       name: NeutronBigswitchDeployment
35       config: {get_resource: NeutronBigswitchConfig}
36       server: {get_param: server}
37       input_values:
38         neutron_enable_bigswitch_agent: {get_param: NeutronBigswitchAgentEnabled}
39         neutron_enable_bigswitch_lldp: {get_param: NeutronBigswitchLLDPEnabled}
40
41 outputs:
42   deploy_stdout:
43     description: Deployment reference, used to trigger puppet apply on changes
44     value: {get_attr: [NeutronBigswitchDeployment, deploy_stdout]}