diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/subsystem/sysctl/entry.pp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/manifests/subsystem/sysctl/entry.pp b/manifests/subsystem/sysctl/entry.pp index ddd6020..93230d5 100644 --- a/manifests/subsystem/sysctl/entry.pp +++ b/manifests/subsystem/sysctl/entry.pp @@ -1,9 +1,17 @@ # Simple sysctl definition define nodo::subsystem::sysctl::entry( $ensure = present, + $order = '', $value ) { - file { "/etc/sysctl.d/${name}.conf": + if $order != '' { + $prefix = "${order}-" + } + else { + $prefix = '' + } + + file { "/etc/sysctl.d/${prefix}${name}.conf": owner => "root", group => "root", mode => 0644, @@ -13,7 +21,7 @@ define nodo::subsystem::sysctl::entry( exec { "sysctl ${name}=${value}": user => root, - subscribe => File["/etc/sysctl.d/${name}.conf"], + subscribe => File["/etc/sysctl.d/${prefix}${name}.conf"], refreshonly => true, } } |