From 3fa85d8cc6eb8206a708db2ce1229ef77f956734 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 2 Nov 2010 17:55:53 +0000 Subject: add module to install shell to restrict access to only svn, git, and later package submit --- modules/restrictshell/manifests/init.pp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 modules/restrictshell/manifests/init.pp (limited to 'modules/restrictshell/manifests') 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"), + } +} -- cgit v1.2.1