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: Dictionary packing service data
19 description: Mapping of service_name -> network name. Typically set
20 via parameter_defaults in the resource registry. This
21 mapping overrides those in ServiceNetMapDefaults.
28 description: Role name on which the service is applied
32 description: Parameters specific to the role
36 description: Mapping of service endpoint -> protocol. Typically set
37 via parameter_defaults in the resource registry.
43 type: ./containers-common.yaml
46 type: ../../puppet/services/neutron-ovs-agent.yaml
48 EndpointMap: {get_param: EndpointMap}
49 ServiceData: {get_param: ServiceData}
50 ServiceNetMap: {get_param: ServiceNetMap}
51 DefaultPasswords: {get_param: DefaultPasswords}
52 RoleName: {get_param: RoleName}
53 RoleParameters: {get_param: RoleParameters}
57 description: Role data for Neutron openvswitch service
59 service_name: {get_attr: [NeutronOvsAgentBase, role_data, service_name]}
60 config_settings: {get_attr: [NeutronOvsAgentBase, role_data, config_settings]}
61 step_config: &step_config
62 get_attr: [NeutronOvsAgentBase, role_data, step_config]
64 config_volume: neutron
65 puppet_tags: neutron_config,neutron_agent_ovs,neutron_plugin_ml2
66 step_config: *step_config
67 config_image: {get_param: DockerNeutronConfigImage}
69 /var/lib/kolla/config_files/neutron_ovs_agent.json:
70 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
72 - source: "/var/lib/kolla/config_files/src/*"
75 preserve_properties: true
77 - path: /var/log/neutron
78 owner: neutron:neutron
84 image: {get_param: DockerNeutronConfigImage}
93 - /etc/puppet/modules:/usr/share/openstack-puppet/modules
95 - file,file_line,concat,augeas,neutron::plugins::ovs::bridge
98 - include neutron::agents::ml2::ovs
101 - {get_attr: [ContainersCommon, volumes]}
103 - /var/lib/kolla/config_files/neutron_ovs_agent.json:/var/lib/kolla/config_files/config.json:ro
104 - /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
105 - /lib/modules:/lib/modules:ro
107 - /etc/puppet:/etc/puppet:ro
108 - /usr/share/openstack-puppet/modules/:/usr/share/openstack-puppet/modules/:ro
109 - /var/run/openvswitch/db.sock:/var/run/openvswitch/db.sock
111 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
114 image: {get_param: DockerOpenvswitchImage}
121 - {get_attr: [ContainersCommon, volumes]}
123 - /var/lib/kolla/config_files/neutron_ovs_agent.json:/var/lib/kolla/config_files/config.json:ro
124 - /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
125 - /lib/modules:/lib/modules:ro
127 - /var/log/containers/neutron:/var/log/neutron
129 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
131 - name: create persistent logs directory
133 path: /var/log/containers/neutron
136 - name: Stop and disable neutron_ovs_agent service
138 service: name=neutron-openvswitch-agent state=stopped enabled=no