Merge "Fix a typo in deployed-server/README.rst"
[apex-tripleo-heat-templates.git] / docker / services / neutron-ovs-agent.yaml
1 heat_template_version: ocata
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   ServiceNetMap:
16     default: {}
17     description: Mapping of service_name -> network name. Typically set
18                  via parameter_defaults in the resource registry.  This
19                  mapping overrides those in ServiceNetMapDefaults.
20     type: json
21   DefaultPasswords:
22     default: {}
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29
30 resources:
31
32   NeutronOvsAgentBase:
33     type: ../../puppet/services/neutron-ovs-agent.yaml
34     properties:
35       ServiceNetMap: {get_param: ServiceNetMap}
36       DefaultPasswords: {get_param: DefaultPasswords}
37       EndpointMap: {get_param: EndpointMap}
38
39 outputs:
40   role_data:
41     description: Role data for Neutron openvswitch service
42     value:
43       config_settings: {get_attr: [NeutronOvsAgentBase, role_data, config_settings]}
44       step_config: {get_attr: [NeutronOvsAgentBase, role_data, step_config]}
45       puppet_tags: neutron_config,neutron_agent_ovs,neutron_plugin_ml2
46       docker_config:
47         step_1:
48           neutronovsagent:
49             image:
50               list_join:
51               - '/'
52               - [ {get_param: DockerNamespace}, {get_param: DockerOpenvswitchImage} ]
53             net: host
54             pid: host
55             privileged: true
56             restart: always
57             volumes:
58               - /var/lib/etc-data/json-config/neutron-openvswitch-agent.json:/var/lib/kolla/config_files/config.json
59               - /var/lib/etc-data/neutron/neutron.conf:/var/lib/kolla/config_files/neutron.conf:ro
60               - /var/lib/etc-data/neutron/plugins/ml2/ml2_conf.ini:/var/lib/kolla/config_files/ml2_conf.ini:ro
61               - /var/lib/etc-data/neutron/plugins/ml2/openvswitch_agent.ini:/var/lib/kolla/config_files/openvswitch_agent.ini:ro
62               - /etc/localtime:/etc/localtime:ro
63               - /lib/modules:/lib/modules:ro
64               - /run:/run
65               - logs:/var/log/kolla/
66             environment:
67               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
68         step_2: {}