[node-patches] Change in ovirt-node[master]: installer: Remove eventual password variables

fabiand at redhat.com fabiand at redhat.com
Thu Dec 18 14:40:45 UTC 2014


Fabian Deutsch has uploaded a new change for review.

Change subject: installer: Remove eventual password variables
......................................................................

installer: Remove eventual password variables

A greedy approach to make sure that no passwords are kept in the central
configuration file.

Change-Id: I39c8af11b633e17902cd3b98fcea4606cad0edd0
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1062541
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/81/36281/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index 9fcbb3c..a82a558 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -1209,6 +1209,13 @@
         breakpoint "pre-installer"
         debugmode && AIARGS="--debug"
         /usr/libexec/ovirt-auto-install $AIARGS
+
+        # Greedy approach to remove eventual password variables
+        # after auto installation. Done here to workaround nasty
+        # caching of OVIRT_VARS in .py files.
+        # https://bugzilla.redhat.com/show_bug.cgi?id=1062541
+        sed -i "/.*PASSWORD.*=/ d" /etc/default/ovirt
+
         rc=$?
         breakpoint "post-installer"
         # Handle Log file


-- 
To view, visit http://gerrit.ovirt.org/36281
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I39c8af11b633e17902cd3b98fcea4606cad0edd0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list