Defined Type: pf::authpf::allow
- Defined in:
- manifests/authpf/allow.pp
Overview
Explicitly allow a user access.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/authpf/allow.pp', line 12
define pf::authpf::allow (
String $user = $title,
) {
if ! defined(Class['::pf::authpf']) {
fail('You must include the pf::authpf base class before using any pf::authpf defined resources')
}
# The file should only exist if there's at least one allow rule
ensure_resource('concat', "${::pf::authpf::conf_dir}/authpf.allow", {
owner => 0,
group => 0,
mode => '0644',
})
::concat::fragment { "${::pf::authpf::conf_dir}/authpf.allow ${user}":
content => "${user}\n",
target => "${::pf::authpf::conf_dir}/authpf.allow",
}
}
|