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