lib/poolparty/base_packages/poolparty.rb in auser-poolparty-0.2.8 vs lib/poolparty/base_packages/poolparty.rb in auser-poolparty-0.2.9

- old
+ new

@@ -23,11 +23,13 @@ (self.respond_to?(:list_of_running_instances) ? self : parent).list_of_running_instances.each do |ri| has_host({:name => "#{ri.name}", :ip => ri.ip }) end # -n #{parent.name} - has_cron({:command => ". /etc/profile && which cloud-maintain | /bin/sh"}) do - minute "*/2" + execute_if("$hostname", "master") do + has_cron({:command => ". /etc/profile && which cloud-maintain | /bin/sh"}) do + minute "*/5" + end end # has_host(:name => "puppet", :ip => (self.respond_to?(:master) ? self : parent).master.ip) end end \ No newline at end of file