Sha256: 758d1bfc2bba39430003fe340718ed68af41620d2656b68380a21c17187c1cb3

Contents?: true

Size: 831 Bytes

Versions: 16

Compression:

Stored size: 831 Bytes

Contents

# Break out the code related to plugins.  This module is
# just included into the agent, but having it here makes it
# easier to test.
module Puppet::Configurer::PluginHandler
  # Retrieve facts from the central server.
  def download_plugins
    plugin_downloader = Puppet::Configurer::Downloader.new(
      "plugin",
      Puppet[:plugindest],
      Puppet[:pluginsource],
      Puppet[:pluginsignore],
      @environment
    )
    if Puppet.features.external_facts?
       plugin_fact_downloader = Puppet::Configurer::Downloader.new(
          "pluginfacts",
          Puppet[:pluginfactdest],
          Puppet[:pluginfactsource],
          Puppet[:pluginsignore],
          @environment
       )
       plugin_fact_downloader.evaluate
    end

    plugin_downloader.evaluate
    Puppet::Util::Autoload.reload_changed
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
puppet-3.5.1 lib/puppet/configurer/plugin_handler.rb
puppet-3.5.1-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-3.5.1.rc1 lib/puppet/configurer/plugin_handler.rb
puppet-3.5.1.rc1-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-3.5.0.rc3 lib/puppet/configurer/plugin_handler.rb
puppet-3.5.0.rc3-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-3.5.0.rc2 lib/puppet/configurer/plugin_handler.rb
puppet-3.5.0.rc2-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-3.5.0.rc1 lib/puppet/configurer/plugin_handler.rb
puppet-3.5.0.rc1-x86-mingw32 lib/puppet/configurer/plugin_handler.rb
puppet-3.4.3 lib/puppet/configurer/plugin_handler.rb
puppet-3.4.2 lib/puppet/configurer/plugin_handler.rb
puppet-3.4.1 lib/puppet/configurer/plugin_handler.rb
puppet-3.4.0 lib/puppet/configurer/plugin_handler.rb
puppet-3.4.0.rc2 lib/puppet/configurer/plugin_handler.rb
puppet-3.4.0.rc1 lib/puppet/configurer/plugin_handler.rb