1 heat_template_version: ocata
4 OpenStack containerized Neutron DHCP service
9 default: 'tripleoupstream'
11 DockerNeutronApiImage:
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-openvswitch-agent: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.
38 type: ../../puppet/services/neutron-dhcp.yaml
40 EndpointMap: {get_param: EndpointMap}
41 ServiceNetMap: {get_param: ServiceNetMap}
42 DefaultPasswords: {get_param: DefaultPasswords}
46 description: Role data for the Neutron DHCP role.
48 service_name: {get_attr: [NeutronBase, role_data, service_name]}
51 - get_attr: [NeutronBase, role_data, config_settings]
52 step_config: &step_config
53 get_attr: [NeutronBase, role_data, step_config]
54 service_config_settings: {get_attr: [NeutronBase, role_data, service_config_settings]}
55 # BEGIN DOCKER SETTINGS
57 config_volume: neutron
58 puppet_tags: neutron_config,neutron_dhcp_agent_config
59 step_config: *step_config
63 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronConfigImage} ]
65 /var/lib/kolla/config_files/neutron_dhcp.json:
66 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
68 - dest: /etc/neutron/neutron.conf
71 source: /var/lib/kolla/config_files/src/etc/neutron/neutron.conf
72 - dest: /etc/neutron/dhcp_agent.ini
75 source: /var/lib/kolla/config_files/src/etc/neutron/dhcp_agent.ini
79 image: &neutron_dhcp_image
82 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronApiImage} ]
88 - /var/lib/kolla/config_files/neutron_dhcp.json:/var/lib/kolla/config_files/config.json:ro
89 - /var/lib/config-data/neutron/:/var/lib/kolla/config_files/src:ro
90 - /etc/localtime:/etc/localtime:ro
91 - /etc/hosts:/etc/hosts:ro
92 - /lib/modules:/lib/modules:ro
95 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
97 - name: Stop and disable neutron_dhcp service
99 service: name=neutron-dhcp-agent state=stopped enabled=no