Project

General

Profile

Download (747 Bytes) Statistics
| Branch: | Tag: | Revision:
# please follow the instructions at: http://theforeman.org/wiki/foreman/Puppet_Reports

class foreman::reports {
# directory where your puppet is installed
$puppet_basedir = $operatingsystem ? {
default => "/usr/lib/ruby/1.8/puppet",
"CentOs" => "/usr/lib/ruby/site_ruby/1.8/puppet",
"RedHat" => "/usr/lib/ruby/site_ruby/1.8/puppet",
}
# foreman reporter
file {"${puppet_basedir}/reports/foreman.rb":
mode => 444,
owner => puppet, group => puppet,
source => "puppet:///foreman/foreman-report.rb",
}

cron{"expire_old_reports":
command => "rake reports:expire",
environment => "RAILS_ENV=production",
cwd => $foreman_dir,
user => $foreman_user,
minute => "30",
hour => "7",
}

}
(7-7/8)