1 heat_template_version: pike
4 OpenStack containerized Neutron L3 agent
9 default: 'tripleoupstream'
11 DockerNeutronL3AgentImage:
13 default: 'centos-binary-neutron-l3-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_name -> network name. Typically set
22 via parameter_defaults in the resource registry. This
23 mapping overrides those in ServiceNetMapDefaults.
30 description: Role name on which the service is applied
34 description: Parameters specific to the role
38 description: Mapping of service endpoint -> protocol. Typically set
39 via parameter_defaults in the resource registry.
45 type: ./containers-common.yaml
48 type: ../../puppet/services/neutron-l3.yaml
50 EndpointMap: {get_param: EndpointMap}
51 ServiceNetMap: {get_param: ServiceNetMap}
52 DefaultPasswords: {get_param: DefaultPasswords}
53 RoleName: {get_param: RoleName}
54 RoleParameters: {get_param: RoleParameters}
58 description: Role data for Neutron L3 agent
60 service_name: {get_attr: [NeutronL3Base, role_data, service_name]}
61 config_settings: {get_attr: [NeutronL3Base, role_data, config_settings]}
62 step_config: &step_config
63 get_attr: [NeutronL3Base, role_data, step_config]
65 puppet_tags: neutron_config,neutron_l3_agent_config
66 config_volume: neutron
67 step_config: *step_config
71 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronConfigImage} ]
73 /var/lib/kolla/config_files/neutron_l3_agent.json:
74 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
76 - source: "/var/lib/kolla/config_files/src/*"
79 preserve_properties: true
81 - path: /var/log/neutron
82 owner: neutron:neutron
90 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronL3AgentImage} ]
97 - {get_attr: [ContainersCommon, volumes]}
99 - /var/lib/kolla/config_files/neutron_l3_agent.json:/var/lib/kolla/config_files/config.json:ro
100 - /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src: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_l3 service
114 service: name=neutron-l3-agent state=stopped enabled=no