summaryrefslogtreecommitdiff
path: root/manifests/sftponly/centos.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/sftponly/centos.pp')
-rw-r--r--manifests/sftponly/centos.pp12
1 files changed, 6 insertions, 6 deletions
diff --git a/manifests/sftponly/centos.pp b/manifests/sftponly/centos.pp
index 12dd2d0..0f2a43d 100644
--- a/manifests/sftponly/centos.pp
+++ b/manifests/sftponly/centos.pp
@@ -1,10 +1,10 @@
+# manage sftponly group and apache
+# user for access
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 user::groups::sftponly
+ user::groups::manage_user{'apache':
+ group => 'sftponly',
require => Package['apache'],
- notify => Service['apache'],
+ notify => Service['apache'],
}
}