1 heat_template_version: pike
4 OpenStack containerized Neutron DHCP service
9 default: 'tripleoupstream'
11 DockerNeutronDHCPImage:
13 default: 'centos-binary-neutron-dhcp-agent:latest'
15 DockerNeutronConfigImage:
16 description: The container image to use for the neutron config_volume
17 default: 'centos-binary-neutron-server:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Dictionary packing service data
30 description: Mapping of service_name -> network name. Typically set
31 via parameter_defaults in the resource registry. This
32 mapping overrides those in ServiceNetMapDefaults.
39 description: Role name on which the service is applied
43 description: Parameters specific to the role
49 type: ./containers-common.yaml
52 type: ../../puppet/services/neutron-dhcp.yaml
54 EndpointMap: {get_param: EndpointMap}
55 ServiceData: {get_param: ServiceData}
56 ServiceNetMap: {get_param: ServiceNetMap}
57 DefaultPasswords: {get_param: DefaultPasswords}
58 RoleName: {get_param: RoleName}
59 RoleParameters: {get_param: RoleParameters}
63 description: Role data for the Neutron DHCP role.
65 service_name: {get_attr: [NeutronBase, role_data, service_name]}
68 - get_attr: [NeutronBase, role_data, config_settings]
69 step_config: &step_config
70 get_attr: [NeutronBase, role_data, step_config]
71 service_config_settings: {get_attr: [NeutronBase, role_data, service_config_settings]}
72 # BEGIN DOCKER SETTINGS
74 config_volume: neutron
75 puppet_tags: neutron_config,neutron_dhcp_agent_config
76 step_config: *step_config
80 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronConfigImage} ]
82 /var/lib/kolla/config_files/neutron_dhcp.json:
83 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
85 - source: "/var/lib/kolla/config_files/src/*"
88 preserve_properties: true
90 - path: /var/log/neutron
91 owner: neutron:neutron
99 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronDHCPImage} ]
106 - {get_attr: [ContainersCommon, volumes]}
108 - /var/lib/kolla/config_files/neutron_dhcp.json:/var/lib/kolla/config_files/config.json:ro
109 - /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
110 - /lib/modules:/lib/modules:ro
112 - /var/log/containers/neutron:/var/log/neutron
114 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
116 - name: create persistent logs directory
118 path: /var/log/containers/neutron
121 - name: Stop and disable neutron_dhcp service
123 service: name=neutron-dhcp-agent state=stopped enabled=no