puppet 2.6.0 → 2.6.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

Files changed (246) hide show
  1. data/CHANGELOG +123 -0
  2. data/conf/redhat/puppet.spec +8 -2
  3. data/conf/solaris/smf/svc-puppetd +1 -1
  4. data/conf/solaris/smf/svc-puppetmasterd +1 -1
  5. data/conf/suse/client.init +4 -4
  6. data/conf/suse/fileserver.conf +12 -0
  7. data/conf/suse/logrotate +10 -0
  8. data/conf/suse/puppet.conf +25 -0
  9. data/conf/suse/puppet.spec +114 -49
  10. data/conf/suse/ruby-env.patch +17 -0
  11. data/conf/suse/server.init +4 -4
  12. data/ext/logcheck/puppet +23 -23
  13. data/ext/puppet-load.rb +357 -0
  14. data/ext/puppetstoredconfigclean.rb +3 -3
  15. data/ext/rack/files/config.ru +3 -5
  16. data/ext/vim/syntax/puppet.vim +6 -5
  17. data/install.rb +12 -11
  18. data/lib/puppet.rb +1 -1
  19. data/lib/puppet/agent.rb +3 -1
  20. data/lib/puppet/application.rb +2 -3
  21. data/lib/puppet/application/agent.rb +4 -0
  22. data/lib/puppet/application/apply.rb +14 -6
  23. data/lib/puppet/application/describe.rb +1 -1
  24. data/lib/puppet/application/doc.rb +2 -36
  25. data/lib/puppet/application/master.rb +0 -3
  26. data/lib/puppet/application/queue.rb +1 -0
  27. data/lib/puppet/configurer.rb +4 -0
  28. data/lib/puppet/daemon.rb +1 -1
  29. data/lib/puppet/defaults.rb +38 -44
  30. data/lib/puppet/file_serving/indirection_hooks.rb +2 -2
  31. data/lib/puppet/indirector/facts/memory.rb +1 -1
  32. data/lib/puppet/indirector/node/exec.rb +1 -1
  33. data/lib/puppet/indirector/node/ldap.rb +9 -53
  34. data/lib/puppet/indirector/node/memory.rb +1 -1
  35. data/lib/puppet/indirector/yaml.rb +6 -9
  36. data/lib/puppet/network/format_handler.rb +6 -0
  37. data/lib/puppet/network/formats.rb +4 -4
  38. data/lib/puppet/network/http/handler.rb +1 -1
  39. data/lib/puppet/network/http/rack.rb +3 -0
  40. data/lib/puppet/network/http/rack/rest.rb +1 -1
  41. data/lib/puppet/network/rest_authconfig.rb +6 -3
  42. data/lib/puppet/node/environment.rb +15 -5
  43. data/lib/puppet/parameter/value_collection.rb +3 -3
  44. data/lib/puppet/parser/ast/function.rb +0 -1
  45. data/lib/puppet/parser/ast/leaf.rb +1 -1
  46. data/lib/puppet/parser/ast/resource.rb +4 -3
  47. data/lib/puppet/parser/ast/resource_reference.rb +9 -2
  48. data/lib/puppet/parser/compiler.rb +12 -14
  49. data/lib/puppet/parser/files.rb +1 -1
  50. data/lib/puppet/parser/functions.rb +2 -2
  51. data/lib/puppet/parser/functions/defined.rb +1 -1
  52. data/lib/puppet/parser/functions/extlookup.rb +157 -0
  53. data/lib/puppet/parser/functions/file.rb +1 -1
  54. data/lib/puppet/parser/functions/inline_template.rb +6 -5
  55. data/lib/puppet/parser/functions/md5.rb +5 -0
  56. data/lib/puppet/parser/functions/realize.rb +1 -1
  57. data/lib/puppet/parser/functions/regsubst.rb +19 -19
  58. data/lib/puppet/parser/functions/require.rb +2 -3
  59. data/lib/puppet/parser/functions/split.rb +1 -1
  60. data/lib/puppet/parser/functions/sprintf.rb +1 -1
  61. data/lib/puppet/parser/functions/template.rb +4 -2
  62. data/lib/puppet/parser/functions/versioncmp.rb +12 -12
  63. data/lib/puppet/parser/lexer.rb +13 -14
  64. data/lib/puppet/parser/resource.rb +2 -7
  65. data/lib/puppet/parser/resource/param.rb +1 -1
  66. data/lib/puppet/parser/scope.rb +35 -0
  67. data/lib/puppet/parser/type_loader.rb +1 -1
  68. data/lib/puppet/property.rb +5 -5
  69. data/lib/puppet/provider.rb +3 -3
  70. data/lib/puppet/provider/group/groupadd.rb +1 -1
  71. data/lib/puppet/provider/group/ldap.rb +3 -3
  72. data/lib/puppet/provider/group/pw.rb +1 -1
  73. data/lib/puppet/provider/package/apple.rb +1 -1
  74. data/lib/puppet/provider/package/apt.rb +5 -1
  75. data/lib/puppet/provider/package/aptitude.rb +1 -1
  76. data/lib/puppet/provider/package/aptrpm.rb +1 -1
  77. data/lib/puppet/provider/package/blastwave.rb +1 -1
  78. data/lib/puppet/provider/package/dpkg.rb +2 -2
  79. data/lib/puppet/provider/package/fink.rb +1 -1
  80. data/lib/puppet/provider/package/gem.rb +1 -1
  81. data/lib/puppet/provider/package/openbsd.rb +1 -1
  82. data/lib/puppet/provider/package/rpm.rb +1 -1
  83. data/lib/puppet/provider/package/rug.rb +1 -1
  84. data/lib/puppet/provider/package/sunfreeware.rb +2 -2
  85. data/lib/puppet/provider/package/up2date.rb +1 -1
  86. data/lib/puppet/provider/package/urpmi.rb +1 -1
  87. data/lib/puppet/provider/package/yum.rb +1 -1
  88. data/lib/puppet/provider/package/zypper.rb +1 -1
  89. data/lib/puppet/provider/service/base.rb +1 -1
  90. data/lib/puppet/provider/service/bsd.rb +2 -2
  91. data/lib/puppet/provider/service/debian.rb +2 -2
  92. data/lib/puppet/provider/service/gentoo.rb +2 -2
  93. data/lib/puppet/provider/service/init.rb +2 -2
  94. data/lib/puppet/provider/service/redhat.rb +2 -2
  95. data/lib/puppet/provider/user/ldap.rb +3 -3
  96. data/lib/puppet/provider/user/pw.rb +1 -1
  97. data/lib/puppet/provider/user/user_role_add.rb +1 -1
  98. data/lib/puppet/provider/user/useradd.rb +1 -1
  99. data/lib/puppet/rails/host.rb +1 -0
  100. data/lib/puppet/reference/configuration.rb +37 -34
  101. data/lib/puppet/reference/indirection.rb +3 -4
  102. data/lib/puppet/reference/metaparameter.rb +0 -8
  103. data/lib/puppet/reference/network.rb +6 -4
  104. data/lib/puppet/reference/providers.rb +4 -4
  105. data/lib/puppet/reference/report.rb +5 -6
  106. data/lib/puppet/reference/type.rb +14 -14
  107. data/lib/puppet/reports/http.rb +1 -1
  108. data/lib/puppet/reports/rrdgraph.rb +8 -9
  109. data/lib/puppet/reports/store.rb +2 -2
  110. data/lib/puppet/reports/tagmail.rb +12 -13
  111. data/lib/puppet/resource.rb +15 -115
  112. data/lib/puppet/resource/catalog.rb +1 -1
  113. data/lib/puppet/resource/type.rb +26 -3
  114. data/lib/puppet/resource/type_collection.rb +3 -6
  115. data/lib/puppet/simple_graph.rb +4 -5
  116. data/lib/puppet/transaction/resource_harness.rb +1 -1
  117. data/lib/puppet/type.rb +100 -92
  118. data/lib/puppet/type/augeas.rb +44 -45
  119. data/lib/puppet/type/computer.rb +2 -2
  120. data/lib/puppet/type/cron.rb +29 -29
  121. data/lib/puppet/type/exec.rb +66 -67
  122. data/lib/puppet/type/file.rb +25 -25
  123. data/lib/puppet/type/file/content.rb +7 -1
  124. data/lib/puppet/type/file/ensure.rb +13 -13
  125. data/lib/puppet/type/file/mode.rb +6 -6
  126. data/lib/puppet/type/file/selcontext.rb +5 -5
  127. data/lib/puppet/type/file/source.rb +36 -26
  128. data/lib/puppet/type/filebucket.rb +5 -6
  129. data/lib/puppet/type/group.rb +1 -2
  130. data/lib/puppet/type/host.rb +3 -6
  131. data/lib/puppet/type/k5login.rb +3 -3
  132. data/lib/puppet/type/macauthorization.rb +1 -2
  133. data/lib/puppet/type/mailalias.rb +0 -1
  134. data/lib/puppet/type/maillist.rb +0 -1
  135. data/lib/puppet/type/mcx.rb +9 -9
  136. data/lib/puppet/type/mount.rb +9 -10
  137. data/lib/puppet/type/notify.rb +0 -1
  138. data/lib/puppet/type/package.rb +34 -36
  139. data/lib/puppet/type/resources.rb +1 -5
  140. data/lib/puppet/type/schedule.rb +9 -12
  141. data/lib/puppet/type/selboolean.rb +2 -7
  142. data/lib/puppet/type/selmodule.rb +3 -4
  143. data/lib/puppet/type/service.rb +9 -9
  144. data/lib/puppet/type/ssh_authorized_key.rb +2 -3
  145. data/lib/puppet/type/sshkey.rb +4 -7
  146. data/lib/puppet/type/stage.rb +5 -4
  147. data/lib/puppet/type/tidy.rb +3 -3
  148. data/lib/puppet/type/user.rb +1 -2
  149. data/lib/puppet/type/whit.rb +7 -0
  150. data/lib/puppet/type/yumrepo.rb +16 -3
  151. data/lib/puppet/type/zfs.rb +1 -2
  152. data/lib/puppet/type/zone.rb +28 -28
  153. data/lib/puppet/type/zpool.rb +10 -5
  154. data/lib/puppet/util/autoload.rb +17 -5
  155. data/lib/puppet/util/cacher.rb +15 -10
  156. data/lib/puppet/util/command_line/puppetdoc +5 -5
  157. data/lib/puppet/util/command_line/puppetrun +0 -2
  158. data/lib/puppet/util/command_line/ralsh +13 -13
  159. data/lib/puppet/util/docs.rb +5 -12
  160. data/lib/puppet/util/monkey_patches.rb +5 -2
  161. data/lib/puppet/util/nagios_maker.rb +4 -5
  162. data/lib/puppet/util/provider_features.rb +2 -2
  163. data/lib/puppet/util/rdoc.rb +1 -1
  164. data/lib/puppet/util/rdoc/parser.rb +5 -3
  165. data/lib/puppet/util/reference.rb +3 -52
  166. data/man/man5/puppet.conf.5 +2072 -1526
  167. data/man/man8/filebucket.8 +104 -106
  168. data/man/man8/pi.8 +14 -47
  169. data/man/man8/puppet.8 +8 -9
  170. data/man/man8/puppetca.8 +168 -129
  171. data/man/man8/puppetd.8 +282 -226
  172. data/man/man8/puppetdoc.8 +103 -103
  173. data/man/man8/puppetmasterd.8 +51 -71
  174. data/man/man8/puppetqd.8 +18 -53
  175. data/man/man8/puppetrun.8 +163 -143
  176. data/man/man8/ralsh.8 +77 -114
  177. data/spec/integration/indirector/bucket_file/rest_spec.rb +1 -0
  178. data/spec/integration/indirector/certificate/rest_spec.rb +1 -0
  179. data/spec/integration/indirector/certificate_request/rest_spec.rb +1 -0
  180. data/spec/integration/indirector/certificate_revocation_list/rest_spec.rb +1 -0
  181. data/spec/integration/indirector/report/rest_spec.rb +1 -0
  182. data/spec/integration/indirector/rest_spec.rb +1 -0
  183. data/spec/integration/network/server/webrick_spec.rb +1 -0
  184. data/spec/integration/parser/compiler_spec.rb +43 -0
  185. data/spec/integration/provider/mailalias/aliases_spec.rb +5 -5
  186. data/spec/integration/ssl/certificate_authority_spec.rb +1 -0
  187. data/spec/integration/ssl/certificate_request_spec.rb +1 -0
  188. data/spec/integration/ssl/certificate_revocation_list_spec.rb +1 -0
  189. data/spec/integration/ssl/host_spec.rb +1 -0
  190. data/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb +0 -1
  191. data/spec/monkey_patches/publicize_methods.rb +11 -0
  192. data/spec/shared_behaviours/file_serving.rb +12 -1
  193. data/spec/spec_helper.rb +6 -25
  194. data/spec/unit/application/apply_spec.rb +22 -4
  195. data/spec/unit/application/cert_spec.rb +1 -1
  196. data/spec/unit/application/doc_spec.rb +0 -19
  197. data/spec/unit/application/master_spec.rb +1 -1
  198. data/spec/unit/application_spec.rb +2 -12
  199. data/spec/unit/indirector/node/ldap_spec.rb +19 -21
  200. data/spec/unit/indirector/yaml_spec.rb +18 -6
  201. data/spec/unit/network/http/rack/rest_spec.rb +3 -3
  202. data/spec/unit/network/http/webrick/rest_spec.rb +1 -0
  203. data/spec/unit/node/environment_spec.rb +32 -3
  204. data/spec/unit/node/facts_spec.rb +13 -2
  205. data/spec/unit/parameter/value_collection_spec.rb +2 -2
  206. data/spec/unit/parser/ast/leaf_spec.rb +4 -0
  207. data/spec/unit/parser/ast/resource_reference_spec.rb +0 -5
  208. data/spec/unit/parser/ast/resource_spec.rb +7 -0
  209. data/spec/unit/parser/compiler_spec.rb +12 -1
  210. data/spec/unit/parser/files_spec.rb +3 -3
  211. data/spec/unit/parser/functions/extlookup_spec.rb +95 -0
  212. data/spec/unit/parser/functions/include_spec.rb +33 -0
  213. data/spec/unit/parser/functions/require_spec.rb +1 -1
  214. data/spec/unit/parser/functions/tag_spec.rb +1 -0
  215. data/spec/unit/parser/lexer_spec.rb +10 -1
  216. data/spec/unit/parser/resource_spec.rb +3 -9
  217. data/spec/unit/parser/type_loader_spec.rb +1 -1
  218. data/spec/unit/provider/ssh_authorized_key/parsed_spec.rb +4 -2
  219. data/spec/unit/rails/resource_spec.rb +1 -1
  220. data/spec/unit/reports/tagmail_spec.rb +2 -2
  221. data/spec/unit/resource/catalog_spec.rb +1 -1
  222. data/spec/unit/resource/type_collection_spec.rb +35 -0
  223. data/spec/unit/resource/type_spec.rb +19 -1
  224. data/spec/unit/resource_spec.rb +0 -36
  225. data/spec/unit/simple_graph_spec.rb +12 -2
  226. data/spec/unit/transaction/resource_harness_spec.rb +1 -1
  227. data/spec/unit/type/file/content_spec.rb +2 -1
  228. data/spec/unit/type/schedule_spec.rb +1 -1
  229. data/spec/unit/type/service_spec.rb +8 -0
  230. data/spec/unit/type/user_spec.rb +5 -0
  231. data/spec/unit/util/backups_spec.rb +0 -1
  232. data/spec/unit/util/rdoc/parser_spec.rb +3 -3
  233. data/spec/unit/util/rdoc_spec.rb +13 -0
  234. data/test/certmgr/support.rb +2 -1
  235. data/test/language/parser.rb +6 -6
  236. data/test/lib/puppettest.rb +3 -23
  237. data/test/lib/puppettest/fakes.rb +1 -1
  238. data/test/lib/puppettest/support/assertions.rb +0 -2
  239. data/test/lib/puppettest/support/utils.rb +25 -20
  240. data/test/ral/manager/attributes.rb +4 -1
  241. metadata +15 -9
  242. data/conf/suse/puppet.suse.patch +0 -16
  243. data/ext/extlookup.rb +0 -181
  244. data/ext/puppetlast +0 -16
  245. data/tasks/rake/tracdocs.rake +0 -8
  246. data/test/lib/mocha_standalone.rb +0 -2
@@ -1,227 +1,283 @@
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
- .\"
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
227
3
  .
4
+ .TH "PUPPETD" "8" "August 2010" "" ""
5
+ puppet agent [\-D|\-\-daemonize|\-\-no\-daemonize] [\-d|\-\-debug]
6
+ .
7
+ .IP "" 4
8
+ .
9
+ .nf
10
+
11
+ [\-\-detailed\-exitcodes] [\-\-disable] [\-\-enable]
12
+ [\-h|\-\-help] [\-\-fqdn <host name>] [\-l|\-\-logdest syslog|<file>|console]
13
+ [\-o|\-\-onetime] [\-\-serve <handler>] [\-t|\-\-test] [\-\-noop]
14
+ [\-\-digest <digest>] [\-\-fingerprint] [\-V|\-\-version]
15
+ [\-v|\-\-verbose] [\-w|\-\-waitforcert <seconds>]
16
+ .
17
+ .fi
18
+ .
19
+ .IP "" 0
20
+ This is the main puppet client\. Its job is to retrieve the local machine\'s configuration from a remote server and apply it\. In order to successfully communicate with the remote server, the client must have a certificate signed by a certificate authority that the server trusts; the recommended method for this, at the moment, is to run a certificate authority as part of the puppet server (which is the default)\. The client will connect and request a signed certificate, and will continue connecting until it receives one\.
21
+ .
22
+ .P
23
+ Once the client has a signed certificate, it will retrieve its configuration and apply it\.+puppet agent+ does its best to find a compromise between interactive use and daemon use\. Run with no arguments and no configuration, it will go into the backgroun, attempt to get a signed certificate, and retrieve and apply its configuration every 30 minutes\.
24
+ .
25
+ .P
26
+ Some flags are meant specifically for interactive use \-\- in particular, +test+, +tags+ or +fingerprint+ are useful\. +test+ enables verbose logging, causes the daemon to stay in the foreground, exits if the server\'s configuration is invalid (this happens if, for instance, you\'ve left a syntax error on the server), and exits after running the configuration once (rather than hanging around as a long\-running process)\.
27
+ .
28
+ .P
29
+ +tags+ allows you to specify what portions of a configuration you want to apply\. Puppet elements are tagged with all of the class or definition names that contain them, and you can use the +tags+ flag to specify one of these names, causing only configuration elements contained within that class or definition to be applied\. This is very useful when you are testing new configurations \-\- for instance, if you are just starting to manage +ntpd+, you would put all of the new elements into an +ntpd+ class, and call puppet with +\-\-tags ntpd+, which would only apply that small portion of the configuration during your testing, rather than applying the whole thing\.
30
+ .
31
+ .P
32
+ +fingerprint+ is a one\-time flag\. In this mode +puppet agent+ will run once and display on the console (and in the log) the current certificate (or certificate request) fingerprint\. Providing the +\-\-digest+ option allows to use a different digest algorithm to generate the fingerprint\. The main use is to verify that before signing a certificate request on the master, the certificate request the master received is the same as the one the client sent (to prevent against man\-in\-the\-middle attacks when signing certificates)\.Note that any configuration parameter that\'s valid in the configuration file is also a valid long argument\. For example, \'server\' is a valid configuration parameter, so you can specify \'\-\-server \fIservername\fR\' as an argument\.
33
+ .
34
+ .P
35
+ See the configuration file documentation at http://docs\.puppetlabs\.com/references/stable/configuration\.html for the full list of acceptable parameters\. A commented list of all configuration options can also be generated by running puppet agent with \'\-\-genconfig\'\.
36
+ .
37
+ .P
38
+ daemonize: Send the process into the background\. This is the
39
+ .
40
+ .IP "" 4
41
+ .
42
+ .nf
43
+
44
+ default\.
45
+ .
46
+ .fi
47
+ .
48
+ .IP "" 0
49
+ .
50
+ .P
51
+ no\-daemonize: Do not send the process into the background\.
52
+ .
53
+ .P
54
+ debug: Enable full debugging\.
55
+ .
56
+ .P
57
+ digest: Change the certificate fingerprinting digest
58
+ .
59
+ .IP "" 4
60
+ .
61
+ .nf
62
+
63
+ algorithm\. The default is MD5\. Valid values depends
64
+ on the version of OpenSSL installed, but should
65
+ always at least contain MD5, MD2, SHA1 and SHA256\.
66
+ .
67
+ .fi
68
+ .
69
+ .IP "" 0
70
+ .
71
+ .P
72
+ detailed\-exitcodes: Provide transaction information via exit codes\. If
73
+ .
74
+ .IP "" 4
75
+ .
76
+ .nf
77
+
78
+ this is enabled, an exit code of \'2\' means there
79
+ were changes, and an exit code of \'4\' means that
80
+ there were failures during the transaction\. This
81
+ option only makes sense in conjunction with
82
+ \-\-onetime\.
83
+ .
84
+ .fi
85
+ .
86
+ .IP "" 0
87
+ .
88
+ .P
89
+ disable: Disable working on the local system\. This puts a
90
+ .
91
+ .IP "" 4
92
+ .
93
+ .nf
94
+
95
+ lock file in place, causing +puppet agent+ not to
96
+ work on the system until the lock file is removed\.
97
+ This is useful if you are testing a configuration
98
+ and do not want the central configuration to
99
+ override the local state until everything is tested
100
+ and committed\.
101
+ .
102
+ .fi
103
+ .
104
+ .IP "" 0
105
+ .
106
+ .P
107
+ +puppet agent+ uses the same lock file while it is running, so no more than one +puppet agent+ process is working at a time\.
108
+ .
109
+ .P
110
+ +puppet agent+ exits after executing this\.
111
+ .
112
+ .P
113
+ enable: Enable working on the local system\. This removes any
114
+ .
115
+ .IP "" 4
116
+ .
117
+ .nf
118
+
119
+ lock file, causing +puppet agent+ to start managing
120
+ the local system again (although it will continue to
121
+ use its normal scheduling, so it might not start for
122
+ another half hour)\.
123
+ .
124
+ .fi
125
+ .
126
+ .IP "" 0
127
+ .
128
+ .P
129
+ +puppet agent+ exits after executing this\.
130
+ .
131
+ .P
132
+ fqdn: Set the fully\-qualified domain name of the client\.
133
+ .
134
+ .IP "" 4
135
+ .
136
+ .nf
137
+
138
+ This is only used for certificate purposes, but can
139
+ be used to override the discovered hostname\. If you
140
+ need to use this flag, it is generally an indication
141
+ of a setup problem\.
142
+ .
143
+ .fi
144
+ .
145
+ .IP "" 0
146
+ .
147
+ .P
148
+ help: Print this help message
149
+ .
150
+ .P
151
+ logdest: Where to send messages\. Choose between syslog, the
152
+ .
153
+ .IP "" 4
154
+ .
155
+ .nf
156
+
157
+ console, and a log file\. Defaults to sending
158
+ messages to syslog, or the console if debugging or
159
+ verbosity is enabled\.
160
+ .
161
+ .fi
162
+ .
163
+ .IP "" 0
164
+ .
165
+ .P
166
+ no\-client: Do not create a config client\. This will cause the
167
+ .
168
+ .IP "" 4
169
+ .
170
+ .nf
171
+
172
+ daemon to run without ever checking for its
173
+ configuration automatically, and only makes sense
174
+ when used in conjunction with \-\-listen\.
175
+ .
176
+ .fi
177
+ .
178
+ .IP "" 0
179
+ .
180
+ .P
181
+ onetime: Run the configuration once\. Runs a single (normally
182
+ .
183
+ .IP "" 4
184
+ .
185
+ .nf
186
+
187
+ daemonized) Puppet run\. Useful for interactively
188
+ running puppet agent when used in conjunction with
189
+ the \-\-no\-daemonize option\.
190
+ .
191
+ .fi
192
+ .
193
+ .IP "" 0
194
+ .
195
+ .P
196
+ fingerprint: Display the current certificate or certificate
197
+ .
198
+ .IP "" 4
199
+ .
200
+ .nf
201
+
202
+ signing request fingerprint and then exit\. Use the
203
+ +\-\-digest+ option to change the digest algorithm
204
+ used\.
205
+ .
206
+ .fi
207
+ .
208
+ .IP "" 0
209
+ .
210
+ .P
211
+ serve: Start another type of server\. By default, +puppet
212
+ .
213
+ .IP "" 4
214
+ .
215
+ .nf
216
+
217
+ agent+ will start a service handler that allows
218
+ authenticated and authorized remote nodes to trigger
219
+ the configuration to be pulled down and applied\. You
220
+ can specify any handler here that does not require
221
+ configuration, e\.g\., filebucket, ca, or resource\.
222
+ The handlers are in +lib/puppet/network/handler+,
223
+ and the names must match exactly, both in the call
224
+ to +serve+ and in +namespaceauth\.conf+\.
225
+ .
226
+ .fi
227
+ .
228
+ .IP "" 0
229
+ .
230
+ .P
231
+ test: Enable the most common options used for testing\.
232
+ .
233
+ .IP "" 4
234
+ .
235
+ .nf
236
+
237
+ These are +onetime+, +verbose+, +ignorecache,
238
+ +no\-daemonize+, and +no\-usecacheonfailure+\.
239
+ .
240
+ .fi
241
+ .
242
+ .IP "" 0
243
+ .
244
+ .P
245
+ noop: Use +noop+ mode where the daemon runs in a no\-op or
246
+ .
247
+ .IP "" 4
248
+ .
249
+ .nf
250
+
251
+ dry\-run mode\. This is useful for seeing what changes
252
+ Puppet will make without actually executing the
253
+ changes\.
254
+ .
255
+ .fi
256
+ .
257
+ .IP "" 0
258
+ .
259
+ .P
260
+ verbose: Turn on verbose reporting\.
261
+ .
262
+ .P
263
+ version: Print the puppet version number and exit\.
264
+ .
265
+ .P
266
+ waitforcert: This option only matters for daemons that do not yet
267
+ .
268
+ .IP "" 4
269
+ .
270
+ .nf
271
+
272
+ have certificates and it is enabled by default, with
273
+ a value of 120 (seconds)\. This causes +puppet agent+
274
+ to connect to the server every 2 minutes and ask it
275
+ to sign a certificate request\. This is useful for
276
+ the initial setup of a puppet client\. You can turn
277
+ off waiting for certificates by specifying a time of
278
+ 0\.
279
+ .
280
+ .fi
281
+ .
282
+ .IP "" 0
283
+ puppet agent \-\-server puppet\.domain\.comLuke KaniesCopyright (c) 2005, 2006 Reductive Labs, LLC Licensed under the GNU Public License