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 # we configure all neutron services in the same neutron
16 DockerNeutronConfigImage:
18 default: 'centos-binary-neutron-server:latest'
22 description: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
39 description: Mapping of service endpoint -> protocol. Typically set
40 via parameter_defaults in the resource registry.
46 type: ./containers-common.yaml
49 type: ../../puppet/services/neutron-l3.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 Neutron L3 agent
61 service_name: {get_attr: [NeutronL3Base, role_data, service_name]}
62 config_settings: {get_attr: [NeutronL3Base, role_data, config_settings]}
63 step_config: &step_config
64 get_attr: [NeutronL3Base, role_data, step_config]
66 puppet_tags: neutron_config,neutron_l3_agent_config
67 config_volume: neutron
68 step_config: *step_config
72 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronConfigImage} ]
74 /var/lib/kolla/config_files/neutron_l3_agent.json:
75 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
77 - path: /var/log/neutron
78 owner: neutron:neutron
86 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronL3AgentImage} ]
93 - {get_attr: [ContainersCommon, volumes]}
95 - /var/lib/kolla/config_files/neutron_l3_agent.json:/var/lib/kolla/config_files/config.json:ro
96 - /var/lib/config-data/neutron/etc/neutron/:/etc/neutron/:ro
97 - /lib/modules:/lib/modules:ro
99 - /var/log/containers/neutron:/var/log/neutron
101 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
103 - name: create persistent logs directory
105 path: /var/log/containers/neutron
108 - name: Stop and disable neutron_l3 service
110 service: name=neutron-l3-agent state=stopped enabled=no