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