summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface/v0.0.1/configurer.rb
blob: 38536b6841ca6d9e0690029478c7ea84e42b73a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'puppet/interface'

Puppet::Interface.define(:configurer, '0.0.1') do
  action(:synchronize) do
    invoke do |certname|
      facts = Puppet::Interface[:facts, '0.0.1'].find(certname)
      catalog = Puppet::Interface[:catalog, '0.0.1'].download(certname, facts)
      report = Puppet::Interface[:catalog, '0.0.1'].apply(catalog)
      report
    end
  end
end