blob: 77bb0cac6ad118b21108a89c16fd13df1b31b1fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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'],
notify => Service['apache'],
}
}
|