diff options
-rw-r--r-- | modules/dashboard/manifests/init.pp | 22 |
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/", + } + } +} |