Displaying 1 result from an estimated 1 matches for "_win".
Did you mean:
_in
2013 Oct 13
24
exporting custom facts to puppet agents
...; open(inFile, ''r'').each do |line|
> next if line =~ /^\s*(#|$)/
> parts = line.split('','').map(&:strip)
>
> case parts[1]
> when /^Mac/
> (g_C[:mac] ||= []) << parts[0]
> when /_Win$/
> (g_C[:win] ||= []) << parts[0]
> else
> (g_C[:linux] ||= []) << parts[0]
> end
> end
> end
>
> Facter.add(:am_running_oss) do
> has_weight 100
> if gos.count >= 1
> setcode { gos.keys.joi...