Merge "Add Ceph cluster health validation on upgrade"
[apex-tripleo-heat-templates.git] / puppet / services / neutron-dhcp.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Neutron DHCP agent 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   NeutronEnableMetadataNetwork:
22     default: false
23     description: If True, DHCP provide metadata network. Requires either
24                  IsolatedMetadata or ForceMetadata parameters to also be True.
25     type: boolean
26   NeutronEnableIsolatedMetadata:
27     default: false
28     description: If True, DHCP provide metadata route to VM.
29     type: boolean
30   NeutronEnableForceMetadata:
31     default: false
32     description: If True, DHCP always provides metadata route to VM.
33     type: boolean
34   MonitoringSubscriptionNeutronDhcp:
35     default: 'overcloud-neutron-dhcp'
36     type: string
37
38 resources:
39
40   NeutronBase:
41     type: ./neutron-base.yaml
42     properties:
43       ServiceNetMap: {get_param: ServiceNetMap}
44       DefaultPasswords: {get_param: DefaultPasswords}
45       EndpointMap: {get_param: EndpointMap}
46
47 outputs:
48   role_data:
49     description: Role data for the Neutron DHCP agent service.
50     value:
51       service_name: neutron_dhcp
52       monitoring_subscription: {get_param: MonitoringSubscriptionNeutronDhcp}
53       config_settings:
54         map_merge:
55           - get_attr: [NeutronBase, role_data, config_settings]
56           - neutron::agents::dhcp::enable_isolated_metadata: {get_param: NeutronEnableIsolatedMetadata}
57             neutron::agents::dhcp::enable_force_metadata: {get_param: NeutronEnableForceMetadata}
58             neutron::agents::dhcp::enable_metadata_network: {get_param: NeutronEnableMetadataNetwork}
59             tripleo.neutron_dhcp.firewall_rules:
60               '115 neutron dhcp input':
61                 proto: 'udp'
62                 dport: 67
63               '116 neutron dhcp output':
64                 proto: 'udp'
65                 chain: 'OUTPUT'
66                 dport: 68
67       step_config: |
68         include tripleo::profile::base::neutron::dhcp