From: Stephen Gran Date: Sat, 28 Feb 2009 19:12:23 +0000 (+0000) Subject: Move plugins around X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=34bdc1b1f299d5709b93a0824ec17d8ea2f9ab36;p=mirror%2Fdsa-puppet.git Move plugins around Signed-off-by: Stephen Gran --- diff --git a/modules/debian-org/plugins/facter/raidcontroller.rb b/modules/debian-org/plugins/facter/raidcontroller.rb deleted file mode 100644 index 5ec322ace..000000000 --- a/modules/debian-org/plugins/facter/raidcontroller.rb +++ /dev/null @@ -1,15 +0,0 @@ -Facter.add("raidcontroller") do - confine :kernel => :linux - ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin" - setcode do - controllers = [] - lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'" - if $?.exitstatus == 0 - output = %x{lspci} - output.each { |s| - controllers.push($1) if s =~ /RAID bus controller: (.*)/ - } - end - controllers - end -end diff --git a/plugins/facter/raidcontroller.rb b/plugins/facter/raidcontroller.rb new file mode 100644 index 000000000..5ec322ace --- /dev/null +++ b/plugins/facter/raidcontroller.rb @@ -0,0 +1,15 @@ +Facter.add("raidcontroller") do + confine :kernel => :linux + ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin" + setcode do + controllers = [] + lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'" + if $?.exitstatus == 0 + output = %x{lspci} + output.each { |s| + controllers.push($1) if s =~ /RAID bus controller: (.*)/ + } + end + controllers + end +end