/[adm]/puppet/modules/restrictshell/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/restrictshell/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2650 by boklm, Wed Aug 17 14:20:05 2011 UTC revision 2651 by misc, Mon Mar 19 21:55:05 2012 UTC
# Line 1  Line 1 
1  class restrictshell {  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  
   
   
 }  

Legend:
Removed from v.2650  
changed lines
  Added in v.2651

  ViewVC Help
Powered by ViewVC 1.1.28