Add missing type for RoleParameters parameter
[apex-tripleo-heat-templates.git] / docker / services / neutron-ovs-agent.yaml
1 heat_template_version: pike
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:latest'
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   RoleName:
25     default: ''
26     description: Role name on which the service is applied
27     type: string
28   RoleParameters:
29     default: {}
30     description: Parameters specific to the role
31     type: json
32   EndpointMap:
33     default: {}
34     description: Mapping of service endpoint -> protocol. Typically set
35                  via parameter_defaults in the resource registry.
36     type: json
37
38 resources:
39
40   ContainersCommon:
41     type: ./containers-common.yaml
42
43   NeutronOvsAgentBase:
44     type: ../../puppet/services/neutron-ovs-agent.yaml
45     properties:
46       EndpointMap: {get_param: EndpointMap}
47       ServiceNetMap: {get_param: ServiceNetMap}
48       DefaultPasswords: {get_param: DefaultPasswords}
49       RoleName: {get_param: RoleName}
50       RoleParameters: {get_param: RoleParameters}
51
52 outputs:
53   role_data:
54     description: Role data for Neutron openvswitch service
55     value:
56       service_name: {get_attr: [NeutronOvsAgentBase, role_data, service_name]}
57       config_settings: {get_attr: [NeutronOvsAgentBase, role_data, config_settings]}
58       step_config: &step_config
59         get_attr: [NeutronOvsAgentBase, role_data, step_config]
60       puppet_config:
61         config_volume: neutron
62         puppet_tags: neutron_config,neutron_agent_ovs,neutron_plugin_ml2
63         step_config: *step_config
64         config_image: &neutron_ovs_agent_image
65           list_join:
66           - '/'
67           - [ {get_param: DockerNamespace}, {get_param: DockerOpenvswitchImage} ]
68       kolla_config:
69         /var/lib/kolla/config_files/neutron-openvswitch-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
71           permissions:
72             - path: /var/log/neutron
73               owner: neutron:neutron
74               recurse: true
75       docker_config:
76         step_4:
77           neutronovsagent:
78             image: *neutron_ovs_agent_image
79             net: host
80             pid: host
81             privileged: true
82             restart: always
83             volumes:
84               list_concat:
85                 - {get_attr: [ContainersCommon, volumes]}
86                 -
87                   - /var/lib/kolla/config_files/neutron-openvswitch-agent.json:/var/lib/kolla/config_files/config.json:ro
88                   - /var/lib/config-data/neutron/etc/neutron/:/etc/neutron/:ro
89                   - /lib/modules:/lib/modules:ro
90                   - /run:/run
91                   - /var/log/containers/neutron:/var/log/neutron
92             environment:
93               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
94       host_prep_tasks:
95         - name: create persistent logs directory
96           file:
97             path: /var/log/containers/neutron
98             state: directory
99       upgrade_tasks:
100         - name: Stop and disable neutron_ovs_agent service
101           tags: step2
102           service: name=neutron-openvswitch-agent state=stopped enabled=no