added level of indirection causes incorrect hiera config
[apex-tripleo-heat-templates.git] / puppet / extraconfig / pre_deploy / controller / neutron-ml2-bigswitch.yaml
1 heat_template_version: pike
2
3 description: Configure hieradata for Neutron Big Switch configuration
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: true
13   NeutronBigswitchLLDPEnabled:
14     description: The state of the neutron-bsn-lldp service.
15     type: boolean
16     default: false
17   NeutronBigswitchRestproxyServers:
18     description: 'Big Switch controllers ("IP:port,IP:port")'
19     type: string
20   NeutronBigswitchRestproxyServerAuth:
21     description: 'Big Switch controller credentials ("username:password")'
22     type: string
23   NeutronBigswitchRestproxyAutoSyncOnFailure:
24     description: Resynchronize with the new master server on Big Switch failover.
25     type: boolean
26     default: true
27   NeutronBigswitchRestproxyConsistencyInterval:
28     description: Keepalive message interval (from Neutron to Big Switch controller).
29     type: number
30     default: 60
31   NeutronBigswitchRestproxyNeutronId:
32     description: Unique identifier of the Neutron instance for the Big Switch controller.
33     type: string
34     default: 'neutron'
35   NeutronBigswitchRestproxyServerSsl:
36     description: Whether Neutron should use SSL to talk to the Big Switch controllers.
37     type: boolean
38     default: true
39   NeutronBigswitchRestproxySslCertDirectory:
40     description: Directory where Big Switch controller certificate will be stored.
41     type: string
42     default: '/var/lib/neutron'
43
44
45 resources:
46   NeutronBigswitchConfig:
47     type: OS::Heat::StructuredConfig
48     properties:
49       group: hiera
50       config:
51         datafiles:
52           neutron_bigswitch_data:
53             neutron::agents::bigswitch::agent_enabled: {get_input: neutron_enable_bigswitch_agent}
54             neutron::agents::bigswitch::lldp_enabled: {get_input: neutron_enable_bigswitch_lldp}
55             neutron::plugins::ml2::bigswitch::restproxy::servers: {get_input: restproxy_servers}
56             neutron::plugins::ml2::bigswitch::restproxy::server_auth: {get_input: restproxy_server_auth}
57             neutron::plugins::ml2::bigswitch::restproxy::auto_sync_on_failure: {get_input: restproxy_auto_sync_on_failure}
58             neutron::plugins::ml2::bigswitch::restproxy::consistency_interval: {get_input: restproxy_consistency_interval}
59             neutron::plugins::ml2::bigswitch::restproxy::neutron_id: {get_input: restproxy_neutron_id}
60             neutron::plugins::ml2::bigswitch::restproxy::server_ssl: {get_input: restproxy_server_ssl}
61             neutron::plugins::ml2::bigswitch::restproxy::ssl_cert_directory: {get_input: restproxy_ssl_cert_directory}
62
63   NeutronBigswitchDeployment:
64     type: OS::Heat::StructuredDeployment
65     properties:
66       name: NeutronBigswitchDeployment
67       config: {get_resource: NeutronBigswitchConfig}
68       server: {get_param: server}
69       input_values:
70         neutron_enable_bigswitch_agent: {get_param: NeutronBigswitchAgentEnabled}
71         neutron_enable_bigswitch_lldp: {get_param: NeutronBigswitchLLDPEnabled}
72         restproxy_servers: {get_param: NeutronBigswitchRestproxyServers}
73         restproxy_server_auth: {get_param: NeutronBigswitchRestproxyServerAuth }
74         restproxy_auto_sync_on_failure: {get_param: NeutronBigswitchRestproxyAutoSyncOnFailure}
75         restproxy_consistency_interval: {get_param: NeutronBigswitchRestproxyConsistencyInterval}
76         restproxy_neutron_id: {get_param: NeutronBigswitchRestproxyNeutronId}
77         restproxy_server_ssl: {get_param: NeutronBigswitchRestproxyServerSsl}
78         restproxy_ssl_cert_directory: {get_param: NeutronBigswitchRestproxySslCertDirectory}
79
80 outputs:
81   deploy_stdout:
82     description: Deployment reference, used to trigger puppet apply on changes
83     value: {get_attr: [NeutronBigswitchDeployment, deploy_stdout]}