Merge "Mount /var/lib/neutron in neutron agents for metadata proxy"
[apex-tripleo-heat-templates.git] / docker / services / multipathd.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack containerized Multipathd service
5
6 parameters:
7   DockerMultipathdImage:
8     description: image
9     type: string
10   DockerMultipathdConfigImage:
11     description: The container image to use for the multipathd config_volume
12     type: string
13   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   ServiceData:
19     default: {}
20     description: Dictionary packing service data
21     type: json
22   ServiceNetMap:
23     default: {}
24     description: Mapping of service_name -> network name. Typically set
25                  via parameter_defaults in the resource registry.  This
26                  mapping overrides those in ServiceNetMapDefaults.
27     type: json
28   RoleName:
29     default: ''
30     description: Role name on which the service is applied
31     type: string
32   RoleParameters:
33     default: {}
34     description: Parameters specific to the role
35     type: json
36   DefaultPasswords:
37     default: {}
38     type: json
39
40 resources:
41
42   ContainersCommon:
43     type: ./containers-common.yaml
44
45 outputs:
46   role_data:
47     description: Role data for the Multipathd API role.
48     value:
49       service_name: multipathd
50       config_settings: {}
51       step_config: ''
52       service_config_settings: {}
53       # BEGIN DOCKER SETTINGS
54       puppet_config:
55         config_volume: multipathd
56         #puppet_tags: file
57         step_config: ''
58         config_image: {get_param: DockerMultipathdConfigImage}
59       kolla_config:
60         /var/lib/kolla/config_files/multipathd.json:
61           command: /usr/sbin/multipathd -d
62         config_files:
63           - source: "/var/lib/kolla/config_files/src-iscsid/*"
64             dest: "/"
65             merge: true
66             preserve_properties: true
67       docker_config:
68         step_3:
69           multipathd:
70             start_order: 1
71             image: {get_param: DockerMultipathdImage}
72             net: host
73             privileged: true
74             restart: always
75             volumes:
76               list_concat:
77                 - {get_attr: [ContainersCommon, volumes]}
78                 -
79                   - /var/lib/kolla/config_files/multipathd.json:/var/lib/kolla/config_files/config.json:ro
80                   - /var/lib/config-data/puppet-generated/iscsid/:/var/lib/kolla/config_files/src-iscsid:ro
81                   - /dev/:/dev/
82                   - /run/:/run/
83                   - /sys:/sys
84                   - /lib/modules:/lib/modules:ro
85                   - /var/lib/cinder:/var/lib/cinder
86             environment:
87               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
88       host_prep_tasks:
89       upgrade_tasks:
90         - name: Stop and disable multipathd service
91           tags: step2
92           service: name=multipathd state=stopped enabled=no
93       metadata_settings: {}