1 heat_template_version: pike
4 OpenStack Neutron openvswitch service
7 DockerOpenvswitchImage:
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-ovs-agent.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 openvswitch service
54 service_name: {get_attr: [NeutronOvsAgentBase, role_data, service_name]}
55 config_settings: {get_attr: [NeutronOvsAgentBase, role_data, config_settings]}
56 step_config: &step_config
57 get_attr: [NeutronOvsAgentBase, role_data, step_config]
59 config_volume: neutron
60 puppet_tags: neutron_config,neutron_agent_ovs,neutron_plugin_ml2
61 step_config: *step_config
62 config_image: {get_param: DockerNeutronConfigImage}
64 /var/lib/kolla/config_files/neutron_ovs_agent.json:
65 command: /usr/bin/neutron-openvswitch-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-dir /etc/neutron/conf.d/common
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: DockerOpenvswitchImage}
85 - {get_attr: [ContainersCommon, volumes]}
87 - /var/lib/kolla/config_files/neutron_ovs_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_ovs_agent service
102 service: name=neutron-openvswitch-agent state=stopped enabled=no