aboutsummaryrefslogtreecommitdiffstats
path: root/modules/restrictshell/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/restrictshell/manifests/init.pp')
-rw-r--r--modules/restrictshell/manifests/init.pp29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/restrictshell/manifests/init.pp b/modules/restrictshell/manifests/init.pp
new file mode 100644
index 00000000..b10c7915
--- /dev/null
+++ b/modules/restrictshell/manifests/init.pp
@@ -0,0 +1,29 @@
+#TODO: add support for pkgsubmit
+class restrictshell {
+ $allow_svn = "0"
+ $allow_git = "0"
+ $allow_rsync = "0"
+ $allow_pkgsubmit = "0"
+
+ class allow_svn_git_pkgsubmit {
+ $allow_svn = "1"
+ $allow_git = "1"
+ $allow_pkgsubmit = "1"
+ }
+
+ file { '/usr/local/bin/sv_membersh.pl':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 755,
+ content => template("restrictshell/sv_membersh.pl"),
+ }
+
+ file { '/etc/membersh-conf.pl':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 755,
+ content => template("restrictshell/membersh-conf.pl"),
+ }
+}