1 heat_template_version: pike
4 OpenStack containerized Iscsid service
10 DockerIscsidConfigImage:
11 description: The container image to use for the iscsid config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
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.
26 description: Role name on which the service is applied
30 description: Parameters specific to the role
39 type: ./containers-common.yaml
43 description: Role data for the Iscsid API role.
48 service_config_settings: {}
49 # BEGIN DOCKER SETTINGS
54 config_image: {get_param: DockerIscsidConfigImage}
56 /var/lib/kolla/config_files/iscsid.json:
57 command: /usr/sbin/iscsid -f
62 image: {get_param: DockerIscsidImage}
68 - {get_attr: [ContainersCommon, volumes]}
70 - /var/lib/kolla/config_files/iscsid.json:/var/lib/kolla/config_files/config.json:ro
74 - /lib/modules:/lib/modules:ro
75 - /etc/iscsi:/etc/iscsi
77 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
79 - name: create /etc/iscsi
83 - name: stat /lib/systemd/system/iscsid.socket
84 stat: path=/lib/systemd/system/iscsid.socket
85 register: stat_iscsid_socket
86 - name: Stop and disable iscsid.socket service
87 service: name=iscsid.socket state=stopped enabled=no
88 when: stat_iscsid_socket.stat.exists
90 - name: stat /lib/systemd/system/iscsid.service
92 stat: path=/lib/systemd/system/iscsid.service
93 register: stat_iscsid_service
94 - name: Stop and disable iscsid service
96 service: name=iscsid state=stopped enabled=no
97 when: stat_iscsid_service.stat.exists
98 - 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
104 service: name=iscsid.socket state=stopped enabled=no
105 when: stat_iscsid_socket.stat.exists
106 metadata_settings: {}