Last active
October 21, 2015 13:49
-
-
Save greglarkin/8507e415f15f0a26ef29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class systest ( | |
$sysctl_hash = undef, | |
) { | |
if $sysctl_hash { | |
validate_hash($sysctl_hash) | |
$sysctl_hash.each |$sysctl_name, $sysctl_attrs| { | |
validate_hash($sysctl_attrs) | |
sysctl { $sysctl_name: | |
ensure => $sysctl_attrs['ensure'], | |
permanent => $sysctl_attrs['permanent'], | |
value => $sysctl_attrs['value'], | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class { 'systest': | |
sysctl_hash => { | |
'kernel.core_uses_pid' => { | |
'ensure' => 'present', | |
'permanent' => 'true', | |
'value' => '0', | |
}, | |
'fs.suid_dumpable' => { | |
'ensure' => 'present', | |
'permanent' => 'true', | |
'value' => '2', | |
} | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment