lib/poolparty/base_packages/poolparty.rb in auser-poolparty-0.2.63 vs lib/poolparty/base_packages/poolparty.rb in auser-poolparty-0.2.64

- old
+ new

@@ -40,11 +40,11 @@ # has_runit_service("pm_node", "pm_node", File.join(File.dirname(__FILE__), "..", "templates/messenger/node/")) end has_exec(:name => "build_messenger", :command => ". /etc/profile && server-build-messenger") has_exec(:name => "start_node", :command => ". /etc/profile && server-start-node") - has_exec(:name => "update_hosts", :command => ". /etc/profile && server-update-hosts") + has_exec(:name => "update_hosts", :command => ". /etc/profile && server-update-hosts -n #{cloud.name}") # execute_on_node do has_cron(:name => "puppetd runner", :user => Base.user, :minute => "*/5") do requires get_gempackage("poolparty") command "/usr/bin/puppetrunner" @@ -74,14 +74,14 @@ requires get_gempackage("poolparty") command(PoolParty::Remote::RemoteInstance.puppet_master_rerun_command) end has_cron(:name => "Load handler", :user => Base.user, :minute => "*/4") do requires get_gempackage("poolparty") - command(". /etc/profile && cloud-handle-load") + command(". /etc/profile && cloud-handle-load -n #{cloud.name}") end has_cron(:name => "provisioning ensurer", :user => Base.user, :minute => "*/2") do requires get_gempackage("poolparty") - command ". /etc/profile && cloud-ensure-provisioning" + command ". /etc/profile && cloud-ensure-provisioning -n #{cloud.name}" end # has_runit_service("client_server", "pm_client", File.join(File.dirname(__FILE__), "..", "templates/messenger/client/")) # has_runit_service("master_server", "pm_master", File.join(File.dirname(__FILE__), "..", "templates/messenger/master/")) # TODO: Update this so it only runs when needed # has_customservice(:name => "start master server", :pattern => "/pm_master/", :bin => ". /etc/profile && server-start-master") \ No newline at end of file