This file contains hidden or 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
$maxmem = 1024*0.6*$memorysize_mb | |
augeas { "sysctl_conf": | |
context => "/files/etc/sysctl.conf", | |
changes => [ | |
"set kernel.shmmax ${maxmem}" | |
], | |
} | |
exec { "sysctl_conf_reload": |
This file contains hidden or 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
# crm_support: true/nil | |
# Whether there is Pacemaker installed | |
Facter.add('crm_support') do | |
confine :kernel => :linux | |
setcode do | |
not Facter::Util::Resolution.exec('which crm_resource').empty? | |
end | |
end |
This file contains hidden or 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
(* | |
Module: FreeBSD Update | |
parses /etc/freebsd-update.conf | |
Author: Mathieu Arnold <[email protected]> | |
About: Licence | |
This file is licensed under the BSD License. | |
About: Lens Usage |