summaryrefslogtreecommitdiff
path: root/manifests/sftponly
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-06-21 19:02:00 +0200
committermh <mh@immerda.ch>2009-06-21 19:02:00 +0200
commitf3b0d1846cf035cbf133e37e22bc03c15c853b53 (patch)
tree5ddee377871dc792f8f4c975441002c394f6805f /manifests/sftponly
parentda3b4bc8a4355f8fa1860f0b8fd3735fab52b54e (diff)
added apache sftponly stuff
Diffstat (limited to 'manifests/sftponly')
-rw-r--r--manifests/sftponly/centos.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/sftponly/centos.pp b/manifests/sftponly/centos.pp
new file mode 100644
index 0000000..12dd2d0
--- /dev/null
+++ b/manifests/sftponly/centos.pp
@@ -0,0 +1,10 @@
+class apache::sftponly::centos {
+ augeas{"add_apache_to_group_sftponly":
+ context => "/files/etc/group",
+ changes => [ "ins user after sftponly/user[last()]",
+ "set sftponly/user[last()] apache" ],
+ onlyif => "match sftponly/*[../user='apache'] size == 0",
+ require => Package['apache'],
+ notify => Service['apache'],
+ }
+}