Skip to content

Instantly share code, notes, and snippets.

View raphink's full-sized avatar
🐝
eBPF everything!

Raphaël Pinson raphink

🐝
eBPF everything!
View GitHub Profile
@raphink
raphink / mem.pp
Last active August 29, 2015 13:57
$maxmem = 1024*0.6*$memorysize_mb
augeas { "sysctl_conf":
context => "/files/etc/sysctl.conf",
changes => [
"set kernel.shmmax ${maxmem}"
],
}
exec { "sysctl_conf_reload":
@raphink
raphink / crm.rb
Last active December 26, 2015 09:59 — forked from mbornoz/crm.rb
# 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
(*
Module: FreeBSD Update
parses /etc/freebsd-update.conf
Author: Mathieu Arnold <mat@FreeBSD.org>
About: Licence
This file is licensed under the BSD License.
About: Lens Usage