[node-patches] Change in ovirt-node[master]: save necessary config files in finish_install()

jboggs at redhat.com jboggs at redhat.com
Wed Jul 31 19:04:25 UTC 2013


Joey Boggs has uploaded a new change for review.

Change subject: save necessary config files in finish_install()
......................................................................

save necessary config files in finish_install()

Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=988986
Signed-off-by: Joey Boggs <jboggs at redhat.com>
Change-Id: I3e625c68c639f204093c5e9bf70fdb26ccb5ac25
---
M src/ovirtnode/ovirtfunctions.py
1 file changed, 16 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/47/17547/1

diff --git a/src/ovirtnode/ovirtfunctions.py b/src/ovirtnode/ovirtfunctions.py
index 6d19fb8..7b0d41e 100644
--- a/src/ovirtnode/ovirtfunctions.py
+++ b/src/ovirtnode/ovirtfunctions.py
@@ -63,6 +63,20 @@
 PRODUCT_VERSION = aug.get("/files/etc/default/version/VERSION")
 PRODUCT_RELEASE = aug.get("/files/etc/default/version/RELEASE")
 
+OVIRT_CONFIG_FILES = [ "/etc/rsyslog.conf",
+                       "/etc/libvirt/libvirtd.conf",
+                       "/etc/libvirt/passwd.db",
+                       "/etc/passwd",
+                       "/etc/shadow",
+                       "/etc/default/ovirt",
+                       "/etc/sysconfig/network",
+                       "/etc/collectd.conf",
+                       "/etc/libvirt/qemu/networks",
+                       "/etc/ssh/sshd_config",
+                       "/etc/pki",
+                       "/etc/logrotate.d/ovirt-node",
+                       "/var/lib/random-seed" ]
+
 OVIRT_VARS = {}
 # Parse all OVIRT_* variables
 
@@ -1091,8 +1105,8 @@
     for f in ["/etc/ssh/ssh_host%s_key" % t for t in ["", "_dsa", "_rsa"]]:
         ovirt_store_config(f)
         ovirt_store_config("%s.pub" % f)
-
-    ovirt_store_config("/var/lib/random-seed")
+    for f in OVIRT_CONFIG_FILES:
+        ovirt_store_config(f)
     return True
 
 def is_valid_ipv4(ip_address):


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3e625c68c639f204093c5e9bf70fdb26ccb5ac25
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list