aboutsummaryrefslogtreecommitdiffstats
path: root/modules/restrictshell/manifests
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2010-11-02 17:55:53 +0000
committerNicolas Vigier <boklm@mageia.org>2010-11-02 17:55:53 +0000
commit3fa85d8cc6eb8206a708db2ce1229ef77f956734 (patch)
treebc722cc0cc66c64220668795f28fc9ba8593bf4d /modules/restrictshell/manifests
parent6c79ca599c43a2a512f3ee0368800f44264d5b44 (diff)
downloadpuppet-3fa85d8cc6eb8206a708db2ce1229ef77f956734.tar
puppet-3fa85d8cc6eb8206a708db2ce1229ef77f956734.tar.gz
puppet-3fa85d8cc6eb8206a708db2ce1229ef77f956734.tar.bz2
puppet-3fa85d8cc6eb8206a708db2ce1229ef77f956734.tar.xz
puppet-3fa85d8cc6eb8206a708db2ce1229ef77f956734.zip
add module to install shell to restrict access to only svn, git, and later package submit
Diffstat (limited to 'modules/restrictshell/manifests')
-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"),
+ }
+}