aboutsummaryrefslogtreecommitdiffstats
path: root/modules/dashboard
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-06-20 15:37:18 +0000
committerNicolas Vigier <boklm@mageia.org>2011-06-20 15:37:18 +0000
commit7765274e9cf3a827db25de47619138282077ec3b (patch)
tree905f5d62dc8a33396826b9f8cb22a747b00b83c9 /modules/dashboard
parent17020df433334f1e7924358af871138c325d3b89 (diff)
downloadpuppet-7765274e9cf3a827db25de47619138282077ec3b.tar
puppet-7765274e9cf3a827db25de47619138282077ec3b.tar.gz
puppet-7765274e9cf3a827db25de47619138282077ec3b.tar.bz2
puppet-7765274e9cf3a827db25de47619138282077ec3b.tar.xz
puppet-7765274e9cf3a827db25de47619138282077ec3b.zip
add dashboard module
Diffstat (limited to 'modules/dashboard')
-rw-r--r--modules/dashboard/manifests/init.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/dashboard/manifests/init.pp b/modules/dashboard/manifests/init.pp
new file mode 100644
index 00000000..8e89bba1
--- /dev/null
+++ b/modules/dashboard/manifests/init.pp
@@ -0,0 +1,22 @@
+class dashboard {
+ class variable {
+ $dashboard_login = "dashboard"
+ $dashboard_home_dir = "/var/lib/$dashboard_login"
+ $dashboard_dir = "$dashboard_home_dir/dashboard"
+ }
+
+ class base inherits variable {
+ user {"$dashboard_login":
+ ensure => present,
+ comment => "dashboard system user",
+ managehome => true,
+ home => $dashboard_home_dir,
+ gid => $dashboard_login,
+ shell => "/bin/bash",
+ }
+
+ subversion::snapshot { $dashboard_dir:
+ source => "svn://svn.$domain/soft/dashboard/",
+ }
+ }
+}