puppet 4.10.9-universal-darwin → 4.10.10-universal-darwin

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 (104) hide show
  1. checksums.yaml +4 -4
  2. data/lib/puppet/agent.rb +22 -2
  3. data/lib/puppet/application.rb +18 -1
  4. data/lib/puppet/application/agent.rb +9 -2
  5. data/lib/puppet/application/apply.rb +1 -1
  6. data/lib/puppet/application/config.rb +1 -0
  7. data/lib/puppet/application/device.rb +1 -2
  8. data/lib/puppet/application/filebucket.rb +22 -5
  9. data/lib/puppet/application/help.rb +1 -0
  10. data/lib/puppet/application/inspect.rb +2 -0
  11. data/lib/puppet/application/lookup.rb +1 -3
  12. data/lib/puppet/application_support.rb +6 -1
  13. data/lib/puppet/defaults.rb +33 -4
  14. data/lib/puppet/face/config.rb +13 -0
  15. data/lib/puppet/functions/each.rb +10 -4
  16. data/lib/puppet/functions/lookup.rb +2 -2
  17. data/lib/puppet/functions/map.rb +12 -2
  18. data/lib/puppet/functions/reduce.rb +45 -2
  19. data/lib/puppet/interface.rb +1 -0
  20. data/lib/puppet/module_tool/tar/mini.rb +57 -4
  21. data/lib/puppet/network/http/factory.rb +9 -0
  22. data/lib/puppet/network/http/webrick.rb +1 -3
  23. data/lib/puppet/node.rb +10 -0
  24. data/lib/puppet/node/facts.rb +9 -0
  25. data/lib/puppet/parser/functions/sprintf.rb +17 -3
  26. data/lib/puppet/pops/loader/static_loader.rb +2 -2
  27. data/lib/puppet/pops/lookup/hiera_config.rb +2 -2
  28. data/lib/puppet/pops/merge_strategy.rb +16 -1
  29. data/lib/puppet/pops/types/iterable.rb +2 -0
  30. data/lib/puppet/pops/types/type_factory.rb +1 -1
  31. data/lib/puppet/pops/types/type_mismatch_describer.rb +15 -5
  32. data/lib/puppet/pops/types/types.rb +4 -2
  33. data/lib/puppet/provider/service/smf.rb +2 -2
  34. data/lib/puppet/provider/service/systemd.rb +1 -0
  35. data/lib/puppet/provider/service/upstart.rb +1 -1
  36. data/lib/puppet/settings/environment_conf.rb +10 -2
  37. data/lib/puppet/transaction.rb +3 -0
  38. data/lib/puppet/transaction/report.rb +8 -1
  39. data/lib/puppet/type.rb +1 -9
  40. data/lib/puppet/type/user.rb +9 -3
  41. data/lib/puppet/util/http_proxy.rb +14 -6
  42. data/lib/puppet/version.rb +1 -1
  43. data/locales/puppet.pot +29 -13
  44. data/man/man5/puppet.conf.5 +276 -55
  45. data/man/man8/extlookup2hiera.8 +2 -2
  46. data/man/man8/puppet-agent.8 +32 -10
  47. data/man/man8/puppet-apply.8 +21 -6
  48. data/man/man8/puppet-ca.8 +48 -34
  49. data/man/man8/puppet-catalog.8 +4 -4
  50. data/man/man8/puppet-cert.8 +23 -6
  51. data/man/man8/puppet-certificate.8 +44 -28
  52. data/man/man8/puppet-certificate_request.8 +4 -4
  53. data/man/man8/puppet-certificate_revocation_list.8 +4 -4
  54. data/man/man8/puppet-config.8 +5 -5
  55. data/man/man8/puppet-describe.8 +3 -3
  56. data/man/man8/puppet-device.8 +23 -13
  57. data/man/man8/puppet-doc.8 +5 -5
  58. data/man/man8/puppet-epp.8 +16 -10
  59. data/man/man8/puppet-facts.8 +4 -4
  60. data/man/man8/puppet-file.8 +4 -4
  61. data/man/man8/puppet-filebucket.8 +63 -6
  62. data/man/man8/puppet-generate.8 +84 -0
  63. data/man/man8/puppet-help.8 +4 -4
  64. data/man/man8/puppet-inspect.8 +8 -5
  65. data/man/man8/puppet-key.8 +4 -4
  66. data/man/man8/puppet-lookup.8 +87 -0
  67. data/man/man8/puppet-man.8 +5 -5
  68. data/man/man8/puppet-master.8 +5 -5
  69. data/man/man8/puppet-module.8 +22 -13
  70. data/man/man8/puppet-node.8 +4 -4
  71. data/man/man8/puppet-parser.8 +4 -4
  72. data/man/man8/puppet-plugin.8 +4 -4
  73. data/man/man8/puppet-report.8 +4 -4
  74. data/man/man8/puppet-resource.8 +4 -8
  75. data/man/man8/puppet-resource_type.8 +4 -4
  76. data/man/man8/puppet-status.8 +5 -5
  77. data/man/man8/puppet.8 +12 -3
  78. data/spec/fixtures/unit/application/environments/production/data/common.yaml +2 -0
  79. data/spec/integration/agent/logging_spec.rb +2 -0
  80. data/spec/integration/provider/cron/crontab_spec.rb +1 -0
  81. data/spec/unit/agent_spec.rb +33 -0
  82. data/spec/unit/application/config_spec.rb +4 -0
  83. data/spec/unit/application/inspect_spec.rb +11 -0
  84. data/spec/unit/application/lookup_spec.rb +30 -0
  85. data/spec/unit/application_spec.rb +18 -0
  86. data/spec/unit/environments_spec.rb +15 -0
  87. data/spec/unit/face/config_spec.rb +1 -2
  88. data/spec/unit/functions/break_spec.rb +108 -49
  89. data/spec/unit/functions/defined_spec.rb +2 -2
  90. data/spec/unit/functions/lookup_spec.rb +88 -3
  91. data/spec/unit/interface_spec.rb +12 -0
  92. data/spec/unit/module_tool/tar/mini_spec.rb +34 -5
  93. data/spec/unit/network/http/factory_spec.rb +22 -0
  94. data/spec/unit/network/http/webrick_spec.rb +30 -29
  95. data/spec/unit/parser/functions/sprintf_spec.rb +26 -0
  96. data/spec/unit/pops/loaders/static_loader_spec.rb +1 -1
  97. data/spec/unit/pops/types/type_calculator_spec.rb +21 -0
  98. data/spec/unit/pops/types/type_mismatch_describer_spec.rb +9 -0
  99. data/spec/unit/provider/service/smf_spec.rb +2 -4
  100. data/spec/unit/provider/service/systemd_spec.rb +14 -0
  101. data/spec/unit/resource/catalog_spec.rb +10 -0
  102. data/spec/unit/transaction/report_spec.rb +19 -0
  103. data/spec/unit/util/http_proxy_spec.rb +37 -0
  104. metadata +4 -2
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
- .\" https://github.com/rtomayko/ronn/tree/0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "EXTLOOKUP2HIERA" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "EXTLOOKUP2HIERA" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBextlookup2hiera\fR
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
- .\" https://github.com/rtomayko/ronn/tree/0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-AGENT" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-AGENT" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-agent\fR \- The puppet agent daemon
@@ -13,7 +13,7 @@ Retrieves the client configuration from the puppet master and applies it to the
13
13
  This service may be run as a daemon, run periodically using cron (or something similar), or run interactively for testing purposes\.
14
14
  .
15
15
  .SH "USAGE"
16
- puppet agent [\-\-certname \fINAME\fR] [\-D|\-\-daemonize|\-\-no\-daemonize] [\-d|\-\-debug] [\-\-detailed\-exitcodes] [\-\-digest \fIDIGEST\fR] [\-\-disable [MESSAGE]] [\-\-enable] [\-\-fingerprint] [\-h|\-\-help] [\-l|\-\-logdest syslog|eventlog|\fIFILE\fR|console] [\-\-masterport \fIPORT\fR] [\-\-noop] [\-o|\-\-onetime] [\-t|\-\-test] [\-v|\-\-verbose] [\-V|\-\-version] [\-w|\-\-waitforcert \fISECONDS\fR]
16
+ puppet agent [\-\-certname \fINAME\fR] [\-D|\-\-daemonize|\-\-no\-daemonize] [\-d|\-\-debug] [\-\-detailed\-exitcodes] [\-\-digest \fIDIGEST\fR] [\-\-disable [MESSAGE]] [\-\-enable] [\-\-fingerprint] [\-h|\-\-help] [\-l|\-\-logdest syslog|eventlog|\fIABS FILEPATH\fR|console] [\-\-masterport \fIPORT\fR] [\-\-noop] [\-o|\-\-onetime] [\-\-sourceaddress \fIIP_ADDRESS\fR] [\-t|\-\-test] [\-v|\-\-verbose] [\-V|\-\-version] [\-w|\-\-waitforcert \fISECONDS\fR]
17
17
  .
18
18
  .SH "DESCRIPTION"
19
19
  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\.
@@ -25,19 +25,22 @@ Once the client has a signed certificate, it will retrieve its configuration and
25
25
  \'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 background, attempt to get a signed certificate, and retrieve and apply its configuration every 30 minutes\.
26
26
  .
27
27
  .P
28
- 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)\.
28
+ Some flags are meant specifically for interactive use \-\- in particular, \'test\', \'tags\' and \'fingerprint\' are useful\.
29
29
  .
30
30
  .P
31
- \'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\.
31
+ \'\-\-test\' does a single run in the foreground with verbose logging, then exits\. It will also exit if it can\'t get a valid catalog\. The exit code after running with \'\-\-test\' is 0 if the catalog was successfully applied, and 1 if the run either failed or wasn\'t attempted (due to another run already in progress)\.
32
32
  .
33
33
  .P
34
- \'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)\.
34
+ \'\-\-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\.
35
+ .
36
+ .P
37
+ \'\-\-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)\.
35
38
  .
36
39
  .SH "OPTIONS"
37
40
  Note that any Puppet setting that\'s valid in the configuration file is also a valid long argument\. For example, \'server\' is a valid setting, so you can specify \'\-\-server \fIservername\fR\' as an argument\. Boolean settings translate into \'\-\-setting\' and \'\-\-no\-setting\' pairs\.
38
41
  .
39
42
  .P
40
- See the configuration file documentation at https://docs\.puppetlabs\.com/references/stable/configuration\.html for the full list of acceptable settings\. A commented list of all settings can also be generated by running puppet agent with \'\-\-genconfig\'\.
43
+ See the configuration file documentation at https://docs\.puppetlabs\.com/puppet/latest/reference/configuration\.html for the full list of acceptable settings\. A commented list of all settings can also be generated by running puppet agent with \'\-\-genconfig\'\.
41
44
  .
42
45
  .TP
43
46
  \-\-certname
@@ -57,7 +60,22 @@ Enable full debugging\.
57
60
  .
58
61
  .TP
59
62
  \-\-detailed\-exitcodes
60
- Provide transaction information via exit codes\. If this is enabled, an exit code of \'2\' means there were changes, an exit code of \'4\' means there were failures during the transaction, and an exit code of \'6\' means there were both changes and failures\.
63
+ Provide extra information about the run via exit codes; only works if \'\-\-test\' or \'\-\-onetime\' is also specified\. If enabled, \'puppet agent\' will use the following exit codes:
64
+ .
65
+ .IP
66
+ 0: The run succeeded with no changes or failures; the system was already in the desired state\.
67
+ .
68
+ .IP
69
+ 1: The run failed, or wasn\'t attempted due to another run already in progress\.
70
+ .
71
+ .IP
72
+ 2: The run succeeded, and some resources were changed\.
73
+ .
74
+ .IP
75
+ 4: The run succeeded, and some resources failed\.
76
+ .
77
+ .IP
78
+ 6: The run succeeded, and included both changes and failures\.
61
79
  .
62
80
  .TP
63
81
  \-\-digest
@@ -111,8 +129,12 @@ Use \'noop\' mode where the daemon runs in a no\-op or dry\-run mode\. This is u
111
129
  Run the configuration once\. Runs a single (normally daemonized) Puppet run\. Useful for interactively running puppet agent when used in conjunction with the \-\-no\-daemonize option\. (This is a Puppet setting, and can go in puppet\.conf\. Note the special \'no\-\' prefix for boolean settings on the command line\.)
112
130
  .
113
131
  .TP
132
+ \-\-sourceaddress
133
+ Set the source IP address for transactions\. This defaults to automatically selected\. (This is a Puppet setting, and can go in puppet\.conf\.)
134
+ .
135
+ .TP
114
136
  \-\-test
115
- Enable the most common options used for testing\. These are \'onetime\', \'verbose\', \'ignorecache\', \'no\-daemonize\', \'no\-usecacheonfailure\', \'detailed\-exitcodes\', \'no\-splay\', and \'show_diff\'\.
137
+ Enable the most common options used for testing\. These are \'onetime\', \'verbose\', \'no\-daemonize\', \'no\-usecacheonfailure\', \'detailed\-exitcodes\', \'no\-splay\', \'show_diff\', and \'no\-use_cached_catalog\'\.
116
138
  .
117
139
  .TP
118
140
  \-\-verbose
@@ -157,4 +179,4 @@ Close file descriptors for log files and reopen them\. Used with logrotate\.
157
179
  Luke Kanies
158
180
  .
159
181
  .SH "COPYRIGHT"
160
- Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2\.0 License
182
+ Copyright (c) 2011 Puppet Inc\., LLC Licensed under the Apache 2\.0 License
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
- .\" https://github.com/rtomayko/ronn/tree/0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-APPLY" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-APPLY" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-apply\fR \- Apply Puppet manifests locally
@@ -10,7 +10,7 @@
10
10
  Applies a standalone Puppet manifest to the local system\.
11
11
  .
12
12
  .SH "USAGE"
13
- puppet apply [\-h|\-\-help] [\-V|\-\-version] [\-d|\-\-debug] [\-v|\-\-verbose] [\-e|\-\-execute] [\-\-detailed\-exitcodes] [\-L|\-\-loadclasses] [\-l|\-\-logdest syslog|eventlog|\fIFILE\fR|console] [\-\-noop] [\-\-catalog \fIcatalog\fR] [\-\-write\-catalog\-summary] \fIfile\fR
13
+ puppet apply [\-h|\-\-help] [\-V|\-\-version] [\-d|\-\-debug] [\-v|\-\-verbose] [\-e|\-\-execute] [\-\-detailed\-exitcodes] [\-L|\-\-loadclasses] [\-l|\-\-logdest syslog|eventlog|\fIABS FILEPATH\fR|console] [\-\-noop] [\-\-catalog \fIcatalog\fR] [\-\-write\-catalog\-summary] \fIfile\fR
14
14
  .
15
15
  .SH "DESCRIPTION"
16
16
  This is the standalone puppet execution tool; use it to apply individual manifests\.
@@ -25,13 +25,28 @@ Most users should use \'puppet agent\' and \'puppet master\' for site\-wide mani
25
25
  Note that any setting that\'s valid in the configuration file is also a valid long argument\. For example, \'tags\' is a valid setting, so you can specify \'\-\-tags \fIclass\fR,\fItag\fR\' as an argument\.
26
26
  .
27
27
  .P
28
- See the configuration file documentation at https://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 with \'\-\-genconfig\'\.
28
+ See the configuration file documentation at https://docs\.puppetlabs\.com/puppet/latest/reference/configuration\.html for the full list of acceptable parameters\. A commented list of all configuration options can also be generated by running puppet with \'\-\-genconfig\'\.
29
29
  .
30
30
  .IP "\(bu" 4
31
31
  \-\-debug: Enable full debugging\.
32
32
  .
33
33
  .IP "\(bu" 4
34
- \-\-detailed\-exitcodes: Provide transaction information via exit codes\. If this is enabled, an exit code of \'2\' means there were changes, an exit code of \'4\' means there were failures during the transaction, and an exit code of \'6\' means there were both changes and failures\.
34
+ \-\-detailed\-exitcodes: Provide extra information about the run via exit codes\. If enabled, \'puppet apply\' will use the following exit codes:
35
+ .
36
+ .IP
37
+ 0: The run succeeded with no changes or failures; the system was already in the desired state\.
38
+ .
39
+ .IP
40
+ 1: The run failed\.
41
+ .
42
+ .IP
43
+ 2: The run succeeded, and some resources were changed\.
44
+ .
45
+ .IP
46
+ 4: The run succeeded, and some resources failed\.
47
+ .
48
+ .IP
49
+ 6: The run succeeded, and included both changes and failures\.
35
50
  .
36
51
  .IP "\(bu" 4
37
52
  \-\-help: Print this help message
@@ -79,4 +94,4 @@ $ puppet apply \-\-catalog catalog\.json
79
94
  Luke Kanies
80
95
  .
81
96
  .SH "COPYRIGHT"
82
- Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2\.0 License
97
+ Copyright (c) 2011 Puppet Inc\., LLC Licensed under the Apache 2\.0 License
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
- .\" https://github.com/rtomayko/ronn/tree/0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-CA" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-CA" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-ca\fR \- Local Puppet Certificate Authority management\.
@@ -19,7 +19,7 @@ You can use this subcommand to sign outstanding certificate requests, list and m
19
19
  Note that any setting that\'s valid in the configuration file is also a valid long argument, although it may or may not be relevant to the present action\. For example, \fBserver\fR and \fBrun_mode\fR are valid settings, so you can specify \fB\-\-server <servername>\fR, or \fB\-\-run_mode <runmode>\fR as an argument\.
20
20
  .
21
21
  .P
22
- See the configuration file documentation at \fIhttps://docs\.puppetlabs\.com/references/stable/configuration\.html\fR for the full list of acceptable parameters\. A commented list of all configuration options can also be generated by running puppet with \fB\-\-genconfig\fR\.
22
+ See the configuration file documentation at \fIhttps://docs\.puppetlabs\.com/puppet/latest/reference/configuration\.html\fR for the full list of acceptable parameters\. A commented list of all configuration options can also be generated by running puppet with \fB\-\-genconfig\fR\.
23
23
  .
24
24
  .TP
25
25
  \-\-render\-as FORMAT
@@ -35,9 +35,8 @@ Whether to log debug information\.
35
35
  .
36
36
  .SH "ACTIONS"
37
37
  .
38
- .TP
39
- \fBdestroy\fR \- Destroy named certificate or pending certificate request\.
40
- \fBSYNOPSIS\fR
38
+ .IP "\(bu" 4
39
+ \fBdestroy\fR \- Destroy named certificate or pending certificate request\.: \fBSYNOPSIS\fR
41
40
  .
42
41
  .IP
43
42
  puppet ca destroy
@@ -48,9 +47,8 @@ puppet ca destroy
48
47
  .IP
49
48
  Destroy named certificate or pending certificate request\.
50
49
  .
51
- .TP
52
- \fBfingerprint\fR \- Print the DIGEST (defaults to the signing algorithm) fingerprint of a host\'s certificate\.
53
- \fBSYNOPSIS\fR
50
+ .IP "\(bu" 4
51
+ \fBfingerprint\fR \- Print the DIGEST (defaults to the signing algorithm) fingerprint of a host\'s certificate\.: \fBSYNOPSIS\fR
54
52
  .
55
53
  .IP
56
54
  puppet ca fingerprint [\-\-digest ALGORITHM]
@@ -64,9 +62,8 @@ Print the DIGEST (defaults to the signing algorithm) fingerprint of a host\'s ce
64
62
  .IP
65
63
  \fBOPTIONS\fR \fI\-\-digest ALGORITHM\fR \- The hash algorithm to use when displaying the fingerprint
66
64
  .
67
- .TP
68
- \fBgenerate\fR \- Generate a certificate for a named client\.
69
- \fBSYNOPSIS\fR
65
+ .IP "\(bu" 4
66
+ \fBgenerate\fR \- Generate a certificate for a named client\.: \fBSYNOPSIS\fR
70
67
  .
71
68
  .IP
72
69
  puppet ca generate [\-\-dns\-alt\-names NAMES]
@@ -78,23 +75,42 @@ puppet ca generate [\-\-dns\-alt\-names NAMES]
78
75
  Generate a certificate for a named client\.
79
76
  .
80
77
  .IP
81
- \fBOPTIONS\fR \fI\-\-dns\-alt\-names NAMES\fR \- The comma\-separated list of alternative DNS names to use for the local host\.
78
+ \fBOPTIONS\fR \fI\-\-dns\-alt\-names NAMES\fR \- A comma\-separated list of alternate DNS names for Puppet Server\. These are extra hostnames (in addition to its \fBcertname\fR) that the server is allowed to use when serving agents\. Puppet checks this setting when automatically requesting a certificate for Puppet agent or Puppet Server, and when manually generating a certificate with \fBpuppet cert generate\fR\.
82
79
  .
83
80
  .IP
84
- When the node generates a CSR for itself, these are added to the request as the desired \fBsubjectAltName\fR in the certificate: additional DNS labels that the certificate is also valid answering as\.
81
+ In order to handle agent requests at a given hostname (like "puppet\.example\.com"), Puppet Server needs a certificate that proves it\'s allowed to use that name; if a server shows a certificate that doesn\'t include its hostname, Puppet agents will refuse to trust it\. If you use a single hostname for Puppet traffic but load\-balance it to multiple Puppet Servers, each of those servers needs to include the official hostname in its list of extra names\.
85
82
  .
86
83
  .IP
87
- This is generally required if you use a non\-hostname \fBcertname\fR, or if you want to use \fBpuppet kick\fR or \fBpuppet resource \-H\fR and the primary certname does not match the DNS name you use to communicate with the host\.
84
+ \fBNote:\fR The list of alternate names is locked in when the server\'s certificate is signed\. If you need to change the list later, you can\'t just change this setting; you also need to:
88
85
  .
89
- .IP
90
- This is unnecessary for agents, unless you intend to use them as a server for \fBpuppet kick\fR or remote \fBpuppet resource\fR management\.
86
+ .IP "\(bu" 4
87
+ On the server: Stop Puppet Server\.
88
+ .
89
+ .IP "\(bu" 4
90
+ On the CA server: Revoke and clean the server\'s old certificate\. (\fBpuppet cert clean <NAME>\fR)
91
+ .
92
+ .IP "\(bu" 4
93
+ On the server: Delete the old certificate (and any old certificate signing requests) from the ssldir \fIhttps://docs\.puppetlabs\.com/puppet/latest/reference/dirs_ssldir\.html\fR\.
94
+ .
95
+ .IP "\(bu" 4
96
+ On the server: Run \fBpuppet agent \-t \-\-ca_server <CA HOSTNAME>\fR to request a new certificate
97
+ .
98
+ .IP "\(bu" 4
99
+ On the CA server: Sign the certificate request, explicitly allowing alternate names (\fBpuppet cert sign \-\-allow\-dns\-alt\-names <NAME>\fR)\.
100
+ .
101
+ .IP "\(bu" 4
102
+ On the server: Run \fBpuppet agent \-t \-\-ca_server <CA HOSTNAME>\fR to retrieve the cert\.
103
+ .
104
+ .IP "\(bu" 4
105
+ On the server: Start Puppet Server again\.
106
+ .
107
+ .IP "" 0
91
108
  .
92
109
  .IP
93
- It is rarely necessary for servers; it is usually helpful only if you need to have a pool of multiple load balanced masters, or for the same master to respond on two physically separate networks under different names\.
110
+ To see all the alternate names your servers are using, log into your CA server and run \fBpuppet cert list \-a\fR, then check the output for \fB(alt names: \.\.\.)\fR\. Most agent nodes should NOT have alternate names; the only certs that should have them are Puppet Server nodes that you want other agents to trust\.
94
111
  .
95
- .TP
96
- \fBlist\fR \- List certificates and/or certificate requests\.
97
- \fBSYNOPSIS\fR
112
+ .IP "\(bu" 4
113
+ \fBlist\fR \- List certificates and/or certificate requests\.: \fBSYNOPSIS\fR
98
114
  .
99
115
  .IP
100
116
  puppet ca list [\-\-[no\-]all] [\-\-[no\-]pending] [\-\-[no\-]signed] [\-\-digest ALGORITHM] [\-\-subject PATTERN]
@@ -123,9 +139,8 @@ This will list the current certificates and certificate signing requests in the
123
139
  .IP
124
140
  PATTERN is interpreted as a regular expression, allowing complex filtering of the content\.
125
141
  .
126
- .TP
127
- \fBprint\fR \- Print the full\-text version of a host\'s certificate\.
128
- \fBSYNOPSIS\fR
142
+ .IP "\(bu" 4
143
+ \fBprint\fR \- Print the full\-text version of a host\'s certificate\.: \fBSYNOPSIS\fR
129
144
  .
130
145
  .IP
131
146
  puppet ca print
@@ -136,9 +151,8 @@ puppet ca print
136
151
  .IP
137
152
  Print the full\-text version of a host\'s certificate\.
138
153
  .
139
- .TP
140
- \fBrevoke\fR \- Add certificate to certificate revocation list\.
141
- \fBSYNOPSIS\fR
154
+ .IP "\(bu" 4
155
+ \fBrevoke\fR \- Add certificate to certificate revocation list\.: \fBSYNOPSIS\fR
142
156
  .
143
157
  .IP
144
158
  puppet ca revoke
@@ -149,9 +163,8 @@ puppet ca revoke
149
163
  .IP
150
164
  Add certificate to certificate revocation list\.
151
165
  .
152
- .TP
153
- \fBsign\fR \- Sign an outstanding certificate request\.
154
- \fBSYNOPSIS\fR
166
+ .IP "\(bu" 4
167
+ \fBsign\fR \- Sign an outstanding certificate request\.: \fBSYNOPSIS\fR
155
168
  .
156
169
  .IP
157
170
  puppet ca sign [\-\-[no\-]allow\-dns\-alt\-names]
@@ -165,9 +178,8 @@ Sign an outstanding certificate request\.
165
178
  .IP
166
179
  \fBOPTIONS\fR \fI\-\-[no\-]allow\-dns\-alt\-names\fR \- Whether or not to accept DNS alt names in the certificate request
167
180
  .
168
- .TP
169
- \fBverify\fR \- Verify the named certificate against the local CA certificate\.
170
- \fBSYNOPSIS\fR
181
+ .IP "\(bu" 4
182
+ \fBverify\fR \- Verify the named certificate against the local CA certificate\.: \fBSYNOPSIS\fR
171
183
  .
172
184
  .IP
173
185
  puppet ca verify
@@ -178,5 +190,7 @@ puppet ca verify
178
190
  .IP
179
191
  Verify the named certificate against the local CA certificate\.
180
192
  .
193
+ .IP "" 0
194
+ .
181
195
  .SH "COPYRIGHT AND LICENSE"
182
- Copyright 2011 by Puppet Labs Apache 2 license; see COPYING
196
+ Copyright 2011 by Puppet Inc\. Apache 2 license; see COPYING
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
- .\" https://github.com/rtomayko/ronn/tree/0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-CATALOG" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-CATALOG" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-catalog\fR \- Compile, save, view, and convert catalogs\.
@@ -16,7 +16,7 @@ This subcommand deals with catalogs, which are compiled per\-node artifacts gene
16
16
  Note that any setting that\'s valid in the configuration file is also a valid long argument, although it may or may not be relevant to the present action\. For example, \fBserver\fR and \fBrun_mode\fR are valid settings, so you can specify \fB\-\-server <servername>\fR, or \fB\-\-run_mode <runmode>\fR as an argument\.
17
17
  .
18
18
  .P
19
- See the configuration file documentation at \fIhttps://docs\.puppetlabs\.com/references/stable/configuration\.html\fR for the full list of acceptable parameters\. A commented list of all configuration options can also be generated by running puppet with \fB\-\-genconfig\fR\.
19
+ See the configuration file documentation at \fIhttps://docs\.puppetlabs\.com/puppet/latest/reference/configuration\.html\fR for the full list of acceptable parameters\. A commented list of all configuration options can also be generated by running puppet with \fB\-\-genconfig\fR\.
20
20
  .
21
21
  .TP
22
22
  \-\-render\-as FORMAT
@@ -260,4 +260,4 @@ This subcommand is an indirector face, which exposes \fBfind\fR, \fBsearch\fR, \
260
260
  .IP "" 0
261
261
  .
262
262
  .SH "COPYRIGHT AND LICENSE"
263
- Copyright 2011 by Puppet Labs Apache 2 license; see COPYING
263
+ Copyright 2011 by Puppet Inc\. Apache 2 license; see COPYING
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
- .\" https://github.com/rtomayko/ronn/tree/0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-CERT" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-CERT" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-cert\fR \- Manage certificates and requests
@@ -18,6 +18,9 @@ Because the puppet master service defaults to not signing client certificate req
18
18
  .SH "ACTIONS"
19
19
  Every action except \'list\' and \'generate\' requires a hostname to act on, unless the \'\-\-all\' option is set\.
20
20
  .
21
+ .P
22
+ The most important actions for day\-to\-day use are \'list\' and \'sign\'\.
23
+ .
21
24
  .TP
22
25
  clean
23
26
  Revoke a host\'s certificate (if applicable) and remove all files related to that host from puppet cert\'s storage\. This is useful when rebuilding hosts, since new certificate signing requests will only be honored if puppet cert does not have a copy of a signed certificate for that host\. If \'\-\-all\' is specified then all host certificates, both signed and unsigned, will be removed\.
@@ -32,7 +35,7 @@ Generate a certificate for a named client\. A certificate/keypair will be genera
32
35
  .
33
36
  .TP
34
37
  list
35
- List outstanding certificate requests\. If \'\-\-all\' is specified, signed certificates are also listed, prefixed by \'+\', and revoked or invalid certificates are prefixed by \'\-\' (the verification outcome is printed in parenthesis)\.
38
+ List outstanding certificate requests\. If \'\-\-all\' is specified, signed certificates are also listed, prefixed by \'+\', and revoked or invalid certificates are prefixed by \'\-\' (the verification outcome is printed in parenthesis)\. If \'\-\-human\-readable\' or \'\-H\' is specified, certificates are formatted in a way to improve human scan\-ability\. If \'\-\-machine\-readable\' or \'\-m\' is specified, output is formatted concisely for consumption by a script\.
36
39
  .
37
40
  .TP
38
41
  print
@@ -44,7 +47,7 @@ Revoke the certificate of a client\. The certificate can be specified either by
44
47
  .
45
48
  .TP
46
49
  sign
47
- Sign an outstanding certificate request\.
50
+ Sign an outstanding certificate request\. If \'\-\-interactive\' or \'\-i\' is supplied the user will be prompted to confirm that they are signing the correct certificate (recommended)\. If \'\-\-assume\-yes\' or \'\-y\' is supplied the interactive prompt will assume the answer of \'yes\'\.
48
51
  .
49
52
  .TP
50
53
  verify
@@ -58,13 +61,27 @@ Build an inventory of the issued certificates\. This will destroy the current in
58
61
  Note that any setting that\'s valid in the configuration file is also a valid long argument\. For example, \'ssldir\' is a valid setting, so you can specify \'\-\-ssldir \fIdirectory\fR\' as an argument\.
59
62
  .
60
63
  .P
61
- See the configuration file documentation at https://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 cert with \'\-\-genconfig\'\.
64
+ See the configuration file documentation at https://docs\.puppetlabs\.com/puppet/latest/reference/configuration\.html for the full list of acceptable parameters\. A commented list of all configuration options can also be generated by running puppet cert with \'\-\-genconfig\'\.
62
65
  .
63
66
  .TP
64
67
  \-\-all
65
68
  Operate on all items\. Currently only makes sense with the \'sign\', \'list\', and \'fingerprint\' actions\.
66
69
  .
67
70
  .TP
71
+ \-\-allow\-dns\-alt\-names
72
+ Sign a certificate request even if it contains one or more alternate DNS names\. If this option isn\'t specified, \'puppet cert sign\' will ignore any requests that contain alternate names\.
73
+ .
74
+ .IP
75
+ In general, ONLY certs intended for a Puppet master server should include alternate DNS names, since Puppet agent relies on those names for identifying its rightful server\.
76
+ .
77
+ .IP
78
+ You can make Puppet agent request a certificate with alternate names by setting \'dns_alt_names\' in puppet\.conf or specifying \'\-\-dns_alt_names\' on the command line\. The output of \'puppet cert list\' shows any requested alt names for pending certificate requests\.
79
+ .
80
+ .TP
81
+ \-\-allow\-authorization\-extensions
82
+ Enable the signing of a request with authorization extensions\. Such requests are sensitive because they can be used to write access rules in Puppet Server\. Currently, this is the only means by which such requests can be signed\.
83
+ .
84
+ .TP
68
85
  \-\-digest
69
86
  Set the digest for fingerprinting (defaults to the digest used when signing the cert)\. Valid values depends on your openssl and openssl ruby extension version\.
70
87
  .
@@ -98,4 +115,4 @@ $ puppet cert sign culain\.madstop\.com
98
115
  Luke Kanies
99
116
  .
100
117
  .SH "COPYRIGHT"
101
- Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2\.0 License
118
+ Copyright (c) 2011 Puppet Inc\., LLC Licensed under the Apache 2\.0 License
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
- .\" https://github.com/rtomayko/ronn/tree/0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PUPPET\-CERTIFICATE" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-CERTIFICATE" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-certificate\fR \- Provide access to the CA for certificate management\.
@@ -16,7 +16,7 @@ This subcommand interacts with a local or remote Puppet certificate authority\.
16
16
  Note that any setting that\'s valid in the configuration file is also a valid long argument, although it may or may not be relevant to the present action\. For example, \fBserver\fR and \fBrun_mode\fR are valid settings, so you can specify \fB\-\-server <servername>\fR, or \fB\-\-run_mode <runmode>\fR as an argument\.
17
17
  .
18
18
  .P
19
- See the configuration file documentation at \fIhttps://docs\.puppetlabs\.com/references/stable/configuration\.html\fR for the full list of acceptable parameters\. A commented list of all configuration options can also be generated by running puppet with \fB\-\-genconfig\fR\.
19
+ See the configuration file documentation at \fIhttps://docs\.puppetlabs\.com/puppet/latest/reference/configuration\.html\fR for the full list of acceptable parameters\. A commented list of all configuration options can also be generated by running puppet with \fB\-\-genconfig\fR\.
20
20
  .
21
21
  .TP
22
22
  \-\-render\-as FORMAT
@@ -53,9 +53,8 @@ The terminus for an action is often determined by context, but occasionally need
53
53
  .
54
54
  .SH "ACTIONS"
55
55
  .
56
- .TP
57
- \fBdestroy\fR \- Delete a certificate\.
58
- \fBSYNOPSIS\fR
56
+ .IP "\(bu" 4
57
+ \fBdestroy\fR \- Delete a certificate\.: \fBSYNOPSIS\fR
59
58
  .
60
59
  .IP
61
60
  puppet certificate destroy [\-\-terminus TERMINUS] [\-\-extra HASH] \fI\-\-ca\-location LOCATION\fR \fIhost\fR
@@ -72,9 +71,8 @@ Deletes a certificate\. This action currently only works on the local CA\.
72
71
  .IP
73
72
  Nothing\.
74
73
  .
75
- .TP
76
- \fBfind\fR \- Retrieve a certificate\.
77
- \fBSYNOPSIS\fR
74
+ .IP "\(bu" 4
75
+ \fBfind\fR \- Retrieve a certificate\.: \fBSYNOPSIS\fR
78
76
  .
79
77
  .IP
80
78
  puppet certificate find [\-\-terminus TERMINUS] [\-\-extra HASH] \fI\-\-ca\-location LOCATION\fR \fIhost\fR
@@ -94,9 +92,8 @@ An x509 SSL certificate\.
94
92
  .IP
95
93
  Note that this action has a side effect of caching a copy of the certificate in Puppet\'s \fBssldir\fR\.
96
94
  .
97
- .TP
98
- \fBgenerate\fR \- Generate a new certificate signing request\.
99
- \fBSYNOPSIS\fR
95
+ .IP "\(bu" 4
96
+ \fBgenerate\fR \- Generate a new certificate signing request\.: \fBSYNOPSIS\fR
100
97
  .
101
98
  .IP
102
99
  puppet certificate generate [\-\-terminus TERMINUS] [\-\-extra HASH] \fI\-\-ca\-location LOCATION\fR [\-\-dns\-alt\-names NAMES] \fIhost\fR
@@ -111,19 +108,39 @@ Generates and submits a certificate signing request (CSR) for the specified host
111
108
  Puppet agent usually handles CSR submission automatically\. This action is primarily useful for requesting certificates for individual users and external applications\.
112
109
  .
113
110
  .IP
114
- \fBOPTIONS\fR \fI\-\-dns\-alt\-names NAMES\fR \- The comma\-separated list of alternative DNS names to use for the local host\.
111
+ \fBOPTIONS\fR \fI\-\-dns\-alt\-names NAMES\fR \- A comma\-separated list of alternate DNS names for Puppet Server\. These are extra hostnames (in addition to its \fBcertname\fR) that the server is allowed to use when serving agents\. Puppet checks this setting when automatically requesting a certificate for Puppet agent or Puppet Server, and when manually generating a certificate with \fBpuppet cert generate\fR\.
115
112
  .
116
113
  .IP
117
- When the node generates a CSR for itself, these are added to the request as the desired \fBsubjectAltName\fR in the certificate: additional DNS labels that the certificate is also valid answering as\.
114
+ In order to handle agent requests at a given hostname (like "puppet\.example\.com"), Puppet Server needs a certificate that proves it\'s allowed to use that name; if a server shows a certificate that doesn\'t include its hostname, Puppet agents will refuse to trust it\. If you use a single hostname for Puppet traffic but load\-balance it to multiple Puppet Servers, each of those servers needs to include the official hostname in its list of extra names\.
118
115
  .
119
116
  .IP
120
- This is generally required if you use a non\-hostname \fBcertname\fR, or if you want to use \fBpuppet kick\fR or \fBpuppet resource \-H\fR and the primary certname does not match the DNS name you use to communicate with the host\.
117
+ \fBNote:\fR The list of alternate names is locked in when the server\'s certificate is signed\. If you need to change the list later, you can\'t just change this setting; you also need to:
121
118
  .
122
- .IP
123
- This is unnecessary for agents, unless you intend to use them as a server for \fBpuppet kick\fR or remote \fBpuppet resource\fR management\.
119
+ .IP "\(bu" 4
120
+ On the server: Stop Puppet Server\.
121
+ .
122
+ .IP "\(bu" 4
123
+ On the CA server: Revoke and clean the server\'s old certificate\. (\fBpuppet cert clean <NAME>\fR)
124
+ .
125
+ .IP "\(bu" 4
126
+ On the server: Delete the old certificate (and any old certificate signing requests) from the ssldir \fIhttps://docs\.puppetlabs\.com/puppet/latest/reference/dirs_ssldir\.html\fR\.
127
+ .
128
+ .IP "\(bu" 4
129
+ On the server: Run \fBpuppet agent \-t \-\-ca_server <CA HOSTNAME>\fR to request a new certificate
130
+ .
131
+ .IP "\(bu" 4
132
+ On the CA server: Sign the certificate request, explicitly allowing alternate names (\fBpuppet cert sign \-\-allow\-dns\-alt\-names <NAME>\fR)\.
133
+ .
134
+ .IP "\(bu" 4
135
+ On the server: Run \fBpuppet agent \-t \-\-ca_server <CA HOSTNAME>\fR to retrieve the cert\.
136
+ .
137
+ .IP "\(bu" 4
138
+ On the server: Start Puppet Server again\.
139
+ .
140
+ .IP "" 0
124
141
  .
125
142
  .IP
126
- It is rarely necessary for servers; it is usually helpful only if you need to have a pool of multiple load balanced masters, or for the same master to respond on two physically separate networks under different names\.
143
+ To see all the alternate names your servers are using, log into your CA server and run \fBpuppet cert list \-a\fR, then check the output for \fB(alt names: \.\.\.)\fR\. Most agent nodes should NOT have alternate names; the only certs that should have them are Puppet Server nodes that you want other agents to trust\.
127
144
  .
128
145
  .IP
129
146
  \fBRETURNS\fR
@@ -131,9 +148,8 @@ It is rarely necessary for servers; it is usually helpful only if you need to ha
131
148
  .IP
132
149
  Nothing\.
133
150
  .
134
- .TP
135
- \fBinfo\fR \- Print the default terminus class for this face\.
136
- \fBSYNOPSIS\fR
151
+ .IP "\(bu" 4
152
+ \fBinfo\fR \- Print the default terminus class for this face\.: \fBSYNOPSIS\fR
137
153
  .
138
154
  .IP
139
155
  puppet certificate info [\-\-terminus TERMINUS] [\-\-extra HASH] \fI\-\-ca\-location LOCATION\fR
@@ -144,9 +160,8 @@ puppet certificate info [\-\-terminus TERMINUS] [\-\-extra HASH] \fI\-\-ca\-loca
144
160
  .IP
145
161
  Prints the default terminus class for this subcommand\. Note that different run modes may have different default termini; when in doubt, specify the run mode with the \'\-\-run_mode\' option\.
146
162
  .
147
- .TP
148
- \fBlist\fR \- List all certificate signing requests\.
149
- \fBSYNOPSIS\fR
163
+ .IP "\(bu" 4
164
+ \fBlist\fR \- List all certificate signing requests\.: \fBSYNOPSIS\fR
150
165
  .
151
166
  .IP
152
167
  puppet certificate list [\-\-terminus TERMINUS] [\-\-extra HASH] \fI\-\-ca\-location LOCATION\fR
@@ -163,9 +178,8 @@ List all certificate signing requests\.
163
178
  .IP
164
179
  An array of #inspect output from CSR objects\. This output is currently messy, but does contain the names of nodes requesting certificates\. This action returns #inspect strings even when used from the Ruby API\.
165
180
  .
166
- .TP
167
- \fBsign\fR \- Sign a certificate signing request for HOST\.
168
- \fBSYNOPSIS\fR
181
+ .IP "\(bu" 4
182
+ \fBsign\fR \- Sign a certificate signing request for HOST\.: \fBSYNOPSIS\fR
169
183
  .
170
184
  .IP
171
185
  puppet certificate sign [\-\-terminus TERMINUS] [\-\-extra HASH] \fI\-\-ca\-location LOCATION\fR [\-\-[no\-]allow\-dns\-alt\-names] \fIhost\fR
@@ -185,6 +199,8 @@ Sign a certificate signing request for HOST\.
185
199
  .IP
186
200
  A string that appears to be (but isn\'t) an x509 certificate\.
187
201
  .
202
+ .IP "" 0
203
+ .
188
204
  .SH "EXAMPLES"
189
205
  \fBgenerate\fR
190
206
  .
@@ -221,4 +237,4 @@ This subcommand is an indirector face, which exposes \fBfind\fR, \fBsearch\fR, \
221
237
  .IP "" 0
222
238
  .
223
239
  .SH "COPYRIGHT AND LICENSE"
224
- Copyright 2011 by Puppet Labs Apache 2 license; see COPYING
240
+ Copyright 2011 by Puppet Inc\. Apache 2 license; see COPYING