1 heat_template_version: pike
4 OpenStack containerized Iscsid service
9 default: 'tripleoupstream'
13 default: 'centos-binary-iscsid:latest'
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
28 description: Role name on which the service is applied
32 description: Parameters specific to the role
41 type: ./containers-common.yaml
45 description: Role data for the Iscsid API role.
50 service_config_settings: {}
51 # BEGIN DOCKER SETTINGS
56 config_image: &iscsid_image
59 - [ {get_param: DockerNamespace}, {get_param: DockerIscsidImage} ]
61 /var/lib/kolla/config_files/iscsid.json:
62 command: /usr/sbin/iscsid -f
73 - {get_attr: [ContainersCommon, volumes]}
75 - /var/lib/kolla/config_files/iscsid.json:/var/lib/kolla/config_files/config.json:ro
79 - /lib/modules:/lib/modules:ro
80 - /etc/iscsi:/etc/iscsi
82 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
84 - name: create /etc/iscsi
88 - name: stat /lib/systemd/system/iscsid.socket
89 stat: path=/lib/systemd/system/iscsid.socket
90 register: stat_iscsid_socket
91 - name: Stop and disable iscsid.socket service
92 service: name=iscsid.socket state=stopped enabled=no
93 when: stat_iscsid_socket.stat.exists
95 - 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
103 stat: path=/lib/systemd/system/iscsid.socket
104 register: stat_iscsid_socket
105 - name: Stop and disable iscsid.socket service
107 service: name=iscsid.socket state=stopped enabled=no
108 when: stat_iscsid_socket.stat.exists
109 metadata_settings: {}