puppet 4.10.9-x64-mingw32 → 4.10.10-x64-mingw32

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 "PUPPET\-CERTIFICATE_REQUEST" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-CERTIFICATE_REQUEST" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-certificate_request\fR \- Manage certificate requests\.
@@ -16,7 +16,7 @@ This subcommand retrieves and submits certificate signing requests (CSRs)\.
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
@@ -158,4 +158,4 @@ This subcommand is an indirector face, which exposes \fBfind\fR, \fBsearch\fR, \
158
158
  .IP "" 0
159
159
  .
160
160
  .SH "COPYRIGHT AND LICENSE"
161
- Copyright 2011 by Puppet Labs Apache 2 license; see COPYING
161
+ 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\-CERTIFICATE_REVOCATION_LIST" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-CERTIFICATE_REVOCATION_LIST" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-certificate_revocation_list\fR \- Manage the list of revoked certificates\.
@@ -16,7 +16,7 @@ This subcommand is primarily for retrieving the certificate revocation list from
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
@@ -136,4 +136,4 @@ This subcommand is an indirector face, which exposes \fBfind\fR, \fBsearch\fR, \
136
136
  .IP "" 0
137
137
  .
138
138
  .SH "COPYRIGHT AND LICENSE"
139
- Copyright 2011 by Puppet Labs Apache 2 license; see COPYING
139
+ 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\-CONFIG" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-CONFIG" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-config\fR \- Interact with Puppet\'s settings\.
@@ -10,13 +10,13 @@
10
10
  puppet config \fIaction\fR [\-\-section SECTION_NAME]
11
11
  .
12
12
  .SH "DESCRIPTION"
13
- This subcommand can inspect and modify settings from Puppet\'s \'puppet\.conf\' configuration file\. For documentation about individual settings, see https://docs\.puppetlabs\.com/references/latest/configuration\.html\.
13
+ This subcommand can inspect and modify settings from Puppet\'s \'puppet\.conf\' configuration file\. For documentation about individual settings, see https://docs\.puppetlabs\.com/puppet/latest/reference/configuration\.html\.
14
14
  .
15
15
  .SH "OPTIONS"
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
@@ -114,4 +114,4 @@ Set the vardir for only the agent:
114
114
  $ puppet config set vardir /opt/puppetlabs/puppet/cache \-\-section agent
115
115
  .
116
116
  .SH "COPYRIGHT AND LICENSE"
117
- Copyright 2011 by Puppet Labs Apache 2 license; see COPYING
117
+ 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\-DESCRIBE" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-DESCRIBE" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-describe\fR \- Display help about resource types
@@ -48,4 +48,4 @@ $ puppet describe user \-s \-m
48
48
  David Lutterkort
49
49
  .
50
50
  .SH "COPYRIGHT"
51
- Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2\.0 License
51
+ Copyright (c) 2011 Puppet Inc\., LLC Licensed under the Apache 2\.0 License
@@ -1,37 +1,43 @@
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\-DEVICE" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-DEVICE" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-device\fR \- Manage remote network devices
8
8
  .
9
9
  .SH "SYNOPSIS"
10
- Retrieves all configurations from the puppet master and apply them to the remote devices configured in /etc/puppetlabs/puppet/device\.conf\.
10
+ Retrieves catalogs from the Puppet master and applies them to remote devices\.
11
11
  .
12
12
  .P
13
- Currently must be run out periodically, using cron or something similar\.
13
+ This subcommand can be run manually; or periodically using cron, a scheduled task, or a similar tool\.
14
14
  .
15
15
  .SH "USAGE"
16
- puppet device [\-d|\-\-debug] [\-\-detailed\-exitcodes] [\-V|\-\-version] [\-h|\-\-help] [\-l|\-\-logdest syslog|\fIfile\fR|console] [\-v|\-\-verbose] [\-w|\-\-waitforcert \fIseconds\fR]
16
+ puppet device [\-d|\-\-debug] [\-\-detailed\-exitcodes] [\-h|\-\-help] [\-l|\-\-logdest syslog|\fIfile\fR|console] [\-v|\-\-verbose] [\-w|\-\-waitforcert \fIseconds\fR] [\-\-user=\fIuser\fR] [\-V|\-\-version]
17
17
  .
18
18
  .SH "DESCRIPTION"
19
- Once the client has a signed certificate for a given remote device, it will retrieve its configuration and apply it\.
19
+ Devices require a proxy Puppet agent to request certificates, collect facts, retrieve and apply catalogs, and store reports\.
20
20
  .
21
21
  .SH "USAGE NOTES"
22
- One need a /etc/puppetlabs/puppet/device\.conf file with the following content:
22
+ Devices managed by the puppet\-device subcommand on a Puppet agent are configured in device\.conf, which is located at $confdir/device\.conf by default, and is configurable with the $deviceconfig setting\.
23
23
  .
24
24
  .P
25
- [remote\.device\.fqdn] type \fItype\fR url \fIurl\fR
25
+ The device\.conf file is an INI\-like file, with one section per device:
26
26
  .
27
27
  .P
28
- where: * type: the current device type (the only value at this time is cisco) * url: an url allowing to connect to the device
28
+ [\fIDEVICE_CERTNAME\fR] type \fITYPE\fR url \fIURL\fR debug
29
29
  .
30
30
  .P
31
- Supported url must conforms to: scheme://user:password@hostname/?query
31
+ The section name specifies the certname of the device\.
32
32
  .
33
33
  .P
34
- with: * scheme: either ssh or telnet * user: username, can be omitted depending on the switch/router configuration * password: the connection password * query: this is device specific\. Cisco devices supports an enable parameter whose value would be the enable password\.
34
+ The values for the type and url properties are specific to each type of device\.
35
+ .
36
+ .P
37
+ The optional debug property specifies transport\-level debugging, and is limited to telnet and ssh transports\.
38
+ .
39
+ .P
40
+ See https://docs\.puppet\.com/puppet/latest/config_file_device\.html for details\.
35
41
  .
36
42
  .SH "OPTIONS"
37
43
  Note that any setting 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\.
@@ -42,7 +48,7 @@ Enable full debugging\.
42
48
  .
43
49
  .TP
44
50
  \-\-detailed\-exitcodes
45
- Provide transaction information via exit codes\. If this is enabled, an exit code of \'1\' means at least one device had a compile failure, an exit code of \'2\' means at least one device had resource changes, and an exit code of \'4\' means at least one device had resource failures\. Exit codes of \'3\', \'5\', \'6\', or \'7\' means that a bitwise combination of the preceeding exit codes happened\.
51
+ Provide transaction information via exit codes\. If this is enabled, an exit code of \'1\' means at least one device had a compile failure, an exit code of \'2\' means at least one device had resource changes, and an exit code of \'4\' means at least one device had resource failures\. Exit codes of \'3\', \'5\', \'6\', or \'7\' means that a bitwise combination of the preceding exit codes happened\.
46
52
  .
47
53
  .TP
48
54
  \-\-help
@@ -56,6 +62,10 @@ Where to send log messages\. Choose between \'syslog\' (the POSIX syslog service
56
62
  A path ending with \'\.json\' will receive structured output in JSON format\. The log file will not have an ending \']\' automatically written to it due to the appending nature of logging\. It must be appended manually to make the content valid JSON\.
57
63
  .
58
64
  .TP
65
+ \-\-user
66
+ The user to run as\.
67
+ .
68
+ .TP
59
69
  \-\-verbose
60
70
  Turn on verbose reporting\.
61
71
  .
@@ -75,4 +85,4 @@ This option only matters for daemons that do not yet have certificates and it is
75
85
  Brice Figureau
76
86
  .
77
87
  .SH "COPYRIGHT"
78
- Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2\.0 License
88
+ Copyright (c) 2011 Puppet Inc\., LLC Licensed under the Apache 2\.0 License
@@ -1,19 +1,19 @@
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\-DOC" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-DOC" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-doc\fR \- Generate Puppet references
8
8
  .
9
9
  .SH "SYNOPSIS"
10
- Generates a reference for all Puppet types\. Largely meant for internal Puppet Labs use\. (Deprecated)
10
+ Generates a reference for all Puppet types\. Largely meant for internal Puppet Inc\. use\. (Deprecated)
11
11
  .
12
12
  .SH "USAGE"
13
13
  puppet doc [\-h|\-\-help] [\-l|\-\-list] [\-r|\-\-reference \fIreference\-name\fR]
14
14
  .
15
15
  .SH "DESCRIPTION"
16
- This deprecated command generates a Markdown document to stdout describing all installed Puppet types or all allowable arguments to puppet executables\. It is largely meant for internal use and is used to generate the reference document available on the Puppet Labs web site\.
16
+ This deprecated command generates a Markdown document to stdout describing all installed Puppet types or all allowable arguments to puppet executables\. It is largely meant for internal use and is used to generate the reference document available on the Puppet Inc\. web site\.
17
17
  .
18
18
  .P
19
19
  For Puppet module documentation (and all other use cases) this command has been superseded by the "puppet\-strings" module \- see https://github\.com/puppetlabs/puppetlabs\-strings for more information\.
@@ -43,4 +43,4 @@ $ puppet doc \-r type > /tmp/type_reference\.markdown
43
43
  Luke Kanies
44
44
  .
45
45
  .SH "COPYRIGHT"
46
- Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2\.0 License
46
+ 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\-EPP" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-EPP" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-epp\fR \- Interact directly with the EPP template parser/renderer\.
@@ -13,7 +13,7 @@ puppet epp \fIaction\fR
13
13
  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\.
14
14
  .
15
15
  .P
16
- 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\.
16
+ 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\.
17
17
  .
18
18
  .TP
19
19
  \-\-render\-as FORMAT
@@ -46,10 +46,10 @@ The dump action parses and validates the EPP syntax and dumps the resulting AST
46
46
  The command accepts one or more templates (\.epp) files, or an \-e followed by the template source text\. The given templates can be paths to template files, or references to templates in modules when given on the form \fImodulename\fR/\fItemplate\-name\fR\.epp\. If no arguments are given, the stdin is read (unless it is attached to a terminal)
47
47
  .
48
48
  .IP
49
- If multiple templates are given, they are separated with a header indicating the name of the template\. This can be surpressed with the option \-\-no\-header\. The option \-\-[no\-]header has no effect whe a single template is dumped\.
49
+ If multiple templates are given, they are separated with a header indicating the name of the template\. This can be suppressed with the option \-\-no\-header\. The option \-\-[no\-]header has no effect when a single template is dumped\.
50
50
  .
51
51
  .IP
52
- When debugging the epp parser itself, it may be useful to surpress the valiation step with the \fB\-\-no\-validate\fR option to observe what the parser produced from the given source\.
52
+ When debugging the epp parser itself, it may be useful to suppress the validation step with the \fB\-\-no\-validate\fR option to observe what the parser produced from the given source\.
53
53
  .
54
54
  .IP
55
55
  This command ignores the \-\-render\-as setting/option\.
@@ -74,7 +74,7 @@ A dump of the resulting AST model unless there are syntax or validation errors\.
74
74
  \fBSYNOPSIS\fR
75
75
  .
76
76
  .IP
77
- puppet epp render [\-\-e \fIsource\fR] [\-\-values \fIvalues_hash\fR] [\-\-values_file \fIpp_or_yaml_file\fR] [\-\-facts \fIyaml_file\fR] [\-\-[no\-]header] \-e \fIsource\fR | [\fItemplates\fR \.\.\.]
77
+ puppet epp render [\-\-node \fInode_name\fR] [\-\-e \fIsource\fR] [\-\-values \fIvalues_hash\fR] [\-\-values_file \fIpp_or_yaml_file\fR] [\-\-facts \fIfacts_file\fR] [\-\-[no\-]header] \-e \fIsource\fR | [\fItemplates\fR \.\.\.]
78
78
  .
79
79
  .IP
80
80
  \fBDESCRIPTION\fR
@@ -101,7 +101,10 @@ If multiple templates are given, the same set of values are given to each templa
101
101
  When multiple templates are rendered, a separating header is output between the templates showing the name of the template before the output\. The header output can be turned off with \fB\-\-no\-header\fR\. This also concatenates the template results without any added newline separators\.
102
102
  .
103
103
  .IP
104
- Facts for the simulated node can be feed to the rendering process by referencing a \.yaml file with facts using the \-\-facts option\. (Values can be obtained in yaml format directly from \fBfacter\fR, or from puppet for a given node)\. Note that it is not possible to simulate the reserved variable name \fB$facts\fR in any other way\.
104
+ Facts from the node where the command is being run are used by default\.args Facts can be obtained for other nodes if they have called in, and reported their facts by using the \fB\-\-node <nodename>\fR flag\.
105
+ .
106
+ .IP
107
+ Overriding node facts as well as additional facts can be given in a \.yaml or \.json file and referencing it with the \-\-facts option\. (Values can be obtained in yaml format directly from \fBfacter\fR, or from puppet for a given node)\. Note that it is not possible to simulate the reserved variable name \fB$facts\fR in any other way\.
105
108
  .
106
109
  .IP
107
110
  Note that it is not possible to set variables using the Puppet Language that have the same names as facts as this result in an error; "attempt to redefine a variable" since facts are set first\.
@@ -110,18 +113,21 @@ Note that it is not possible to set variables using the Puppet Language that hav
110
113
  Exits with 0 if there were no validation errors\. On errors, no rendered output is produced for that template file\.
111
114
  .
112
115
  .IP
113
- When designing EPP templates, it is strongly recommended to define all template arguments in the template, and to give them in a hash when calling \fBepp\fR or \fBinline_epp\fR and to use as few global variables as possible, preferrably only the $facts hash\. This makes templates more free standing and are easier to reuse, and to test\.
116
+ When designing EPP templates, it is strongly recommended to define all template arguments in the template, and to give them in a hash when calling \fBepp\fR or \fBinline_epp\fR and to use as few global variables as possible, preferably only the $facts hash\. This makes templates more free standing and are easier to reuse, and to test\.
114
117
  .
115
118
  .IP
116
119
  \fBOPTIONS\fR \fI\-\-e <source\fR> \- Render one inline epp template given on the command line\.
117
120
  .
118
121
  .IP
119
- \fI\-\-facts <yaml_file\fR> \- A \.yaml file containing a hash of facts made available in $facts
122
+ \fI\-\-facts <facts_file\fR> \- A \.yaml or \.json file containing a hash of facts made available in $facts and $trusted
120
123
  .
121
124
  .IP
122
125
  \fI\-\-[no\-]header\fR \- Whether or not to show a file name header between rendered results\.
123
126
  .
124
127
  .IP
128
+ \fI\-\-node <node_name\fR> \- The name of the node for which facts are obtained\. Defaults to facts for the local node\.
129
+ .
130
+ .IP
125
131
  \fI\-\-values <values_hash\fR> \- A Hash in Puppet DSL form given as arguments to the template being rendered\.
126
132
  .
127
133
  .IP
@@ -346,4 +352,4 @@ $ puppet epp validate mymodule/template1\.epp mymodule/template2\.epp \-\-contin
346
352
  .IP "" 0
347
353
  .
348
354
  .SH "COPYRIGHT AND LICENSE"
349
- Copyright 2014 by Puppet Labs Apache 2 license; see COPYING
355
+ Copyright 2014 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\-FACTS" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-FACTS" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-facts\fR \- Retrieve and store facts\.
@@ -16,7 +16,7 @@ This subcommand manages facts, which are collections of normalized system inform
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
@@ -130,4 +130,4 @@ This subcommand is an indirector face, which exposes \fBfind\fR, \fBsearch\fR, \
130
130
  .IP "" 0
131
131
  .
132
132
  .SH "COPYRIGHT AND LICENSE"
133
- Copyright 2011 by Puppet Labs Apache 2 license; see COPYING
133
+ 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\-FILE" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-FILE" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-file\fR \- Retrieve and store files in a filebucket
@@ -16,7 +16,7 @@ This subcommand interacts with objects stored in a local or remote filebucket\.
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
@@ -186,4 +186,4 @@ This subcommand is an indirector face, which exposes \fBfind\fR, \fBsearch\fR, \
186
186
  .IP "" 0
187
187
  .
188
188
  .SH "COPYRIGHT AND LICENSE"
189
- Copyright 2011 by Puppet Labs Apache 2 license; see COPYING
189
+ 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\-FILEBUCKET" "8" "May 2015" "Puppet Labs, LLC" "Puppet manual"
4
+ .TH "PUPPET\-FILEBUCKET" "8" "January 2018" "Puppet Labs, LLC" "Puppet manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBpuppet\-filebucket\fR \- Store and retrieve files in a filebucket
@@ -10,7 +10,7 @@
10
10
  A stand\-alone Puppet filebucket client\.
11
11
  .
12
12
  .SH "USAGE"
13
- puppet filebucket \fImode\fR [\-h|\-\-help] [\-V|\-\-version] [\-d|\-\-debug] [\-v|\-\-verbose] [\-l|\-\-local] [\-r|\-\-remote] [\-s|\-\-server \fIserver\fR] [\-b|\-\-bucket \fIdirectory\fR] \fIfile\fR \fIfile\fR \.\.\.
13
+ puppet filebucket \fImode\fR [\-h|\-\-help] [\-V|\-\-version] [\-d|\-\-debug] [\-v|\-\-verbose] [\-l|\-\-local] [\-r|\-\-remote] [\-s|\-\-server \fIserver\fR] [\-f|\-\-fromdate \fIdate\fR] [\-t|\-\-todate \fIdate\fR] [\-b|\-\-bucket \fIdirectory\fR] \fIfile\fR \fIfile\fR \.\.\.
14
14
  .
15
15
  .P
16
16
  Puppet filebucket can operate in three modes, with only one mode per call:
@@ -24,6 +24,12 @@ get: Return the text associated with an md5 sum\. The text is printed to stdout,
24
24
  .P
25
25
  restore: Given a file path and an md5 sum, store the content associated with the sum into the specified file path\. You can specify an entirely new path to this argument; you are not restricted to restoring the content to its original location\.
26
26
  .
27
+ .P
28
+ diff: Print a diff in unified format between two checksums in the filebucket or between a checksum and its matching file\.
29
+ .
30
+ .P
31
+ list: List all files in the current local filebucket\. Listing remote filebuckets is not allowed\.
32
+ .
27
33
  .SH "DESCRIPTION"
28
34
  This is a stand\-alone filebucket client for sending files to a local or central filebucket\.
29
35
  .
@@ -34,13 +40,17 @@ Note that \'filebucket\' defaults to using a network\-based filebucket available
34
40
  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\.
35
41
  .
36
42
  .P
37
- 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\'\.
43
+ 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\'\.
38
44
  .
39
45
  .TP
40
46
  \-\-debug
41
47
  Enable full debugging\.
42
48
  .
43
49
  .TP
50
+ \-\-fromdate
51
+ (list only) Select bucket files from \'fromdate\'
52
+ .
53
+ .TP
44
54
  \-\-help
45
55
  Print this help message
46
56
  .
@@ -57,6 +67,10 @@ Use a remote filebucket\. This will use the default configuration information\.
57
67
  The server to send the file to, instead of locally\.
58
68
  .
59
69
  .TP
70
+ \-\-todate
71
+ (list only) Select bucket files until \'todate\'
72
+ .
73
+ .TP
60
74
  \-\-verbose
61
75
  Print extra information\.
62
76
  .
@@ -64,13 +78,56 @@ Print extra information\.
64
78
  \-\-version
65
79
  Print version information\.
66
80
  .
67
- .SH "EXAMPLE"
81
+ .SH "EXAMPLES"
68
82
  .
69
83
  .nf
70
84
 
85
+ ## Backup a file to the filebucket, then restore it to a temporary directory
71
86
  $ puppet filebucket backup /etc/passwd
72
87
  /etc/passwd: 429b225650b912a2ee067b0a4cf1e949
73
88
  $ puppet filebucket restore /tmp/passwd 429b225650b912a2ee067b0a4cf1e949
89
+
90
+ ## Diff between two files in the filebucket
91
+ $ puppet filebucket \-l diff d43a6ecaa892a1962398ac9170ea9bf2 7ae322f5791217e031dc60188f4521ef
92
+ 1a2
93
+ > again
94
+
95
+ ## Diff between the file in the filebucket and a local file
96
+ $ puppet filebucket \-l diff d43a6ecaa892a1962398ac9170ea9bf2 /tmp/testFile
97
+ 1a2
98
+ > again
99
+
100
+ ## Backup a file to the filebucket and observe that it keeps each backup separate
101
+ $ puppet filebucket \-l list
102
+ d43a6ecaa892a1962398ac9170ea9bf2 2015\-05\-11 09:27:56 /tmp/TestFile
103
+
104
+ $ echo again >> /tmp/TestFile
105
+
106
+ $ puppet filebucket \-l backup /tmp/TestFile
107
+ /tmp/TestFile: 7ae322f5791217e031dc60188f4521ef
108
+
109
+ $ puppet filebucket \-l list
110
+ d43a6ecaa892a1962398ac9170ea9bf2 2015\-05\-11 09:27:56 /tmp/TestFile
111
+ 7ae322f5791217e031dc60188f4521ef 2015\-05\-11 09:52:15 /tmp/TestFile
112
+
113
+ ## List files in a filebucket within date ranges
114
+ $ puppet filebucket \-l \-f 2015\-01\-01 \-t 2015\-01\-11 list
115
+ <Empty Output>
116
+
117
+ $ puppet filebucket \-l \-f 2015\-05\-10 list
118
+ d43a6ecaa892a1962398ac9170ea9bf2 2015\-05\-11 09:27:56 /tmp/TestFile
119
+ 7ae322f5791217e031dc60188f4521ef 2015\-05\-11 09:52:15 /tmp/TestFile
120
+
121
+ $ puppet filebucket \-l \-f "2015\-05\-11 09:30:00" list
122
+ 7ae322f5791217e031dc60188f4521ef 2015\-05\-11 09:52:15 /tmp/TestFile
123
+
124
+ $ puppet filebucket \-l \-t "2015\-05\-11 09:30:00" list
125
+ d43a6ecaa892a1962398ac9170ea9bf2 2015\-05\-11 09:27:56 /tmp/TestFile
126
+
127
+ ## From a Puppet master, list files in the master bucketdir
128
+ $ puppet filebucket \-b $(puppet config print bucketdir \-\-section master) list
129
+ d43a6ecaa892a1962398ac9170ea9bf2 2015\-05\-11 09:27:56 /tmp/TestFile
130
+ 7ae322f5791217e031dc60188f4521ef 2015\-05\-11 09:52:15 /tmp/TestFile
74
131
  .
75
132
  .fi
76
133
  .
@@ -78,4 +135,4 @@ $ puppet filebucket restore /tmp/passwd 429b225650b912a2ee067b0a4cf1e949
78
135
  Luke Kanies
79
136
  .
80
137
  .SH "COPYRIGHT"
81
- Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2\.0 License
138
+ Copyright (c) 2011 Puppet Inc\., LLC Licensed under the Apache 2\.0 License