1 heat_template_version: pike
4 OpenStack Neutron DHCP agent configured with Puppet
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
33 NeutronEnableMetadataNetwork:
35 description: If True, DHCP provide metadata network. Requires either
36 IsolatedMetadata or ForceMetadata parameters to also be True.
38 NeutronEnableIsolatedMetadata:
40 description: If True, DHCP provide metadata route to VM.
42 NeutronEnableForceMetadata:
44 description: If True, DHCP always provides metadata route to VM.
46 MonitoringSubscriptionNeutronDhcp:
47 default: 'overcloud-neutron-dhcp'
49 NeutronDhcpAgentLoggingSource:
52 tag: openstack.neutron.agent.dhcp
53 path: /var/log/neutron/dhcp-agent.log
54 NeutronDhcpAgentDnsmasqDnsServers:
56 description: List of servers to use as dnsmasq forwarders
57 type: comma_delimited_list
62 type: ./neutron-base.yaml
64 ServiceData: {get_param: ServiceData}
65 ServiceNetMap: {get_param: ServiceNetMap}
66 DefaultPasswords: {get_param: DefaultPasswords}
67 EndpointMap: {get_param: EndpointMap}
68 RoleName: {get_param: RoleName}
69 RoleParameters: {get_param: RoleParameters}
73 description: Role data for the Neutron DHCP agent service.
75 service_name: neutron_dhcp
76 monitoring_subscription: {get_param: MonitoringSubscriptionNeutronDhcp}
77 logging_source: {get_param: NeutronDhcpAgentLoggingSource}
82 - get_attr: [NeutronBase, role_data, config_settings]
83 - neutron::agents::dhcp::enable_isolated_metadata: {get_param: NeutronEnableIsolatedMetadata}
84 neutron::agents::dhcp::enable_force_metadata: {get_param: NeutronEnableForceMetadata}
85 neutron::agents::dhcp::enable_metadata_network: {get_param: NeutronEnableMetadataNetwork}
86 neutron::agents::dhcp::dnsmasq_dns_servers: {get_param: NeutronDhcpAgentDnsmasqDnsServers}
87 tripleo.neutron_dhcp.firewall_rules:
88 '115 neutron dhcp input':
91 '116 neutron dhcp output':
96 include tripleo::profile::base::neutron::dhcp
98 - name: Check if neutron_dhcp_agent is deployed
99 command: systemctl is-enabled neutron-dhcp-agent
102 register: neutron_dhcp_agent_enabled
103 - name: "PreUpgrade step0,validation: Check service neutron-dhcp-agent is running"
104 shell: /usr/bin/systemctl show 'neutron-dhcp-agent' --property ActiveState | grep '\bactive\b'
105 when: neutron_dhcp_agent_enabled.rc == 0
106 tags: step0,validation
107 - name: Stop neutron_dhcp service
109 when: neutron_dhcp_agent_enabled.rc == 0
110 service: name=neutron-dhcp-agent state=stopped