From b3a75df1e1be24e65ffc8dc70577803cdb700f56 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Wed, 18 Sep 2013 05:56:38 -0400 Subject: Additional UUID facts. --- lib/facter/gluster_uuid.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib') diff --git a/lib/facter/gluster_uuid.rb b/lib/facter/gluster_uuid.rb index f163195..80e4086 100644 --- a/lib/facter/gluster_uuid.rb +++ b/lib/facter/gluster_uuid.rb @@ -120,3 +120,19 @@ found.keys.each do |x| end end +# list of generated gluster_uuid's +Facter.add('gluster_uuid_facts') do + #confine :operatingsystem => %w{CentOS, RedHat, Fedora} + setcode { + found.keys.collect {|x| 'gluster_uuid_'+x }.join(',') + } +end + +Facter.add('gluster_fqdns') do + #confine :operatingsystem => %w{CentOS, RedHat, Fedora} + setcode { + found.keys.sort.join(',') + } +end + +# vim: ts=8 -- cgit