summaryrefslogtreecommitdiff
path: root/manifests/sftponly/centos.pp
blob: 12dd2d05eb8e1712bbbded05364a9dac971c5520 (plain)
1
2
3
4
5
6
7
8
9
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'],
  }
}