f201d88d933d058ab2402404204c17f5dbdf41d1
[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   ServiceNetMap:
19     default: {}
20     description: Mapping of service_name -> network name. Typically set
21                  via parameter_defaults in the resource registry.  This
22                  mapping overrides those in ServiceNetMapDefaults.
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   DefaultPasswords:
33     default: {}
34     type: json
35
36 resources:
37
38   ContainersCommon:
39     type: ./containers-common.yaml
40
41 outputs:
42   role_data:
43     description: Role data for the Multipathd API role.
44     value:
45       service_name: multipathd
46       config_settings: {}
47       step_config: ''
48       service_config_settings: {}
49       # BEGIN DOCKER SETTINGS
50       puppet_config:
51         config_volume: multipathd
52         #puppet_tags: file
53         step_config: ''
54         config_image: {get_param: DockerMultipathdConfigImage}
55       kolla_config:
56         /var/lib/kolla/config_files/multipathd.json:
57           command: /usr/sbin/multipathd -d
58       docker_config:
59         step_3:
60           multipathd:
61             start_order: 1
62             image: {get_param: DockerMultipathdImage}
63             net: host
64             privileged: true
65             restart: always
66             volumes:
67               list_concat:
68                 - {get_attr: [ContainersCommon, volumes]}
69                 -
70                   - /var/lib/kolla/config_files/multipathd.json:/var/lib/kolla/config_files/config.json:ro
71                   - /dev/:/dev/
72                   - /run/:/run/
73                   - /sys:/sys
74                   - /lib/modules:/lib/modules:ro
75                   - /etc/iscsi:/etc/iscsi
76                   - /var/lib/cinder:/var/lib/cinder
77             environment:
78               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
79       host_prep_tasks:
80       upgrade_tasks:
81         - name: Stop and disable multipathd service
82           tags: step2
83           service: name=multipathd state=stopped enabled=no
84       metadata_settings: {}