summaryrefslogtreecommitdiff
path: root/manifests
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
parentda3b4bc8a4355f8fa1860f0b8fd3735fab52b54e (diff)
added apache sftponly stuff
Diffstat (limited to 'manifests')
-rw-r--r--manifests/sftponly.pp5
-rw-r--r--manifests/sftponly/centos.pp10
2 files changed, 15 insertions, 0 deletions
diff --git a/manifests/sftponly.pp b/manifests/sftponly.pp
new file mode 100644
index 0000000..1f9793d
--- /dev/null
+++ b/manifests/sftponly.pp
@@ -0,0 +1,5 @@
+class apache::sftponly {
+ case $operatingsystem {
+ centos: { include apache::sftponly::centos }
+ }
+}
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'],
+ }
+}