summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2010-10-22 12:08:15 -0400
committerBill Peck <bpeck@redhat.com>2010-10-22 12:08:15 -0400
commit56a5bfa4a216edba9c20c816e36637e8db41d5c9 (patch)
treed434cab3f31ac7abf76d4faba07643075cd18ba2
parentbbc28a2d4712a5b1fa96dd38b7ebce52b06e9fc6 (diff)
update setup task to configure rsyncbeaker-distribution-beaker-setup-1_1-56
-rwxr-xr-xTasks/distribution/beaker/setup/runtest.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/Tasks/distribution/beaker/setup/runtest.sh b/Tasks/distribution/beaker/setup/runtest.sh
index eaea597..e6c6731 100755
--- a/Tasks/distribution/beaker/setup/runtest.sh
+++ b/Tasks/distribution/beaker/setup/runtest.sh
@@ -121,6 +121,19 @@ function estatus_fail()
fi
}
+function generate_rsync_cfg()
+{
+ mkdir -p /var/www/html/beaker-logs
+ cat <<__EOF__ > /etc/rsyncd.conf
+use chroot = false
+
+[beaker-logs]
+ path = /var/www/html/beaker-logs
+ comment = beaker logs
+ read only = false
+__EOF__
+}
+
function generate_proxy_cfg()
{
cat << __EOF__ > /etc/beaker/proxy.conf
@@ -129,6 +142,10 @@ AUTH_METHOD = "password"
USERNAME = "host/$HOSTNAME"
PASSWORD = "testing"
CACHE = True
+ARCHIVE_SERVER = "http://$SERVER/beaker-logs"
+ARCHIVE_BASEPATH = "/var/www/html/beaker"
+ARCHIVE_RSYNC = "rsync://$SERVER/beaker-logs"
+RSYNC_FLAGS = ""
__EOF__
}
@@ -307,6 +324,8 @@ function Inventory()
./add_user.py -u host/$CLIENT -p testing
done
estatus_fail "**** Failed to add lab controller ****"
+ generate_rsync_cfg
+ chkconfig rsync on
rhts-sync-set -s SERVERREADY
rhts-sync-block -s DONE -s ABORT $CLIENTS
result_pass