Merge "Change ping wait flag"
[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   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   MysqlVirtualIPUri:
13     type: string
14     default: ''
15   NeutronEnableIsolatedMetadata:
16     default: 'False'
17     description: If True, DHCP provide metadata route to VM.
18     type: string
19   NeutronDnsmasqOptions:
20     default: 'dhcp-option-force=26,%MTU%'
21     description: >
22       Dnsmasq options for neutron-dhcp-agent. The default value here forces MTU
23       to be set to the value of NeutronTenantMtu, which should be set to account
24       for tunnel overhead.
25     type: string
26   NeutronTenantMtu:
27     description: >
28       The default MTU for tenant networks. For VXLAN/GRE tunneling, this should
29       be at least 50 bytes smaller than the MTU on the physical network. This
30       value will be used to set the MTU on the virtual Ethernet device.
31       This value will be used to construct the NeutronDnsmasqOptions, since that
32       will determine the MTU that is assigned to the VM host through DHCP.
33     default: "1400"
34     type: string
35
36 resources:
37
38   NeutronBase:
39     type: ./neutron-base.yaml
40
41 outputs:
42   role_data:
43     description: Role data for the Neutron DHCP agent service.
44     value:
45       config_settings:
46         map_merge:
47           - get_attr: [NeutronBase, role_data, config_settings]
48           - neutron::agents::dhcp::dnsmasq_config_file: /etc/neutron/dnsmasq-neutron.conf
49             tripleo::profile::base::neutron::dhcp:
50               str_replace:
51                 template: {get_param: NeutronDnsmasqOptions}
52                 params:
53                   '%MTU%': {get_param: NeutronTenantMtu}
54             neutron::agents::dhcp::enable_isolated_metadata: {get_param: NeutronEnableIsolatedMetadata}
55       step_config: |
56         include tripleo::profile::base::neutron::dhcp