1 heat_template_version: pike
4 OpenStack containerized Iscsid service
9 default: 'tripleoupstream'
13 default: 'centos-binary-iscsid:latest'
15 DockerIscsidConfigImage:
16 description: The container image to use for the iscsid config_volume
17 default: 'centos-binary-iscsid:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Dictionary packing service data
30 description: Mapping of service_name -> network name. Typically set
31 via parameter_defaults in the resource registry. This
32 mapping overrides those in ServiceNetMapDefaults.
36 description: Role name on which the service is applied
40 description: Parameters specific to the role
49 type: ./containers-common.yaml
53 description: Role data for the Iscsid API role.
58 service_config_settings: {}
59 # BEGIN DOCKER SETTINGS
67 - [ {get_param: DockerNamespace}, {get_param: DockerIscsidConfigImage} ]
69 /var/lib/kolla/config_files/iscsid.json:
70 command: /usr/sbin/iscsid -f
78 - [ {get_param: DockerNamespace}, {get_param: DockerIscsidImage} ]
84 - {get_attr: [ContainersCommon, volumes]}
86 - /var/lib/kolla/config_files/iscsid.json:/var/lib/kolla/config_files/config.json:ro
90 - /lib/modules:/lib/modules:ro
91 - /etc/iscsi:/etc/iscsi
93 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
95 - name: create /etc/iscsi
99 - name: stat /lib/systemd/system/iscsid.socket
100 stat: path=/lib/systemd/system/iscsid.socket
101 register: stat_iscsid_socket
102 - name: Stop and disable iscsid.socket service
103 service: name=iscsid.socket state=stopped enabled=no
104 when: stat_iscsid_socket.stat.exists
106 - name: stat /lib/systemd/system/iscsid.service
108 stat: path=/lib/systemd/system/iscsid.service
109 register: stat_iscsid_service
110 - name: Stop and disable iscsid service
112 service: name=iscsid state=stopped enabled=no
113 when: stat_iscsid_service.stat.exists
114 - name: stat /lib/systemd/system/iscsid.socket
116 stat: path=/lib/systemd/system/iscsid.socket
117 register: stat_iscsid_socket
118 - name: Stop and disable iscsid.socket service
120 service: name=iscsid.socket state=stopped enabled=no
121 when: stat_iscsid_socket.stat.exists
122 metadata_settings: {}