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: Dictionary packing service data
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.
30 description: Role name on which the service is applied
34 description: Parameters specific to the role
43 type: ./containers-common.yaml
47 description: Role data for the Iscsid API role.
52 service_config_settings: {}
53 # BEGIN DOCKER SETTINGS
58 config_image: {get_param: DockerIscsidConfigImage}
60 /var/lib/kolla/config_files/iscsid.json:
61 command: /usr/sbin/iscsid -f
66 image: {get_param: DockerIscsidImage}
72 - {get_attr: [ContainersCommon, volumes]}
74 - /var/lib/kolla/config_files/iscsid.json:/var/lib/kolla/config_files/config.json:ro
78 - /lib/modules:/lib/modules:ro
79 - /etc/iscsi:/etc/iscsi
81 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
83 - name: create /etc/iscsi
87 - name: stat /lib/systemd/system/iscsid.socket
88 stat: path=/lib/systemd/system/iscsid.socket
89 register: stat_iscsid_socket
90 - name: Stop and disable iscsid.socket service
91 service: name=iscsid.socket state=stopped enabled=no
92 when: stat_iscsid_socket.stat.exists
94 - name: stat /lib/systemd/system/iscsid.service
96 stat: path=/lib/systemd/system/iscsid.service
97 register: stat_iscsid_service
98 - name: Stop and disable iscsid service
100 service: name=iscsid state=stopped enabled=no
101 when: stat_iscsid_service.stat.exists
102 - name: stat /lib/systemd/system/iscsid.socket
104 stat: path=/lib/systemd/system/iscsid.socket
105 register: stat_iscsid_socket
106 - name: Stop and disable iscsid.socket service
108 service: name=iscsid.socket state=stopped enabled=no
109 when: stat_iscsid_socket.stat.exists
110 metadata_settings: {}