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: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
32 description: Role name on which the service is applied
36 description: Parameters specific to the role
45 type: ./containers-common.yaml
49 description: Role data for the Iscsid API role.
54 service_config_settings: {}
55 # BEGIN DOCKER SETTINGS
63 - [ {get_param: DockerNamespace}, {get_param: DockerIscsidConfigImage} ]
65 /var/lib/kolla/config_files/iscsid.json:
66 command: /usr/sbin/iscsid -f
74 - [ {get_param: DockerNamespace}, {get_param: DockerIscsidImage} ]
80 - {get_attr: [ContainersCommon, volumes]}
82 - /var/lib/kolla/config_files/iscsid.json:/var/lib/kolla/config_files/config.json:ro
86 - /lib/modules:/lib/modules:ro
87 - /etc/iscsi:/etc/iscsi
89 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
91 - name: create /etc/iscsi
95 - name: stat /lib/systemd/system/iscsid.socket
96 stat: path=/lib/systemd/system/iscsid.socket
97 register: stat_iscsid_socket
98 - name: Stop and disable iscsid.socket service
99 service: name=iscsid.socket state=stopped enabled=no
100 when: stat_iscsid_socket.stat.exists
102 - name: stat /lib/systemd/system/iscsid.service
103 stat: path=/lib/systemd/system/iscsid.service
104 register: stat_iscsid_service
105 - name: Stop and disable iscsid service
107 service: name=iscsid state=stopped enabled=no
108 when: stat_iscsid_service.stat.exists
109 - name: stat /lib/systemd/system/iscsid.socket
110 stat: path=/lib/systemd/system/iscsid.socket
111 register: stat_iscsid_socket
112 - name: Stop and disable iscsid.socket service
114 service: name=iscsid.socket state=stopped enabled=no
115 when: stat_iscsid_socket.stat.exists
116 metadata_settings: {}