~ubuntu-branches/ubuntu/maverick/puppet/maverick-updates

« back to all changes in this revision

Viewing changes to .pc/debian-changes-2.6.1~rc3-1/man/man8/puppetd.8

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Mathias Gug, Stig Sandbeck Mathisen
  • Date: 2010-09-07 10:44:22 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20100907104422-lmhcy8xdjcuem645
Tags: 2.6.1~rc4-0ubuntu1
[ Mathias Gug ]
* New upstream version:
  - Fix "Puppet standalone broken" (Closes: #594575)
* test/lib/puppettest/fakes.rb: Fix puppettest to use puppet system 
  library.

[ Stig Sandbeck Mathisen ]
* Fix "require" path for puppet queue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH SYNOPSIS  "" "" ""
2
 
.SH NAME
3
 
Synopsis \- 
4
 
.\" Man page generated from reStructeredText.
5
 
.
6
 
.sp
7
 
Retrieve the client configuration from the puppet master and apply it to
8
 
the local host.
9
 
.sp
10
 
Currently must be run out periodically, using cron or something similar.
11
 
.SH USAGE
12
 
.INDENT 0.0
13
 
.INDENT 3.5
14
 
.INDENT 0.0
15
 
.TP
16
 
.B puppet agent  [\-D|\-\-daemonize|\-\-no\-daemonize] [\-d|\-\-debug]
17
 
.
18
 
[\-\-detailed\-exitcodes] [\-\-disable] [\-\-enable]
19
 
[\-h|\-\-help] [\-\-fqdn <host name>] [\-l|\-\-logdest syslog|<file>|console]
20
 
[\-o|\-\-onetime] [\-\-serve <handler>] [\-t|\-\-test] [\-\-noop]
21
 
[\-\-digest <digest>] [\-\-fingerprint] [\-V|\-\-version]
22
 
[\-v|\-\-verbose] [\-w|\-\-waitforcert <seconds>]
23
 
.UNINDENT
24
 
.UNINDENT
25
 
.UNINDENT
26
 
.SH DESCRIPTION
27
 
.sp
28
 
This is the main puppet client. Its job is to retrieve the local
29
 
machine\(aqs configuration from a remote server and apply it. In order to
30
 
successfully communicate with the remote server, the client must have a
31
 
certificate signed by a certificate authority that the server trusts;
32
 
the recommended method for this, at the moment, is to run a certificate
33
 
authority as part of the puppet server (which is the default). The
34
 
client will connect and request a signed certificate, and will continue
35
 
connecting until it receives one.
36
 
.sp
37
 
Once the client has a signed certificate, it will retrieve its
38
 
configuration and apply it.
39
 
.SH USAGE NOTES
40
 
.sp
41
 
+puppet agent+ does its best to find a compromise between interactive
42
 
use and daemon use. Run with no arguments and no configuration, it will
43
 
go into the backgroun, attempt to get a signed certificate, and retrieve
44
 
and apply its configuration every 30 minutes.
45
 
.sp
46
 
Some flags are meant specifically for interactive use \-\- in particular,
47
 
+test+, +tags+ or +fingerprint+ are useful. +test+ enables verbose
48
 
logging, causes the daemon to stay in the foreground, exits if the
49
 
server\(aqs configuration is invalid (this happens if, for instance, you\(aqve
50
 
left a syntax error on the server), and exits after running the
51
 
configuration once (rather than hanging around as a long\-running
52
 
process).
53
 
.sp
54
 
+tags+ allows you to specify what portions of a configuration you want
55
 
to apply. Puppet elements are tagged with all of the class or definition
56
 
names that contain them, and you can use the +tags+ flag to specify one
57
 
of these names, causing only configuration elements contained within
58
 
that class or definition to be applied. This is very useful when you are
59
 
testing new configurations \-\- for instance, if you are just starting to
60
 
manage +ntpd+, you would put all of the new elements into an +ntpd+
61
 
class, and call puppet with +\-\-tags ntpd+, which would only apply that
62
 
small portion of the configuration during your testing, rather than
63
 
applying the whole thing.
64
 
.sp
65
 
+fingerprint+ is a one\-time flag. In this mode +puppet agent+ will run
66
 
once and display on the console (and in the log) the current certificate
67
 
(or certificate request) fingerprint. Providing the +\-\-digest+ option
68
 
allows to use a different digest algorithm to generate the fingerprint.
69
 
The main use is to verify that before signing a certificate request on
70
 
the master, the certificate request the master received is the same as
71
 
the one the client sent (to prevent against man\-in\-the\-middle attacks
72
 
when signing certificates).
73
 
.SH OPTIONS
74
 
.sp
75
 
Note that any configuration parameter that\(aqs valid in the configuration
76
 
file is also a valid long argument. For example, \(aqserver\(aq is a valid
77
 
configuration parameter, so you can specify \(aq\-\-server <servername>\(aq as
78
 
an argument.
79
 
.sp
80
 
See the configuration file documentation at
81
 
\fI\%http://docs.puppetlabs.com/references/stable/configuration.html\fP for the
82
 
full list of acceptable parameters. A commented list of all
83
 
configuration options can also be generated by running puppet agent with
84
 
\(aq\-\-genconfig\(aq.
85
 
.INDENT 0.0
86
 
.TP
87
 
.B daemonize:          Send the process into the background. This is the
88
 
.
89
 
default.
90
 
.UNINDENT
91
 
.sp
92
 
no\-daemonize:       Do not send the process into the background.
93
 
.sp
94
 
debug:              Enable full debugging.
95
 
.INDENT 0.0
96
 
.TP
97
 
.B digest:             Change the certificate fingerprinting digest
98
 
.
99
 
algorithm. The default is MD5. Valid values depends
100
 
on the version of OpenSSL installed, but should
101
 
always at least contain MD5, MD2, SHA1 and SHA256.
102
 
.TP
103
 
.B detailed\-exitcodes: Provide transaction information via exit codes. If
104
 
.
105
 
this is enabled, an exit code of \(aq2\(aq means there
106
 
were changes, and an exit code of \(aq4\(aq means that
107
 
there were failures during the transaction. This
108
 
option only makes sense in conjunction with
109
 
\-\-onetime.
110
 
.TP
111
 
.B disable:            Disable working on the local system. This puts a
112
 
.
113
 
lock file in place, causing +puppet agent+ not to
114
 
work on the system until the lock file is removed.
115
 
This is useful if you are testing a configuration
116
 
and do not want the central configuration to
117
 
override the local state until everything is tested
118
 
and committed.
119
 
.UNINDENT
120
 
.sp
121
 
+puppet agent+ uses the same lock file while it is running, so no more
122
 
than one +puppet agent+ process is working at a time.
123
 
.sp
124
 
+puppet agent+ exits after executing this.
125
 
.INDENT 0.0
126
 
.TP
127
 
.B enable:             Enable working on the local system. This removes any
128
 
.
129
 
lock file, causing +puppet agent+ to start managing
130
 
the local system again (although it will continue to
131
 
use its normal scheduling, so it might not start for
132
 
another half hour).
133
 
.UNINDENT
134
 
.sp
135
 
+puppet agent+ exits after executing this.
136
 
.INDENT 0.0
137
 
.TP
138
 
.B fqdn:               Set the fully\-qualified domain name of the client.
139
 
.
140
 
This is only used for certificate purposes, but can
141
 
be used to override the discovered hostname. If you
142
 
need to use this flag, it is generally an indication
143
 
of a setup problem.
144
 
.UNINDENT
145
 
.sp
146
 
help:               Print this help message
147
 
.INDENT 0.0
148
 
.TP
149
 
.B logdest:            Where to send messages. Choose between syslog, the
150
 
.
151
 
console, and a log file. Defaults to sending
152
 
messages to syslog, or the console if debugging or
153
 
verbosity is enabled.
154
 
.TP
155
 
.B no\-client:          Do not create a config client. This will cause the
156
 
.
157
 
daemon to run without ever checking for its
158
 
configuration automatically, and only makes sense
159
 
when used in conjunction with \-\-listen.
160
 
.TP
161
 
.B onetime:            Run the configuration once. Runs a single (normally
162
 
.
163
 
daemonized) Puppet run. Useful for interactively
164
 
running puppet agent when used in conjunction with
165
 
the \-\-no\-daemonize option.
166
 
.TP
167
 
.B fingerprint:        Display the current certificate or certificate
168
 
.
169
 
signing request fingerprint and then exit. Use the
170
 
+\-\-digest+ option to change the digest algorithm
171
 
used.
172
 
.TP
173
 
.B serve:              Start another type of server. By default, +puppet
174
 
.
175
 
agent+ will start a service handler that allows
176
 
authenticated and authorized remote nodes to trigger
177
 
the configuration to be pulled down and applied. You
178
 
can specify any handler here that does not require
179
 
configuration, e.g., filebucket, ca, or resource.
180
 
The handlers are in +lib/puppet/network/handler+,
181
 
and the names must match exactly, both in the call
182
 
to +serve+ and in +namespaceauth.conf+.
183
 
.TP
184
 
.B test:               Enable the most common options used for testing.
185
 
.
186
 
These are +onetime+, +verbose+, +ignorecache,
187
 
+no\-daemonize+, and +no\-usecacheonfailure+.
188
 
.TP
189
 
.B noop:               Use +noop+ mode where the daemon runs in a no\-op or
190
 
.
191
 
dry\-run mode. This is useful for seeing what changes
192
 
Puppet will make without actually executing the
193
 
changes.
194
 
.UNINDENT
195
 
.sp
196
 
verbose:            Turn on verbose reporting.
197
 
.sp
198
 
version:            Print the puppet version number and exit.
199
 
.INDENT 0.0
200
 
.TP
201
 
.B waitforcert:        This option only matters for daemons that do not yet
202
 
.
203
 
have certificates and it is enabled by default, with
204
 
a value of 120 (seconds). This causes +puppet agent+
205
 
to connect to the server every 2 minutes and ask it
206
 
to sign a certificate request. This is useful for
207
 
the initial setup of a puppet client. You can turn
208
 
off waiting for certificates by specifying a time of
209
 
0.
210
 
.UNINDENT
211
 
.SH EXAMPLE
212
 
.INDENT 0.0
213
 
.INDENT 3.5
214
 
.sp
215
 
puppet agent \-\-server puppet.domain.com
216
 
.UNINDENT
217
 
.UNINDENT
218
 
.SH AUTHOR
219
 
.sp
220
 
Luke Kanies
221
 
.SH COPYRIGHT
222
 
.sp
223
 
Copyright (c) 2005, 2006 Reductive Labs, LLC Licensed under the GNU
224
 
Public License
225
 
.\" Generated by docutils manpage writer.
226
 
.\" 
227
 
.