diff options
Diffstat (limited to 'manifests/allowed_host.pp')
-rw-r--r-- | manifests/allowed_host.pp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/allowed_host.pp b/manifests/allowed_host.pp new file mode 100644 index 0000000..1c29fbb --- /dev/null +++ b/manifests/allowed_host.pp @@ -0,0 +1,13 @@ +define denyhosts::allowed_host( + $ipaddress = $ip, + $ensure = 'present' +){ + include ::denyhosts + line{"denyhosts_allowed_host_${name}": + file => '/var/lib/denyhosts/allowed-hosts', + line => $ip, + ensure => $ensure, + require => File['/var/lib/denyhosts/allowed-hosts'], + notify => Service['denyhosts'], + } +} |