summaryrefslogtreecommitdiff
path: root/manifests/sftponly
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-12-15 17:29:45 +0100
committermh <mh@immerda.ch>2012-12-15 17:29:45 +0100
commit3f0da2ac4651340a459194e450dbe8be6b1b8cab (patch)
tree713e0fdada1802baa50f09859703b825f0093691 /manifests/sftponly
parent943744b559007d994f134f675287a241cafe3f9c (diff)
use common define
Diffstat (limited to 'manifests/sftponly')
-rw-r--r--manifests/sftponly/centos.pp11
1 files changed, 4 insertions, 7 deletions
diff --git a/manifests/sftponly/centos.pp b/manifests/sftponly/centos.pp
index 6817033..0f2a43d 100644
--- a/manifests/sftponly/centos.pp
+++ b/manifests/sftponly/centos.pp
@@ -2,12 +2,9 @@
# user for access
class apache::sftponly::centos {
require user::groups::sftponly
- 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'], Group['sftponly'] ],
- notify => Service['apache'],
+ user::groups::manage_user{'apache':
+ group => 'sftponly',
+ require => Package['apache'],
+ notify => Service['apache'],
}
}