summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2010-08-06 17:16:58 +0000
committerBill Peck <bpeck@redhat.com>2010-08-06 17:16:58 +0000
commit3959e02eaf3786ec664f2aa937ae944031667a1f (patch)
tree473a619da27115be29ec4e01b415e286e3cb947b
parentb11a6de01242b1ff5c0cdf00de3942b1ab561f51 (diff)
configure and start beaker-proxy and beaker-watchdogrh-tests-distribution-beaker-setup-1_1-47
-rwxr-xr-xTasks/distribution/beaker/setup/runtest.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/Tasks/distribution/beaker/setup/runtest.sh b/Tasks/distribution/beaker/setup/runtest.sh
index 2586f02..6cba040 100755
--- a/Tasks/distribution/beaker/setup/runtest.sh
+++ b/Tasks/distribution/beaker/setup/runtest.sh
@@ -121,6 +121,16 @@ function estatus_fail()
fi
}
+function generate_proxy_cfg()
+{
+ cat << __EOF__ > /etc/beaker/proxy.conf
+HUB_URL = "https://$SERVER/bkr/"
+AUTH_METHOD = "password"
+USERNAME = "host/$HOSTNAME"
+PASSWORD = "testing"
+__EOF__
+}
+
function generate_beaker_cfg()
{
cat << __EOF__ > /etc/beaker/server.cfg
@@ -294,7 +304,7 @@ function Inventory()
estatus_fail "**** Failed to start beakerd ****"
# Add the lab controller
./add_labcontroller.py -l $CLIENT
- ./add_user.py -u host/$CLIENT
+ ./add_user.py -u host/$CLIENT -p testing
estatus_fail "**** Failed to add lab controller ****"
rhts-sync-set -s SERVERREADY
rhts-sync-block -s DONE -s ABORT $CLIENT
@@ -325,6 +335,8 @@ function LabController()
setsebool -P httpd_can_network_connect true
semanage fcontext -a -t public_content_t "/var/lib/tftpboot/.*"
semanage fcontext -a -t public_content_t "/var/www/cobbler/images/.*"
+ # Configure beaker-proxy config
+ generate_proxy_cfg
# Turn on wsgi
perl -pi -e 's|^#LoadModule wsgi_module modules/mod_wsgi.so|LoadModule wsgi_module modules/mod_wsgi.so|g' /etc/httpd/conf.d/wsgi.conf
service httpd restart
@@ -333,6 +345,8 @@ function LabController()
cobbler get-loaders
#service autofs start
service iptables stop
+ service beaker-proxy start
+ service beaker-watchdog start
rhts-sync-set -s READY
abort=$(rhts-sync-block -s SERVERREADY -s ABORT $SERVER)
echo "abort=$abort"