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 # we configure all neutron services in the same neutron
16 DockerNeutronConfigImage:
18 default: 'centos-binary-neutron-server:latest'
22 description: Mapping of service endpoint -> protocol. Typically set
23 via parameter_defaults in the resource registry.
27 description: Mapping of service_name -> network name. Typically set
28 via parameter_defaults in the resource registry. This
29 mapping overrides those in ServiceNetMapDefaults.
36 description: Role name on which the service is applied
40 description: Parameters specific to the role
46 type: ./containers-common.yaml
49 type: ../../puppet/services/neutron-dhcp.yaml
51 EndpointMap: {get_param: EndpointMap}
52 ServiceNetMap: {get_param: ServiceNetMap}
53 DefaultPasswords: {get_param: DefaultPasswords}
54 RoleName: {get_param: RoleName}
55 RoleParameters: {get_param: RoleParameters}
59 description: Role data for the Neutron DHCP role.
61 service_name: {get_attr: [NeutronBase, role_data, service_name]}
64 - get_attr: [NeutronBase, role_data, config_settings]
65 step_config: &step_config
66 get_attr: [NeutronBase, role_data, step_config]
67 service_config_settings: {get_attr: [NeutronBase, role_data, service_config_settings]}
68 # BEGIN DOCKER SETTINGS
70 config_volume: neutron
71 puppet_tags: neutron_config,neutron_dhcp_agent_config
72 step_config: *step_config
76 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronConfigImage} ]
78 /var/lib/kolla/config_files/neutron_dhcp.json:
79 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
81 - path: /var/log/neutron
82 owner: neutron:neutron
90 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronDHCPImage} ]
97 - {get_attr: [ContainersCommon, volumes]}
99 - /var/lib/kolla/config_files/neutron_dhcp.json:/var/lib/kolla/config_files/config.json:ro
100 - /var/lib/config-data/neutron/etc/neutron/:/etc/neutron/:ro
101 - /lib/modules:/lib/modules:ro
103 - /var/log/containers/neutron:/var/log/neutron
105 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
107 - name: create persistent logs directory
109 path: /var/log/containers/neutron
112 - name: Stop and disable neutron_dhcp service
114 service: name=neutron-dhcp-agent state=stopped enabled=no