Change in vdsm[master]: iscsicred: Install the iscsi-cred directory

nsoffer at redhat.com nsoffer at redhat.com
Tue Jul 7 00:16:27 UTC 2015


Nir Soffer has uploaded a new change for review.

Change subject: iscsicred: Install the iscsi-cred directory
......................................................................

iscsicred: Install the iscsi-cred directory

This directory will be populated with iscsi target credential files by
the system administrator.

Change-Id: Iea9359291a4bea9fa0d93d52f44f1e0af5235a4c
Signed-off-by: Nir Soffer <nsoffer at redhat.com>
---
M debian/vdsm.dirs
M debian/vdsm.postinst
M vdsm.spec.in
M vdsm/Makefile.am
4 files changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/57/43257/1

diff --git a/debian/vdsm.dirs b/debian/vdsm.dirs
index ee2bccd..3fd61f5 100644
--- a/debian/vdsm.dirs
+++ b/debian/vdsm.dirs
@@ -5,6 +5,7 @@
 etc/pki/vdsm/libvirt-spice
 etc/vdsm
 etc/vdsm/mom.d
+etc/vdsm/iscsi-cred
 rhev
 rhev/data-center
 rhev/data-center/hsm-tasks
diff --git a/debian/vdsm.postinst b/debian/vdsm.postinst
index 5458974..88644cb 100644
--- a/debian/vdsm.postinst
+++ b/debian/vdsm.postinst
@@ -66,6 +66,7 @@
         $INSTALLDIR /var/run/vdsm/trackedInterfaces
         $INSTALLDIR /var/log/vdsm
         $INSTALLDIR /var/log/vdsm/backup
+        install -dDm 0700 /etc/vdsm/iscsi-cred
         chmod g+x /var/lib/libvirt/qemu
         chmod 644 /etc/iscsi/initiatorname.iscsi
 
diff --git a/vdsm.spec.in b/vdsm.spec.in
index de15c12..733a6e9 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -805,6 +805,8 @@
 %dir %{_libexecdir}/%{vdsm_name}
 %dir %{_sysconfdir}/%{vdsm_name}
 %dir %{_sysconfdir}/%{vdsm_name}/mom.d
+%dir %{_sysconfdir}/%{vdsm_name}/iscsi-cred
+%attr(0700, root, root) %{_sysconfdir}/%{vdsm_name}/iscsi-cred
 %dir %{_datadir}/%{vdsm_name}
 %dir %{_datadir}/%{vdsm_name}/network
 %dir %{_datadir}/%{vdsm_name}/network/configurators
diff --git a/vdsm/Makefile.am b/vdsm/Makefile.am
index 691fb8b..866ee6b 100644
--- a/vdsm/Makefile.am
+++ b/vdsm/Makefile.am
@@ -158,6 +158,7 @@
 	$(MKDIR_P) $(DESTDIR)$(vdsmlibdir)/upgrade
 	$(MKDIR_P) $(DESTDIR)$(vdsmbackupdir)
 	$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/libvirt/qemu/channels
+	$(MKDIR_P) $(DESTDIR)$(vdsmconfdir)/iscsi-cred
 
 uninstall-local: \
 		uninstall-data-bonding-defaults \


-- 
To view, visit https://gerrit.ovirt.org/43257
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iea9359291a4bea9fa0d93d52f44f1e0af5235a4c
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer at redhat.com>


More information about the vdsm-patches mailing list