Merge "Combine parameter_default fields"
[apex-tripleo-heat-templates.git] / puppet / services / neutron-server.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Neutron Server configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   NeutronWorkers:
13     default: 0
14     description: Number of workers for Neutron service.
15     type: number
16   NeutronPassword:
17     description: The password for the neutron service and db account, used by neutron agents.
18     type: string
19     hidden: true
20   NeutronAllowL3AgentFailover:
21     default: 'True'
22     description: Allow automatic l3-agent failover
23     type: string
24   NeutronL3HA:
25     default: 'False'
26     description: Whether to enable l3-agent HA
27     type: string
28   NovaPassword:
29     description: The password for the nova service and db account, used by nova-api.
30     type: string
31     hidden: true
32
33 resources:
34
35   NeutronBase:
36     type: ./neutron-base.yaml
37
38 outputs:
39   role_data:
40     description: Role data for the Neutron Server agent service.
41     value:
42       config_settings:
43         map_merge:
44           - get_attr: [NeutronBase, role_data, config_settings]
45             neutron::server::database_connection:
46               list_join:
47                 - ''
48                 - - {get_param: [EndpointMap, MysqlInternal, protocol]}
49                   - '://neutron:'
50                   - {get_param: NeutronPassword}
51                   - '@'
52                   - {get_param: [EndpointMap, MysqlInternal, host]}
53                   - '/ovs_neutron?charset=utf8'
54             neutron::server::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
55             neutron::server::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
56             neutron::server::identity_uri: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
57             neutron::server::api_workers: {get_param: NeutronWorkers}
58             neutron::server::allow_automatic_l3agent_failover: {get_param: NeutronAllowL3AgentFailover}
59             neutron::server::l3_ha: {get_param: NeutronL3HA}
60             neutron::server::auth_password: {get_param: NeutronPassword}
61
62             neutron::server::notifications::nova_url: { get_param: [ EndpointMap, NovaInternal, uri ] }
63             neutron::server::notifications::auth_url: { get_param: [ EndpointMap, KeystoneV3Admin, uri ] }
64             neutron::server::notifications::tenant_name: 'service'
65             neutron::server::notifications::project_name: 'service'
66             neutron::server::notifications::password: {get_param: NovaPassword}
67             neutron::db::mysql::password: {get_param: NeutronPassword}
68             neutron::db::mysql::user: neutron
69             neutron::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host]}
70             neutron::db::mysql::dbname: ovs_neutron
71             neutron::db::mysql::allowed_hosts:
72               - '%'
73               - "%{hiera('mysql_bind_host')}"
74       step_config: |
75         include tripleo::profile::base::neutron::server