1 heat_template_version: pike
4 OpenStack containerized Neutron DHCP service
7 DockerNeutronDHCPImage:
10 DockerNeutronConfigImage:
11 description: The container image to use for the neutron config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Mapping of service_name -> network name. Typically set
21 via parameter_defaults in the resource registry. This
22 mapping overrides those in ServiceNetMapDefaults.
29 description: Role name on which the service is applied
33 description: Parameters specific to the role
39 type: ./containers-common.yaml
42 type: ../../puppet/services/neutron-dhcp.yaml
44 EndpointMap: {get_param: EndpointMap}
45 ServiceNetMap: {get_param: ServiceNetMap}
46 DefaultPasswords: {get_param: DefaultPasswords}
47 RoleName: {get_param: RoleName}
48 RoleParameters: {get_param: RoleParameters}
52 description: Role data for the Neutron DHCP role.
54 service_name: {get_attr: [NeutronBase, role_data, service_name]}
57 - get_attr: [NeutronBase, role_data, config_settings]
58 step_config: &step_config
59 get_attr: [NeutronBase, role_data, step_config]
60 service_config_settings: {get_attr: [NeutronBase, role_data, service_config_settings]}
61 # BEGIN DOCKER SETTINGS
63 config_volume: neutron
64 puppet_tags: neutron_config,neutron_dhcp_agent_config
65 step_config: *step_config
66 config_image: {get_param: DockerNeutronConfigImage}
68 /var/lib/kolla/config_files/neutron_dhcp.json:
69 command: /usr/bin/neutron-dhcp-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini --log-file /var/log/neutron/dhcp-agent.log --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-dhcp-agent
71 - source: "/var/lib/kolla/config_files/src/*"
74 preserve_properties: true
76 - path: /var/log/neutron
77 owner: neutron:neutron
82 image: {get_param: DockerNeutronDHCPImage}
89 - {get_attr: [ContainersCommon, volumes]}
91 - /var/lib/kolla/config_files/neutron_dhcp.json:/var/lib/kolla/config_files/config.json:ro
92 - /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
93 - /lib/modules:/lib/modules:ro
95 - /var/log/containers/neutron:/var/log/neutron
97 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
99 - name: create persistent logs directory
101 path: /var/log/containers/neutron
104 - name: Stop and disable neutron_dhcp service
106 service: name=neutron-dhcp-agent state=stopped enabled=no