Merge "Add fluentd client service"
[apex-tripleo-heat-templates.git] / puppet / services / neutron-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Neutron Server configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   NeutronWorkers:
22     default: ''
23     description: |
24       Sets the number of API and RPC workers for the Neutron service. The
25       default value results in the configuration being left unset and a
26       system-dependent default will be chosen (usually the number of
27       processors). Please note that this can result in a large number of
28       processes and memory consumption on systems with a large core count. On
29       such systems it is recommended that a non-default value be selected that
30       matches the load requirements.
31     type: string
32   NeutronPassword:
33     description: The password for the neutron service and db account, used by neutron agents.
34     type: string
35     hidden: true
36   NeutronAllowL3AgentFailover:
37     default: 'True'
38     description: Allow automatic l3-agent failover
39     type: string
40   NeutronL3HA:
41     default: false
42     description: Whether to enable HA for virtual routers
43     type: boolean
44   NovaPassword:
45     description: The password for the nova service and db account, used by nova-api.
46     type: string
47     hidden: true
48   NeutronEnableDVR:
49     description: Enable Neutron DVR.
50     default: false
51     type: boolean
52   KeystoneRegion:
53     type: string
54     default: 'regionOne'
55     description: Keystone region for endpoint
56   MonitoringSubscriptionNeutronServer:
57     default: 'overcloud-neutron-server'
58     type: string
59   NeutronApiLoggingSource:
60     type: json
61     default:
62       tag: openstack.neutron.api
63       path: /var/log/neutron/server.log
64
65 resources:
66
67   NeutronBase:
68     type: ./neutron-base.yaml
69     properties:
70       ServiceNetMap: {get_param: ServiceNetMap}
71       DefaultPasswords: {get_param: DefaultPasswords}
72       EndpointMap: {get_param: EndpointMap}
73
74 outputs:
75   role_data:
76     description: Role data for the Neutron Server agent service.
77     value:
78       service_name: neutron_api
79       monitoring_subscription: {get_param: MonitoringSubscriptionNeutronServer}
80       logging_source: {get_param: NeutronApiLoggingSource}
81       logging_groups:
82         - neutron
83       config_settings:
84         map_merge:
85           - get_attr: [NeutronBase, role_data, config_settings]
86           - neutron::server::database_connection:
87               list_join:
88                 - ''
89                 - - {get_param: [EndpointMap, MysqlInternal, protocol]}
90                   - '://neutron:'
91                   - {get_param: NeutronPassword}
92                   - '@'
93                   - {get_param: [EndpointMap, MysqlInternal, host]}
94                   - '/ovs_neutron'
95             neutron::keystone::auth::tenant: 'service'
96             neutron::keystone::auth::public_url: {get_param: [EndpointMap, NeutronPublic, uri]}
97             neutron::keystone::auth::internal_url: { get_param: [ EndpointMap, NeutronInternal, uri ] }
98             neutron::keystone::auth::admin_url: { get_param: [ EndpointMap, NeutronAdmin, uri ] }
99             neutron::keystone::auth::password: {get_param: NeutronPassword}
100             neutron::keystone::auth::region: {get_param: KeystoneRegion}
101             neutron::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
102             neutron::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
103             neutron::server::api_workers: {get_param: NeutronWorkers}
104             neutron::server::rpc_workers: {get_param: NeutronWorkers}
105             neutron::server::allow_automatic_l3agent_failover: {get_param: NeutronAllowL3AgentFailover}
106             neutron::server::l3_ha: {get_param: NeutronL3HA}
107             neutron::keystone::authtoken::password: {get_param: NeutronPassword}
108
109             neutron::server::notifications::nova_url: { get_param: [ EndpointMap, NovaInternal, uri ] }
110             neutron::server::notifications::auth_url: { get_param: [ EndpointMap, KeystoneV3Admin, uri ] }
111             neutron::server::notifications::tenant_name: 'service'
112             neutron::server::notifications::project_name: 'service'
113             neutron::server::notifications::password: {get_param: NovaPassword}
114             neutron::keystone::authtoken::project_name: 'service'
115             neutron::server::sync_db: true
116             neutron::db::mysql::password: {get_param: NeutronPassword}
117             neutron::db::mysql::user: neutron
118             neutron::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
119             neutron::db::mysql::dbname: ovs_neutron
120             neutron::db::mysql::allowed_hosts:
121               - '%'
122               - "%{hiera('mysql_bind_host')}"
123             tripleo.neutron_server.firewall_rules:
124               '114 neutron server':
125                 dport:
126                   - 9696
127                   - 13696
128               '118 neutron vxlan networks':
129                 proto: 'udp'
130                 dport: 4789
131               '106 vrrp':
132                 proto: vrrp
133             neutron::server::router_distributed: {get_param: NeutronEnableDVR}
134             # NOTE: bind IP is found in Heat replacing the network name with the local node IP
135             # for the given network; replacement examples (eg. for internal_api):
136             # internal_api -> IP
137             # internal_api_uri -> [IP]
138             # internal_api_subnet - > IP/CIDR
139             neutron::bind_host: {get_param: [ServiceNetMap, NeutronApiNetwork]}
140       step_config: |
141         include tripleo::profile::base::neutron::server