Please review pull request #122: Allow ValidateSignCert to pass in a single-node setup opened by (cprice-puppet)

Description:

In the case where you are running acceptance tests against a single node (which is serving as both master and agent), the puppet cert --sign-all needs to accept an exit code of 24 (which means that there were no certs to sign).

  • Opened: Tue Jan 24 20:23:08 UTC 2012
  • Based on: puppetlabs:master (99238dd039587bacddafc93aeaec4b551ff54129)
  • Requested merge: cprice-puppet:allow-no-certs-for-single-node (c94cce99623699cffbdc38ff0a9351e74714e341)

Diff follows:

diff --git a/setup/git/03_ValidateSignCert.rb b/setup/git/03_ValidateSignCert.rb
index 11c6cef..0631200 100755
--- a/setup/git/03_ValidateSignCert.rb
+++ b/setup/git/03_ValidateSignCert.rb
@@ -7,7 +7,7 @@
 
   # Sign all waiting certs
   step "Master: sign all certs"
-  on master, puppet_cert("--sign --all")
+  on master, puppet_cert("--sign --all"), :acceptable_exit_codes => [0,24]
 
   step "Agents: Run agent --test second time to obtain signed cert"
   on agents, puppet_agent("--test"), :acceptable_exit_codes => [0,2]

    

--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to