summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorDavid Schmitt <david@schmitt.edv-bus.at>2007-10-06 10:11:47 +0200
committerDavid Schmitt <david@schmitt.edv-bus.at>2007-10-06 10:11:47 +0200
commit2521bf14457f6377d1fef1185ef93e2ba91180d2 (patch)
tree10d09d01f95a346fc3f76605d4cb1e9c93e3f8d0 /files
parent5761bef98c65edbc51615b3d043c126b4abbd66f (diff)
common: remove hand made plugins install defines and use matt's plugins patch
This moves all facts and puppet plugins to the plugins/ directory of modules to get the benefits of Matt's plugins patch, that distributes these files before the configuration is requested. This reduces the number of configuration runs to convergence by one.
Diffstat (limited to 'files')
-rw-r--r--files/facter/acpi_available.rb10
-rwxr-xr-xfiles/facter/interfaces.rb13
2 files changed, 0 insertions, 23 deletions
diff --git a/files/facter/acpi_available.rb b/files/facter/acpi_available.rb
deleted file mode 100644
index 216f608..0000000
--- a/files/facter/acpi_available.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-# return whether acpi is available -- used for desiding whether to install the munin plugin
-Facter.add("acpi_available") do
- setcode do
- if `acpi -t -B -A 2>/dev/null`.match(/\d/).nil?
- "absent"
- else
- "present"
- end
- end
-end
diff --git a/files/facter/interfaces.rb b/files/facter/interfaces.rb
deleted file mode 100755
index a498d64..0000000
--- a/files/facter/interfaces.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-# return the set of active interfaces as an array
-Facter.add("interfaces") do
- setcode do
- `ip -o link show`.split(/\n/).collect do |line|
- value = nil
- matches = line.match(/^\d*: ([^:]*): <(.*,)?UP(,.*)?>/)
- if !matches.nil?
- value = matches[1]
- end
- value
- end.compact.sort.join(" ")
- end
-end