Add DefaultPasswords to composable services
[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   NeutronEnableIsolatedMetadata:
22     default: 'False'
23     description: If True, DHCP provide metadata route to VM.
24     type: string
25
26 resources:
27
28   NeutronBase:
29     type: ./neutron-base.yaml
30     properties:
31       ServiceNetMap: {get_param: ServiceNetMap}
32       DefaultPasswords: {get_param: DefaultPasswords}
33       EndpointMap: {get_param: EndpointMap}
34
35 outputs:
36   role_data:
37     description: Role data for the Neutron DHCP agent service.
38     value:
39       service_name: neutron_dhcp
40       config_settings:
41         map_merge:
42           - get_attr: [NeutronBase, role_data, config_settings]
43           - neutron::agents::dhcp::enable_isolated_metadata: {get_param: NeutronEnableIsolatedMetadata}
44             tripleo.neutron_dhcp.firewall_rules:
45               '115 neutron dhcp input':
46                 proto: 'udp'
47                 dport: 67
48               '116 neutron dhcp output':
49                 proto: 'udp'
50                 chain: 'OUTPUT'
51                 dport: 68
52       step_config: |
53         include tripleo::profile::base::neutron::dhcp