Sort ResourceGroup resource list
[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       kolla_config:
47         /var/lib/etc-data/json-config/neutron-openvswitch-agent.json:
48            command: /usr/bin/neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
49            config_files:
50            - dest: /etc/neutron/neutron.conf
51              owner: neutron
52              perm: '0600'
53              source: /var/lib/kolla/config_files/neutron.conf
54            - dest: /etc/neutron/plugins/ml2/openvswitch_agent.ini
55              owner: neutron
56              perm: '0600'
57              source: /var/lib/kolla/config_files/openvswitch_agent.ini
58            - dest: /etc/neutron/plugins/ml2/ml2_conf.ini
59              owner: neutron
60              perm: '0600'
61              source: /var/lib/kolla/config_files/ml2_conf.ini
62       docker_config:
63         step_1:
64           neutronovsagent:
65             image:
66               list_join:
67               - '/'
68               - [ {get_param: DockerNamespace}, {get_param: DockerOpenvswitchImage} ]
69             net: host
70             pid: host
71             privileged: true
72             restart: always
73             volumes:
74               - /var/lib/etc-data/json-config/neutron-openvswitch-agent.json:/var/lib/kolla/config_files/config.json
75               - /var/lib/etc-data/neutron/neutron.conf:/var/lib/kolla/config_files/neutron.conf:ro
76               - /var/lib/etc-data/neutron/plugins/ml2/ml2_conf.ini:/var/lib/kolla/config_files/ml2_conf.ini:ro
77               - /var/lib/etc-data/neutron/plugins/ml2/openvswitch_agent.ini:/var/lib/kolla/config_files/openvswitch_agent.ini:ro
78               - /etc/localtime:/etc/localtime:ro
79               - /lib/modules:/lib/modules:ro
80               - /run:/run
81               - logs:/var/log/kolla/
82             environment:
83               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
84         step_2: {}