Remove deprecated hdp plugin and add ambari
[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
37 resources:
38
39   NeutronBase:
40     type: ./neutron-base.yaml
41
42 outputs:
43   role_data:
44     description: Role data for the Neutron Server agent service.
45     value:
46       service_name: neutron_server
47       config_settings:
48         map_merge:
49           - get_attr: [NeutronBase, role_data, config_settings]
50             neutron::server::database_connection:
51               list_join:
52                 - ''
53                 - - {get_param: [EndpointMap, MysqlInternal, protocol]}
54                   - '://neutron:'
55                   - {get_param: NeutronPassword}
56                   - '@'
57                   - {get_param: [EndpointMap, MysqlInternal, host]}
58                   - '/ovs_neutron'
59             neutron::server::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
60             neutron::server::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
61             neutron::server::auth_tenant: 'service'
62             neutron::server::identity_uri: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
63             neutron::server::api_workers: {get_param: NeutronWorkers}
64             neutron::server::allow_automatic_l3agent_failover: {get_param: NeutronAllowL3AgentFailover}
65             neutron::server::l3_ha: {get_param: NeutronL3HA}
66             neutron::server::auth_password: {get_param: NeutronPassword}
67
68             neutron::server::notifications::nova_url: { get_param: [ EndpointMap, NovaInternal, uri ] }
69             neutron::server::notifications::auth_url: { get_param: [ EndpointMap, KeystoneV3Admin, uri ] }
70             neutron::server::notifications::tenant_name: 'service'
71             neutron::server::notifications::project_name: 'service'
72             neutron::server::notifications::password: {get_param: NovaPassword}
73             neutron::server::project_name: 'service'
74             neutron::server::sync_db: true
75             neutron::db::mysql::password: {get_param: NeutronPassword}
76             neutron::db::mysql::user: neutron
77             neutron::db::mysql::host: {get_param: [EndpointMap, MysqlNoBracketsInternal, host]}
78             neutron::db::mysql::dbname: ovs_neutron
79             neutron::db::mysql::allowed_hosts:
80               - '%'
81               - "%{hiera('mysql_bind_host')}"
82             tripleo.neutron_server.firewall_rules:
83               '114 neutron server':
84                 dport:
85                   - 9696
86                   - 13696
87               '118 neutron vxlan networks':
88                 proto: 'udp'
89                 dport: 4789
90               '106 vrrp':
91                 proto: vrrp
92             neutron::server::router_distributed: {get_param: NeutronEnableDVR}
93       step_config: |
94         include tripleo::profile::base::neutron::server