diff options
author | James Shubin <james@shubin.ca> | 2013-09-18 05:56:38 -0400 |
---|---|---|
committer | James Shubin <james@shubin.ca> | 2013-09-18 05:56:38 -0400 |
commit | b3a75df1e1be24e65ffc8dc70577803cdb700f56 (patch) | |
tree | 2a52f576fefade8346641adfe28118572b1cf4a7 /lib | |
parent | 4dbba38fc44e8d7226fdecec12b1237fc24d026d (diff) | |
download | puppet-gluster-b3a75df1e1be24e65ffc8dc70577803cdb700f56.tar.gz puppet-gluster-b3a75df1e1be24e65ffc8dc70577803cdb700f56.tar.xz puppet-gluster-b3a75df1e1be24e65ffc8dc70577803cdb700f56.zip |
Additional UUID facts.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/facter/gluster_uuid.rb | 16 |
1 files changed, 16 insertions, 0 deletions
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 |