1 heat_template_version: pike
4 OpenStack containerized Neutron L3 agent
7 DockerNeutronL3AgentImage:
10 DockerNeutronConfigImage:
11 description: The container image to use for the neutron config_volume
15 description: Mapping of service_name -> network name. Typically set
16 via parameter_defaults in the resource registry. This
17 mapping overrides those in ServiceNetMapDefaults.
24 description: Role name on which the service is applied
28 description: Parameters specific to the role
32 description: Mapping of service endpoint -> protocol. Typically set
33 via parameter_defaults in the resource registry.
39 type: ./containers-common.yaml
42 type: ../../puppet/services/neutron-l3.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 Neutron L3 agent
54 service_name: {get_attr: [NeutronL3Base, role_data, service_name]}
55 config_settings: {get_attr: [NeutronL3Base, role_data, config_settings]}
56 step_config: &step_config
57 get_attr: [NeutronL3Base, role_data, step_config]
59 puppet_tags: neutron_config,neutron_l3_agent_config
60 config_volume: neutron
61 step_config: *step_config
62 config_image: {get_param: DockerNeutronConfigImage}
64 /var/lib/kolla/config_files/neutron_l3_agent.json:
65 command: /usr/bin/neutron-l3-agent --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/l3_agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/l3_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-l3-agent
67 - source: "/var/lib/kolla/config_files/src/*"
70 preserve_properties: true
72 - path: /var/log/neutron
73 owner: neutron:neutron
78 image: {get_param: DockerNeutronL3AgentImage}
85 - {get_attr: [ContainersCommon, volumes]}
87 - /var/lib/kolla/config_files/neutron_l3_agent.json:/var/lib/kolla/config_files/config.json:ro
88 - /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
89 - /lib/modules:/lib/modules:ro
91 - /var/log/containers/neutron:/var/log/neutron
93 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
95 - name: create persistent logs directory
97 path: /var/log/containers/neutron
100 - name: Stop and disable neutron_l3 service
102 service: name=neutron-l3-agent state=stopped enabled=no