1 heat_template_version: ocata
4 OpenStack Neutron DHCP agent configured with Puppet
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.
18 description: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
21 NeutronEnableMetadataNetwork:
23 description: If True, DHCP provide metadata network. Requires either
24 IsolatedMetadata or ForceMetadata parameters to also be True.
26 NeutronEnableIsolatedMetadata:
28 description: If True, DHCP provide metadata route to VM.
30 NeutronEnableForceMetadata:
32 description: If True, DHCP always provides metadata route to VM.
34 MonitoringSubscriptionNeutronDhcp:
35 default: 'overcloud-neutron-dhcp'
37 NeutronDhcpAgentLoggingSource:
40 tag: openstack.neutron.agent.dhcp
41 path: /var/log/neutron/dhcp-agent.log
42 NeutronDhcpAgentDnsmasqDnsServers:
44 description: List of servers to use as dnsmasq forwarders
45 type: comma_delimited_list
50 type: ./neutron-base.yaml
52 ServiceNetMap: {get_param: ServiceNetMap}
53 DefaultPasswords: {get_param: DefaultPasswords}
54 EndpointMap: {get_param: EndpointMap}
58 description: Role data for the Neutron DHCP agent service.
60 service_name: neutron_dhcp
61 monitoring_subscription: {get_param: MonitoringSubscriptionNeutronDhcp}
62 logging_source: {get_param: NeutronDhcpAgentLoggingSource}
67 - get_attr: [NeutronBase, role_data, config_settings]
68 - neutron::agents::dhcp::enable_isolated_metadata: {get_param: NeutronEnableIsolatedMetadata}
69 neutron::agents::dhcp::enable_force_metadata: {get_param: NeutronEnableForceMetadata}
70 neutron::agents::dhcp::enable_metadata_network: {get_param: NeutronEnableMetadataNetwork}
71 neutron::agents::dhcp::dnsmasq_dns_servers: {get_param: NeutronDhcpAgentDnsmasqDnsServers}
72 tripleo.neutron_dhcp.firewall_rules:
73 '115 neutron dhcp input':
76 '116 neutron dhcp output':
81 include tripleo::profile::base::neutron::dhcp
83 - name: Check if neutron_dhcp_agent is deployed
84 command: systemctl is-enabled neutron-dhcp-agent
87 register: neutron_dhcp_agent_enabled
88 - name: "PreUpgrade step0,validation: Check service neutron-dhcp-agent is running"
89 shell: /usr/bin/systemctl show 'neutron-dhcp-agent' --property ActiveState | grep '\bactive\b'
90 when: neutron_dhcp_agent_enabled.rc == 0
91 tags: step0,validation
92 - name: Stop neutron_dhcp service
94 when: neutron_dhcp_agent_enabled.rc == 0
95 service: name=neutron-dhcp-agent state=stopped