diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-19 21:55:05 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-19 21:55:05 +0000 |
commit | 31d7c82f9f4f793ddd0c6fc8279dbf36840a4659 (patch) | |
tree | 2d8059367d37e372ce8b25a68afc61fd692cc39b /modules/restrictshell/manifests/init.pp | |
parent | 0d2c2d30b6b4927174b419143e3ef24ddcc10573 (diff) | |
download | puppet-31d7c82f9f4f793ddd0c6fc8279dbf36840a4659.tar puppet-31d7c82f9f4f793ddd0c6fc8279dbf36840a4659.tar.gz puppet-31d7c82f9f4f793ddd0c6fc8279dbf36840a4659.tar.bz2 puppet-31d7c82f9f4f793ddd0c6fc8279dbf36840a4659.tar.xz puppet-31d7c82f9f4f793ddd0c6fc8279dbf36840a4659.zip |
split the module in several file, and clean it
Diffstat (limited to 'modules/restrictshell/manifests/init.pp')
-rw-r--r-- | modules/restrictshell/manifests/init.pp | 77 |
1 files changed, 1 insertions, 76 deletions
diff --git a/modules/restrictshell/manifests/init.pp b/modules/restrictshell/manifests/init.pp index bf1dfd04..c27f26dc 100644 --- a/modules/restrictshell/manifests/init.pp +++ b/modules/restrictshell/manifests/init.pp @@ -1,76 +1 @@ -class restrictshell { - class shell { - file {"/etc/membersh-conf.d": - ensure => directory, - owner => root, - group => root, - mode => 755, - } - - 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"), - } - } - - define allow { - include shell - file { "/etc/membersh-conf.d/allow_$name.pl": - ensure => "present", - owner => root, - group => root, - mode => 755, - content => "\$use_$name = 1;\n", - } - } - - # yes, we could directly use the allow, but this is - # a nicer syntax - class allow_git { - allow{ "git": } - } - - class allow_rsync { - allow{ "rsync": } - } - - class allow_pkgsubmit { - allow{ "pkgsubmit": } - } - - class allow_svn { - allow{ "svn": } - } - - class allow_scp { - allow{ "scp": } - } - - class allow_sftp { - allow{ "sftp": } - } - - class allow_maintdb { - allow{ "maintdb": } - } - - class allow_upload_bin { - allow{ "upload_bin": } - } - - # technically, we could add cvs too - # but I doubt we will use it one day - - -} +class restrictshell { } |