summaryrefslogtreecommitdiff
path: root/openstack/usr/lib/systemd/system/iscsi-setup.service
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-28 13:10:58 +0000
committerMorph (on behalf of Adam Coldrick) <adam.coldrick@codethink.co.uk>2015-04-28 13:10:58 +0000
commitf398e6501b400f6c32fb4d1ba920ac41d09a9795 (patch)
tree88183ce9240a52d78ce7784e18ca4d5a001c31a5 /openstack/usr/lib/systemd/system/iscsi-setup.service
parent888b2af4d841cf09fc8b8565a35f3484369f8aaa (diff)
downloaddefinitions-baserock/6453f312359f4317803ef7f14b58d21f/aff0f41a103e4d3cb83aaf9ed88359b2.tar.gz
System branch: master
Diffstat (limited to 'openstack/usr/lib/systemd/system/iscsi-setup.service')
-rw-r--r--openstack/usr/lib/systemd/system/iscsi-setup.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/openstack/usr/lib/systemd/system/iscsi-setup.service b/openstack/usr/lib/systemd/system/iscsi-setup.service
new file mode 100644
index 00000000..c9e5ee59
--- /dev/null
+++ b/openstack/usr/lib/systemd/system/iscsi-setup.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Run iscsi-setup Ansible scripts
+Before=iscsid.service target.service
+Wants= iscsid.service target.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/ansible-playbook -v -M /usr/share/ansible/ansible-openstack-modules -i /usr/share/openstack/hosts /usr/share/openstack/iscsi.yml
+
+[Install]
+WantedBy=multi-user.target