aboutsummaryrefslogtreecommitdiffstats
path: root/modules/dashboard/manifests
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-06-20 19:50:12 +0000
committerNicolas Vigier <boklm@mageia.org>2011-06-20 19:50:12 +0000
commitb5201df147d3aba0801a9ab43657ec418e888104 (patch)
tree9d7db9bd71f4657fca028af4563a0092d2bf289a /modules/dashboard/manifests
parentb2ed0651b97c46b5a6654efc5bb6080a4f8231d9 (diff)
downloadpuppet-b5201df147d3aba0801a9ab43657ec418e888104.tar
puppet-b5201df147d3aba0801a9ab43657ec418e888104.tar.gz
puppet-b5201df147d3aba0801a9ab43657ec418e888104.tar.bz2
puppet-b5201df147d3aba0801a9ab43657ec418e888104.tar.xz
puppet-b5201df147d3aba0801a9ab43657ec418e888104.zip
add script to generate dashboard reports
Diffstat (limited to 'modules/dashboard/manifests')
-rw-r--r--modules/dashboard/manifests/init.pp24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/dashboard/manifests/init.pp b/modules/dashboard/manifests/init.pp
index 5ff01a7d..5901f5ab 100644
--- a/modules/dashboard/manifests/init.pp
+++ b/modules/dashboard/manifests/init.pp
@@ -3,6 +3,8 @@ class dashboard {
$dashboard_login = "dashboard"
$dashboard_home_dir = "/var/lib/$dashboard_login"
$dashboard_dir = "$dashboard_home_dir/dashboard"
+ $dashboard_bindir = "$dashboard_home_dir/bin"
+ $dashboard_wwwdir = "/var/www/vhosts/dashboard.$domain"
}
class base inherits variable {
@@ -21,5 +23,27 @@ class dashboard {
package { "php-cli":
ensure => 'installed',
}
+
+ file { $dashboard_www:
+ ensure => directory,
+ owner => $dashboard_login,
+ group => $dashboard_login,
+ mode => 755,
+ }
+
+ file { $dashboard_bindir:
+ ensure => directory,
+ owner => root,
+ group => root,
+ mode => 755,
+ }
+
+ file { "$dashboard_bindir/make_report":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 755,
+ content => template('dashboard/make_report'),
+ }
}
}