Merge "Make Ceilometer notifications non-blocking"
[apex-tripleo-heat-templates.git] / docker / services / neutron-ovs-agent.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   OpenStack Neutron openvswitch service
5
6 parameters:
7   DockerNamespace:
8     description: namespace
9     default: 'tripleoupstream'
10     type: string
11   DockerOpenvswitchImage:
12     description: image
13     default: 'centos-binary-neutron-openvswitch-agent'
14     type: string
15   NeutronOpenvswitchAgentPluginVolume:
16     type: string
17     default: "/var/lib/etc-data/neutron/plugins/ml2/openvswitch_agent.ini:/var/lib/kolla/config_files/ovs_neutron_plugin.ini:ro"
18   NeutronOpenvswitchAgentOvsVolume:
19     type: string
20     default: " "
21   ServiceNetMap:
22     default: {}
23     description: Mapping of service_name -> network name. Typically set
24                  via parameter_defaults in the resource registry.  This
25                  mapping overrides those in ServiceNetMapDefaults.
26     type: json
27   DefaultPasswords:
28     default: {}
29     type: json
30   EndpointMap:
31     default: {}
32     description: Mapping of service endpoint -> protocol. Typically set
33                  via parameter_defaults in the resource registry.
34     type: json
35
36 resources:
37
38   NeutronOvsAgentBase:
39     type: ../../puppet/services/neutron-ovs-agent.yaml
40     properties:
41       ServiceNetMap: {get_param: ServiceNetMap}
42       DefaultPasswords: {get_param: DefaultPasswords}
43       EndpointMap: {get_param: EndpointMap}
44
45 outputs:
46   role_data:
47     description: Role data for Neutron openvswitch service
48     value:
49       config_settings: {get_attr: [NeutronOvsAgentBase, role_data, config_settings]}
50       step_config: {get_attr: [NeutronOvsAgentBase, role_data, step_config]}
51       puppet_tags: neutron_config,neutron_agent_ovs,neutron_plugin_ml2
52       docker_config:
53         step_1:
54           neutronovsagent:
55             image:
56               list_join:
57               - '/'
58               - [ {get_param: DockerNamespace}, {get_param: DockerOpenvswitchImage} ]
59             net: host
60             pid: host
61             privileged: true
62             restart: always
63             volumes:
64               - /var/lib/etc-data/json-config/neutron-openvswitch-agent.json:/var/lib/kolla/config_files/config.json
65               - /var/lib/etc-data/neutron/neutron.conf:/var/lib/kolla/config_files/neutron.conf:ro
66               - /var/lib/etc-data/neutron/plugins/ml2/ml2_conf.ini:/var/lib/kolla/config_files/ml2_conf.ini:ro
67               - {get_param: NeutronOpenvswitchAgentPluginVolume}
68               - {get_param: NeutronOpenvswitchAgentOvsVolume}
69               - /etc/localtime:/etc/localtime:ro
70               - /lib/modules:/lib/modules:ro
71               - /run:/run
72               - logs:/var/log/kolla/
73             environment:
74               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
75         step_2: {}