added level of indirection causes incorrect hiera config
[apex-tripleo-heat-templates.git] / puppet / extraconfig / pre_deploy / compute / neutron-ml2-bigswitch.yaml
1 heat_template_version: pike
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             neutron::agents::bigswitch::agent_enabled: {get_input: neutron_enable_bigswitch_agent}
28             neutron::agents::bigswitch::lldp_enabled: {get_input: neutron_enable_bigswitch_lldp}
29             # NOTE(aschultz): required for the puppet module but we don't
30             # actually want them defined on the compute nodes so we're
31             # relying on the puppet  module's handling of <SERVICE DEFAULT>
32             # to just not set these but still accept that they were defined.
33             # This will should be fixed in puppet-neutron and removed here,
34             # but for backportability, we need to define something.
35             neutron::plugins::ml2::bigswitch::restproxy::servers: '<SERVICE DEFAULT>'
36             neutron::plugins::ml2::bigswitch::restproxy::server_auth: '<SERVICE DEFAULT>'
37
38
39   NeutronBigswitchDeployment:
40     type: OS::Heat::StructuredDeployment
41     properties:
42       name: NeutronBigswitchDeployment
43       config: {get_resource: NeutronBigswitchConfig}
44       server: {get_param: server}
45       input_values:
46         neutron_enable_bigswitch_agent: {get_param: NeutronBigswitchAgentEnabled}
47         neutron_enable_bigswitch_lldp: {get_param: NeutronBigswitchLLDPEnabled}
48
49 outputs:
50   deploy_stdout:
51     description: Deployment reference, used to trigger puppet apply on changes
52     value: {get_attr: [NeutronBigswitchDeployment, deploy_stdout]}