common: remove hand made plugins install defines and use matt's plugins patch
authorDavid Schmitt <david@schmitt.edv-bus.at>
Sat, 6 Oct 2007 08:11:47 +0000 (10:11 +0200)
committerDavid Schmitt <david@schmitt.edv-bus.at>
Sat, 6 Oct 2007 08:11:47 +0000 (10:11 +0200)
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.

manifests/plugin.pp
plugins/facter/acpi_available.rb [moved from files/facter/acpi_available.rb with 100% similarity]
plugins/facter/interfaces.rb [moved from files/facter/interfaces.rb with 100% similarity]

index fdb58ca..e7e22d1 100644 (file)
@@ -81,22 +81,6 @@ class munin::plugins::base {
                        notify => Service[munin-node];
        }
 
-       puppet::fact{
-               interfaces:
-                       source => "puppet://$servername/munin/facter/interfaces.rb",
-                       require => Package[iproute];
-       }
-       case $vserver {
-               guest: {}
-               '': {}
-               default: {
-                       puppet::fact{
-                               acpi_available:
-                                       source => "puppet://$servername/munin/facter/acpi_available.rb",
-                                       require => Package[acpi];
-                       }
-               }
-       }
 }
 
 # handle if_ and if_err_ plugins