this should be removed at some point and a verification
that the service is actually up added to the conductor init script
---
recipes/aeolus_recipe/manifests/conductor.pp | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/recipes/aeolus_recipe/manifests/conductor.pp
b/recipes/aeolus_recipe/manifests/conductor.pp
index fe9d124..e7a20f5 100644
--- a/recipes/aeolus_recipe/manifests/conductor.pp
+++ b/recipes/aeolus_recipe/manifests/conductor.pp
@@ -51,6 +51,13 @@ class aeolus::conductor inherits aeolus {
Rails::Migrate::Db[migrate_aeolus_database],
Service['condor', 'httpd']] }
+ # XXX ugly hack but iwhd might take some time to come up
+ exec{"conductor_startup":
+ command => "/bin/sleep 2",
+ unless => '/usr/bin/curl
http://localhost/conductor';,
+ logoutput => true,
+ require => Service['aeolus-conductor']}
+
service{ 'aeolus-connector':
ensure => 'running',
enable => true,
@@ -269,7 +276,7 @@ define aeolus::conductor::login($user,$password){
-d commit=submit \
-c /tmp/aeolus-${user}.cookie",
onlyif => "/usr/bin/test ! -f /tmp/aeolus-${user}.cookie ||
\"\" == \"`curl -X GET
http://localhost/conductor -b
/tmp/aeolus-${user}.cookie -i --silent | grep 'HTTP/1.1 200'`\"",
- require => Service['aeolus-conductor']}
+ require => Exec['conductor_startup']}
}
define aeolus::conductor::logout($user){
--
1.7.2.3