diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-04-22 14:14:35 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-04-24 13:50:50 +0000 |
commit | 9e7b9c4d0cc17e31f3c84c2d6ae9a95a5f97527c (patch) | |
tree | c7bee0e149f485100de46ad179c296dc699be01d /openstack/usr/lib/systemd/system/iscsi-setup.service | |
parent | dcb95e689f2f61a61ef50822f8cb0e9543c8005d (diff) | |
download | definitions-9e7b9c4d0cc17e31f3c84c2d6ae9a95a5f97527c.tar.gz |
Configure and start an iSCSI initiator on all required machines
The OpenStack Ironic Conductor service requires that an iSCSI initiator
is running on the same local machine. This commit configures and sets
an iSCSI initiator to run on the controller node on a two-node and
three-node OpenStack system. For a one-node system, this service was
already configured as it is required by OpenStack Cinder.
Change-Id: I46291d9cd1a31e3ff91888401d45ab0dc67e3677
Diffstat (limited to 'openstack/usr/lib/systemd/system/iscsi-setup.service')
-rw-r--r-- | openstack/usr/lib/systemd/system/iscsi-setup.service | 12 |
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 |