Sha256: 211bb3974dff3620241f943b39f9e01f8a092777a6a7235820e8286522ad31a5
Contents?: true
Size: 992 Bytes
Versions: 10
Compression:
Stored size: 992 Bytes
Contents
begin require 'corl' # Load network if it exists if CORL.admin? network_path = Facter.value("corl_network") network_config = CORL.config(:network, { :directory => network_path }) network = CORL.network(network_path, network_config, :default) if network && node = network.local_node Facter.add(:corl_provider) do setcode do node.plugin_provider end end corl_facts = CORL::Util::Data.merge([ { :corl_identity => "test", :corl_stage => "maintain", :corl_type => "core", :corl_environment => "development" }, node[:facts] ]) CORL::Util::Data.hash(corl_facts).each do |name, value| Facter.add(name) do confine :kernel => :linux # TODO: Extend this to work with more systems setcode do value end end end end end rescue # Prevent abortions if does not exist end
Version data entries
10 entries across 10 versions & 1 rubygems