summaryrefslogtreecommitdiffstats
path: root/lib/puppet/face/configurer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/face/configurer.rb')
-rw-r--r--lib/puppet/face/configurer.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/puppet/face/configurer.rb b/lib/puppet/face/configurer.rb
new file mode 100644
index 000000000..74dfb854e
--- /dev/null
+++ b/lib/puppet/face/configurer.rb
@@ -0,0 +1,12 @@
+require 'puppet/face'
+
+Puppet::Face.define(:configurer, '0.0.1') do
+ action(:synchronize) do
+ when_invoked do |certname, options|
+ facts = Puppet::Face[:facts, '0.0.1'].find(certname)
+ catalog = Puppet::Face[:catalog, '0.0.1'].download(certname, facts)
+ report = Puppet::Face[:catalog, '0.0.1'].apply(catalog)
+ report
+ end
+ end
+end