Update the template_version alias for all the templates to pike.
[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             mapped_data:
54               neutron::agents::bigswitch::agent_enabled: {get_input: neutron_enable_bigswitch_agent}
55               neutron::agents::bigswitch::lldp_enabled: {get_input: neutron_enable_bigswitch_lldp}
56               neutron::plugins::ml2::bigswitch::restproxy::servers: {get_input: restproxy_servers}
57               neutron::plugins::ml2::bigswitch::restproxy::server_auth: {get_input: restproxy_server_auth}
58               neutron::plugins::ml2::bigswitch::restproxy::auto_sync_on_failure: {get_input: restproxy_auto_sync_on_failure}
59               neutron::plugins::ml2::bigswitch::restproxy::consistency_interval: {get_input: restproxy_consistency_interval}
60               neutron::plugins::ml2::bigswitch::restproxy::neutron_id: {get_input: restproxy_neutron_id}
61               neutron::plugins::ml2::bigswitch::restproxy::server_ssl: {get_input: restproxy_server_ssl}
62               neutron::plugins::ml2::bigswitch::restproxy::ssl_cert_directory: {get_input: restproxy_ssl_cert_directory}
63
64   NeutronBigswitchDeployment:
65     type: OS::Heat::StructuredDeployment
66     properties:
67       name: NeutronBigswitchDeployment
68       config: {get_resource: NeutronBigswitchConfig}
69       server: {get_param: server}
70       input_values:
71         neutron_enable_bigswitch_agent: {get_param: NeutronBigswitchAgentEnabled}
72         neutron_enable_bigswitch_lldp: {get_param: NeutronBigswitchLLDPEnabled}
73         restproxy_servers: {get_param: NeutronBigswitchRestproxyServers}
74         restproxy_server_auth: {get_param: NeutronBigswitchRestproxyServerAuth }
75         restproxy_auto_sync_on_failure: {get_param: NeutronBigswitchRestproxyAutoSyncOnFailure}
76         restproxy_consistency_interval: {get_param: NeutronBigswitchRestproxyConsistencyInterval}
77         restproxy_neutron_id: {get_param: NeutronBigswitchRestproxyNeutronId}
78         restproxy_server_ssl: {get_param: NeutronBigswitchRestproxyServerSsl}
79         restproxy_ssl_cert_directory: {get_param: NeutronBigswitchRestproxySslCertDirectory}
80
81 outputs:
82   deploy_stdout:
83     description: Deployment reference, used to trigger puppet apply on changes
84     value: {get_attr: [NeutronBigswitchDeployment, deploy_stdout]}