Merge "Mv Ceilometer settings out of puppet/compute.yaml"
[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 HA for virtual routers
27     type: boolean
28   NovaPassword:
29     description: The password for the nova service and db account, used by nova-api.
30     type: string
31     hidden: true
32   NeutronEnableDVR:
33     description: Enable Neutron DVR.
34     default: false
35     type: boolean
36   KeystoneRegion:
37     type: string
38     default: 'regionOne'
39     description: Keystone region for endpoint
40
41 resources:
42
43   NeutronBase:
44     type: ./neutron-base.yaml
45
46 outputs:
47   role_data:
48     description: Role data for the Neutron Server agent service.
49     value:
50       service_name: neutron_server
51       config_settings:
52         map_merge:
53           - get_attr: [NeutronBase, role_data, config_settings]
54             neutron::server::database_connection:
55               list_join:
56                 - ''
57                 - - {get_param: [EndpointMap, MysqlInternal, protocol]}
58                   - '://neutron:'
59                   - {get_param: NeutronPassword}
60                   - '@'
61                   - {get_param: [EndpointMap, MysqlInternal, host]}
62                   - '/ovs_neutron'
63             neutron::keystone::auth::tenant: 'service'
64             neutron::keystone::auth::public_url: {get_param: [EndpointMap, NeutronPublic, uri]}
65             neutron::keystone::auth::internal_url: { get_param: [ EndpointMap, NeutronInternal, uri ] }
66             neutron::keystone::auth::admin_url: { get_param: [ EndpointMap, NeutronAdmin, uri ] }
67             neutron::keystone::auth::password: {get_param: NeutronPassword}
68             neutron::keystone::auth::region: {get_param: KeystoneRegion}
69             neutron::server::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
70             neutron::server::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
71             neutron::server::api_workers: {get_param: NeutronWorkers}
72             neutron::server::allow_automatic_l3agent_failover: {get_param: NeutronAllowL3AgentFailover}
73             neutron::server::l3_ha: {get_param: NeutronL3HA}
74             neutron::server::password: {get_param: NeutronPassword}
75
76             neutron::server::notifications::nova_url: { get_param: [ EndpointMap, NovaInternal, uri ] }
77             neutron::server::notifications::auth_url: { get_param: [ EndpointMap, KeystoneV3Admin, uri ] }
78             neutron::server::notifications::tenant_name: 'service'
79             neutron::server::notifications::project_name: 'service'
80             neutron::server::notifications::password: {get_param: NovaPassword}
81             neutron::server::project_name: 'service'
82             neutron::server::sync_db: true
83             neutron::db::mysql::password: {get_param: NeutronPassword}
84             neutron::db::mysql::user: neutron
85             neutron::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
86             neutron::db::mysql::dbname: ovs_neutron
87             neutron::db::mysql::allowed_hosts:
88               - '%'
89               - "%{hiera('mysql_bind_host')}"
90             tripleo.neutron_server.firewall_rules:
91               '114 neutron server':
92                 dport:
93                   - 9696
94                   - 13696
95               '118 neutron vxlan networks':
96                 proto: 'udp'
97                 dport: 4789
98               '106 vrrp':
99                 proto: vrrp
100             neutron::server::router_distributed: {get_param: NeutronEnableDVR}
101       step_config: |
102         include tripleo::profile::base::neutron::server