The pe-easy-agent.sh script mentioned in the instance_defaults hash is available at pe-easy-agent.sh
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
Monitor association changes string to array on one side, but other side is still a string. Causes a constantly change attempt: | |
----- | |
monitor_association changed '{"type"=>"MONITOR_RULE_TYPE_SINGLE", "quorum"=>"0", "monitor_templates"=>"/Common/MyMonitor"}' to '{"type"=>"MONITOR_RULE_TYPE_SINGLE", "monitor_templates"=>["/Common/MyMonitor"], "quorum"=>"0"}' |
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
# Generates facts of the version pkg_foo => 'version' | |
begin | |
require 'puppet' | |
pkgs = Puppet::Type.type(:package).instances | |
pkgs.each do |pkg| | |
Facter.add("pkg_#{pkg[:name]}") do | |
value = pkg.provider.properties[:ensure] | |
if value != :absent |