[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Daniel Pittman
daniel at puppetlabs.com
Tue May 10 08:17:44 UTC 2011
The following commit has been merged in the experimental branch:
commit 27e083151bfd1e167f810ceb38199ded3d8d8be5
Author: Daniel Pittman <daniel at puppetlabs.com>
Date: Thu Apr 21 15:45:28 2011 -0700
(#7181) Rename configurer face to secret_agent.
This is a much more useful public name, especially given the code is aimed to
eventually replace the agent entirely. Until then this is pleasant enough to
talk about.
Reviewed-By: Nick Lewis <nick at puppetlabs.com>
diff --git a/lib/puppet/application/configurer.rb b/lib/puppet/application/secret_agent.rb
similarity index 74%
rename from lib/puppet/application/configurer.rb
rename to lib/puppet/application/secret_agent.rb
index 6e86cd2..d704d14 100644
--- a/lib/puppet/application/configurer.rb
+++ b/lib/puppet/application/secret_agent.rb
@@ -1,7 +1,7 @@
require 'puppet/application'
require 'puppet/face'
-class Puppet::Application::Configurer < Puppet::Application
+class Puppet::Application::Secret_agent < Puppet::Application
should_parse_config
run_mode :agent
@@ -17,7 +17,7 @@ class Puppet::Application::Configurer < Puppet::Application
end
def run_command
- report = Puppet::Face[:configurer, '0.0.1'].synchronize(Puppet[:certname])
+ report = Puppet::Face[:secret_agent, '0.0.1'].synchronize(Puppet[:certname])
Puppet::Face[:report, '0.0.1'].submit(report)
end
end
diff --git a/lib/puppet/face/configurer.rb b/lib/puppet/face/secret_agent.rb
similarity index 87%
rename from lib/puppet/face/configurer.rb
rename to lib/puppet/face/secret_agent.rb
index 74dfb85..e271412 100644
--- a/lib/puppet/face/configurer.rb
+++ b/lib/puppet/face/secret_agent.rb
@@ -1,6 +1,6 @@
require 'puppet/face'
-Puppet::Face.define(:configurer, '0.0.1') do
+Puppet::Face.define(:secret_agent, '0.0.1') do
action(:synchronize) do
when_invoked do |certname, options|
facts = Puppet::Face[:facts, '0.0.1'].find(certname)
diff --git a/spec/unit/application/configurer_spec.rb b/spec/unit/application/secret_agent_spec.rb
similarity index 87%
rename from spec/unit/application/configurer_spec.rb
rename to spec/unit/application/secret_agent_spec.rb
index 791a367..eba9364 100755
--- a/spec/unit/application/configurer_spec.rb
+++ b/spec/unit/application/secret_agent_spec.rb
@@ -1,11 +1,11 @@
#!/usr/bin/env rspec
require 'spec_helper'
-require 'puppet/application/configurer'
+require 'puppet/application/secret_agent'
require 'puppet/indirector/catalog/rest'
require 'puppet/indirector/report/rest'
require 'tempfile'
-describe "Puppet::Application::Configurer" do
+describe "Puppet::Application::Secret_agent" do
it "should retrieve and apply a catalog and submit a report" do
pending "REVISIT: 2.7 changes broke this, and we want the merge published"
@@ -25,7 +25,7 @@ describe "Puppet::Application::Configurer" do
Puppet::Util::Log.stubs(:newdestination)
- Puppet::Application::Configurer.new.run
+ Puppet::Application::Secret_agent.new.run
@report.status.should == "changed"
end
diff --git a/spec/unit/face/configurer_spec.rb b/spec/unit/face/secret_agent_spec.rb
similarity index 85%
rename from spec/unit/face/configurer_spec.rb
rename to spec/unit/face/secret_agent_spec.rb
index 56b4503..9117ad4 100755
--- a/spec/unit/face/configurer_spec.rb
+++ b/spec/unit/face/secret_agent_spec.rb
@@ -3,11 +3,9 @@ require 'spec_helper'
require 'puppet/indirector/catalog/rest'
require 'tempfile'
-describe Puppet::Face[:configurer, '0.0.1'] do
+describe Puppet::Face[:secret_agent, '0.0.1'] do
describe "#synchronize" do
it "should retrieve and apply a catalog and return a report" do
- pending "REVISIT: 2.7 changes broke this, and we want the merge published"
-
dirname = Dir.mktmpdir("puppetdir")
Puppet[:vardir] = dirname
Puppet[:confdir] = dirname
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list