Revision e1e9e09b
Added by Ohad Levy about 14 years ago
- ID e1e9e09b99e5ff4c91aedcd824349d8e4b27506c
vendor/plugins/proxy/lib/proxy.rb | ||
---|---|---|
autosign.close
|
||
end
|
||
end
|
||
|
||
# Generic class for various puppet actions
|
||
class Puppet
|
||
extend GW::Logger
|
||
|
||
def self.run *hosts
|
||
puppetrun = "/usr/bin/puppetrun"
|
||
|
||
if File.exists? puppetrun
|
||
logger.info system("sudo puppetrun --host #{hosts.join(" --host ")}")
|
||
return true
|
||
else
|
||
logger.warn "#{puppetrun} was not found - aborting"
|
||
return false
|
||
end
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
fixes #84 - Add puppetrun support to web interface