Tom will show you how to leverage configuration management to increase your productivity.
Although he will use Puppet as an example, it should be easy to adapt these tips and tricks to your particular environment.
How to Remove Document Management Hurdles with X-Docs?
OSMC 2015:The road to lazy monitoring with Icinga 2 and Puppet by Tom de Vylder
1. The road to lazy monitoringThe road to lazy monitoring
with Icinga2 & Puppetwith Icinga2 & Puppet
Tom De Vylder
@tomdevylder
2. whoiswhois
● Ops guyOps guy
● Rusty, old, Bavarian vehicles enthousiastRusty, old, Bavarian vehicles enthousiast
● The one who always gets the patdown at checkpointsThe one who always gets the patdown at checkpoints
● Open Source Consultant & Enthousiast at InuitsOpen Source Consultant & Enthousiast at Inuits
● Team Packages & Tools at IcingaTeam Packages & Tools at Icinga
37. classes_file = '/var/lib/puppet/classes.txt'
classes_hash = {}
modules_array = []
File.foreach(classes_file) do |l|
modules_array << l.chomp.gsub(/::.*/, '')
end
modules_array = modules_array.sort.uniq
modules_array.each do |i|
classes_array = []
classes_array << i
File.foreach(classes_file) do |l|
classes_array << l.chomp if l =~ /^#{i}/
classes_array = classes_array.sort.uniq
end
classes_hash[i] = classes_array
end
38. Facter.add(:puppet_modules, :timeout => 10) do
confine :kernel => 'Linux'
setcode do
modules_array.sort.uniq.join(', ').to_s
end
end
Facter.add(:puppet_classes, :timeout => 10) do
confine :kernel => 'Linux'
setcode do
classes_hash.map { |_k, v| v }.sort.uniq.join(', ').to_s
end
end