summaryrefslogtreecommitdiffstats
path: root/bin/puppetd
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-08 16:18:48 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-08 16:18:48 +0000
commit1cef8f576cf21f715f497e6ff9e350aea9c2a93d (patch)
tree3d1f9300ca809b67a4f3705312da70cce0328cdb /bin/puppetd
parent2257d6f557174f9e70aa3e6abfcb26362236aea6 (diff)
downloadpuppet-1cef8f576cf21f715f497e6ff9e350aea9c2a93d.tar.gz
puppet-1cef8f576cf21f715f497e6ff9e350aea9c2a93d.tar.xz
puppet-1cef8f576cf21f715f497e6ff9e350aea9c2a93d.zip
Applied patch from #153.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1241 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'bin/puppetd')
-rwxr-xr-xbin/puppetd9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/puppetd b/bin/puppetd
index 4701a9f8b..84c7ba758 100755
--- a/bin/puppetd
+++ b/bin/puppetd
@@ -122,10 +122,11 @@
#
# waitforcert::
# This option only matters for daemons that do not yet have certificates
-# and it is enabled by default, with a value of 60 (seconds). This causes
-# +puppetd+ to connect to the server every 60 seconds and ask it to sign a
+# and it is enabled by default, with a value of 300 (seconds). This causes
+# +puppetd+ to connect to the server every 5 minutes and ask it to sign a
# certificate request. This is useful for the initial setup of a puppet
-# client.
+# client. You can turn off waiting for certificates by specifying a time
+# of 0.
#
# = Example
#
@@ -325,7 +326,7 @@ unless client.readcert
# If we don't already have the certificate, then create a client to
# request one.
caclient = Puppet::Client::CA.new(args)
- if options[:waitforcert]
+ if options[:waitforcert] > 0
begin
while ! caclient.requestcert do
Puppet.notice "Did not receive certificate"