1
1
---
2
2
layout : default
3
- built_from_commit : 70303b65ae864066c583e1436011ff135847f6ad
3
+ built_from_commit : 6893bdd69ab1291e6e6fcd6b152dda2b48e3cdb2
4
4
title : ' Man Page: puppet agent'
5
5
canonical : " /puppet/latest/man/agent.html"
6
6
---
7
7
8
8
# Man Page: puppet agent
9
9
10
- > ** NOTE:** This page was generated from the Puppet source code on 2024-08-29 17:41:46 -0700
10
+ > ** NOTE:** This page was generated from the Puppet source code on 2024-10-17 02:36:47 +0000
11
+
12
+ NAME
13
+ ====
11
14
12
- ## NAME
13
15
** puppet-agent** - The puppet agent daemon
14
16
15
- ## SYNOPSIS
17
+ SYNOPSIS
18
+ ========
19
+
16
20
Retrieves the client configuration from the Puppet master and applies it
17
21
to the local host.
18
22
19
23
This service may be run as a daemon, run periodically using cron (or
20
24
something similar), or run interactively for testing purposes.
21
25
22
- ## USAGE
26
+ USAGE
27
+ =====
28
+
23
29
puppet agent \[\- -certname * NAME* \]
24
30
\[ -D\|\- -daemonize\|\- -no-daemonize\] \[ -d\|\- -debug\]
25
31
\[\- -detailed-exitcodes\] \[\- -digest * DIGEST* \] \[\- -disable
26
32
\[ MESSAGE\]\] \[\- -enable\] \[\- -fingerprint\] \[ -h\|\- -help\]
27
33
\[ -l\|\- -logdest syslog\| eventlog\| * ABS FILEPATH* \| console\]
28
34
\[\- -serverport * PORT* \] \[\- -noop\] \[ -o\|\- -onetime\]
29
- \[\- -sourceaddress * IP_ADDRESS * \] \[ -t\|\- -test\] \[ -v\|\- -verbose\]
35
+ \[\- -sourceaddress * IP \_ ADDRESS * \] \[ -t\|\- -test\] \[ -v\|\- -verbose\]
30
36
\[ -V\|\- -version\] \[ -w\|\- -waitforcert * SECONDS* \]
31
37
32
- ## DESCRIPTION
38
+ DESCRIPTION
39
+ ===========
40
+
33
41
This is the main puppet client. Its job is to retrieve the local
34
42
machine\' s configuration from a remote server and apply it. In order to
35
43
successfully communicate with the remote server, the client must have a
@@ -42,7 +50,9 @@ connecting until it receives one.
42
50
Once the client has a signed certificate, it will retrieve its
43
51
configuration and apply it.
44
52
45
- ## USAGE NOTES
53
+ USAGE NOTES
54
+ ===========
55
+
46
56
\' puppet agent\' does its best to find a compromise between interactive
47
57
use and daemon use. If you run it with no arguments and no
48
58
configuration, it goes into the background, attempts to get a signed
@@ -69,6 +79,8 @@ one of the following exit codes:
69
79
70
80
- 6: The run succeeded, and included both changes and failures.
71
81
82
+ -
83
+
72
84
\'\- -tags\' allows you to specify what portions of a configuration you
73
85
want to apply. Puppet elements are tagged with all of the class or
74
86
definition names that contain them, and you can use the \' tags\' flag to
@@ -89,11 +101,13 @@ a certificate request on the master, the certificate request the master
89
101
received is the same as the one the client sent (to prevent against
90
102
man-in-the-middle attacks when signing certificates).
91
103
92
- \'\- -skip_tags \' is a flag used to filter resources. If this is set,
104
+ \'\- -skip \_ tags \' is a flag used to filter resources. If this is set,
93
105
then only resources not tagged with the specified tags will be applied.
94
106
Values must be comma-separated.
95
107
96
- ## OPTIONS
108
+ OPTIONS
109
+ =======
110
+
97
111
Note that any Puppet setting that\' s valid in the configuration file is
98
112
also a valid long argument. For example, \' server\' is a valid setting,
99
113
so you can specify \'\- -server * servername* \' as an argument. Boolean
@@ -226,7 +240,7 @@ be generated by running puppet agent with \'\--genconfig\'.
226
240
- \- -test: Enable the most common options used for testing. These are
227
241
\' onetime\' , \' verbose\' , \' no-daemonize\' ,
228
242
\' no-usecacheonfailure\' , \' detailed-exitcodes\' , \' no-splay\' , and
229
- \' show_diff \' .
243
+ \' show \_ diff \' .
230
244
231
245
- \- -trace Prints stack traces on some errors. (This is a Puppet
232
246
setting, and can go in puppet.conf. Note the special \' no-\' prefix
@@ -244,16 +258,22 @@ be generated by running puppet agent with \'\--genconfig\'.
244
258
waiting for certificates by specifying a time of 0. (This is a
245
259
Puppet setting, and can go in puppet.conf.)
246
260
247
- - \- -write_catalog_summary After compiling the catalog saves the
261
+ - \- -write \_ catalog \_ summary After compiling the catalog saves the
248
262
resource list and classes list to the node in the state directory
249
263
named classes.txt and resources.txt (This is a Puppet setting, and
250
264
can go in puppet.conf.)
251
265
252
- ## EXAMPLE
266
+ -
267
+
268
+ EXAMPLE
269
+ =======
270
+
253
271
254
272
$ puppet agent --server puppet.domain.com
255
273
256
- ## DIAGNOSTICS
274
+ DIAGNOSTICS
275
+ ===========
276
+
257
277
Puppet agent accepts the following signals:
258
278
259
279
SIGHUP
@@ -274,9 +294,13 @@ SIGUSR2
274
294
: Close file descriptors for log files and reopen them. Used with
275
295
logrotate.
276
296
277
- ## AUTHOR
297
+ AUTHOR
298
+ ======
299
+
278
300
Luke Kanies
279
301
280
- ## COPYRIGHT
302
+ COPYRIGHT
303
+ =========
304
+
281
305
Copyright (c) 2011 Puppet Inc., LLC Licensed under the Apache 2.0
282
306
License
0 commit comments