blob: 0d21c4d724416e215cc26279508d585a020ca1e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require 'puppet/interface'
Puppet::Interface.interface(:configurer) do
action(:synchronize) do
invoke do |certname|
facts = Puppet::Interface.interface(:facts).find(certname)
catalog = Puppet::Interface.interface(:catalog).download(certname, facts)
report = Puppet::Interface.interface(:catalog).apply(catalog)
report
end
end
end
|