diff --git a/manifests/init.pp b/manifests/init.pp index f0e3b6d..70a1945 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -6,6 +6,8 @@ owner => 'root', group => 'root', mode => '0755', + recurse => true, + purge => true, } Sysctl::Setting <| |> diff --git a/manifests/setting.pp b/manifests/setting.pp index 39bd480..da37495 100644 --- a/manifests/setting.pp +++ b/manifests/setting.pp @@ -8,7 +8,7 @@ ) { include sysctl - file { "/etc/sysctl.d/${key}": + file { "/etc/sysctl.d/${key}.conf": ensure => file, content => "${key}=${value}", }