puppet 5.5.1-x86-mingw32 → 5.5.2-x86-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.
- checksums.yaml +7 -0
- data/CONTRIBUTING.md +3 -3
- data/README.md +2 -2
- data/conf/auth.conf +2 -2
- data/conf/environment.conf +1 -1
- data/conf/fileserver.conf +1 -1
- data/conf/puppet.conf +4 -4
- data/ext/README.environment +1 -1
- data/ext/debian/copyright +2 -2
- data/ext/debian/puppetmaster.README.debian +2 -2
- data/ext/hiera/hiera.yaml +1 -1
- data/ext/puppet-test +1 -1
- data/ext/rack/example-passenger-vhost.conf +1 -1
- data/ext/regexp_nodes/regexp_nodes.rb +12 -12
- data/ext/upload_facts.rb +1 -1
- data/lib/hiera/puppet_function.rb +1 -1
- data/lib/puppet.rb +1 -1
- data/lib/puppet/application/agent.rb +1 -1
- data/lib/puppet/application/apply.rb +1 -1
- data/lib/puppet/application/cert.rb +1 -1
- data/lib/puppet/application/device.rb +8 -8
- data/lib/puppet/application/lookup.rb +1 -1
- data/lib/puppet/application/master.rb +1 -1
- data/lib/puppet/application/resource.rb +1 -1
- data/lib/puppet/application/script.rb +1 -1
- data/lib/puppet/defaults.rb +22 -16
- data/lib/puppet/face/config.rb +1 -1
- data/lib/puppet/face/help/man.erb +1 -1
- data/lib/puppet/face/module/build.rb +3 -3
- data/lib/puppet/face/status.rb +2 -2
- data/lib/puppet/functions/all.rb +2 -2
- data/lib/puppet/functions/any.rb +2 -2
- data/lib/puppet/functions/assert_type.rb +3 -3
- data/lib/puppet/functions/each.rb +2 -2
- data/lib/puppet/functions/eyaml_lookup_key.rb +1 -1
- data/lib/puppet/functions/filter.rb +2 -2
- data/lib/puppet/functions/hiera.rb +5 -5
- data/lib/puppet/functions/hiera_array.rb +5 -5
- data/lib/puppet/functions/hiera_hash.rb +6 -6
- data/lib/puppet/functions/hiera_include.rb +7 -7
- data/lib/puppet/functions/hocon_data.rb +1 -1
- data/lib/puppet/functions/json_data.rb +1 -1
- data/lib/puppet/functions/lest.rb +1 -1
- data/lib/puppet/functions/lookup.rb +1 -1
- data/lib/puppet/functions/map.rb +1 -1
- data/lib/puppet/functions/match.rb +11 -0
- data/lib/puppet/functions/reduce.rb +1 -1
- data/lib/puppet/functions/reverse_each.rb +1 -1
- data/lib/puppet/functions/step.rb +1 -1
- data/lib/puppet/functions/then.rb +1 -1
- data/lib/puppet/functions/tree_each.rb +7 -7
- data/lib/puppet/functions/with.rb +4 -4
- data/lib/puppet/functions/yaml_data.rb +1 -1
- data/lib/puppet/indirector/node/exec.rb +1 -1
- data/lib/puppet/indirector/node/ldap.rb +1 -1
- data/lib/puppet/module_tool/applications/application.rb +1 -1
- data/lib/puppet/module_tool/skeleton/templates/generator/examples/init.pp.erb +1 -1
- data/lib/puppet/network/http/factory.rb +3 -0
- data/lib/puppet/parser/ast/pops_bridge.rb +18 -0
- data/lib/puppet/parser/compiler.rb +1 -1
- data/lib/puppet/parser/functions.rb +1 -1
- data/lib/puppet/parser/functions/assert_type.rb +3 -3
- data/lib/puppet/parser/functions/each.rb +2 -2
- data/lib/puppet/parser/functions/filter.rb +1 -1
- data/lib/puppet/parser/functions/hiera.rb +4 -4
- data/lib/puppet/parser/functions/hiera_array.rb +5 -5
- data/lib/puppet/parser/functions/hiera_hash.rb +6 -6
- data/lib/puppet/parser/functions/hiera_include.rb +10 -11
- data/lib/puppet/parser/functions/inline_template.rb +1 -1
- data/lib/puppet/parser/functions/lest.rb +1 -1
- data/lib/puppet/parser/functions/lookup.rb +1 -1
- data/lib/puppet/parser/functions/map.rb +1 -1
- data/lib/puppet/parser/functions/reduce.rb +1 -1
- data/lib/puppet/parser/functions/reverse_each.rb +1 -1
- data/lib/puppet/parser/functions/step.rb +1 -1
- data/lib/puppet/parser/functions/then.rb +1 -1
- data/lib/puppet/parser/functions/with.rb +4 -4
- data/lib/puppet/pops/types/types.rb +8 -4
- data/lib/puppet/provider/user/aix.rb +1 -1
- data/lib/puppet/reference/providers.rb +1 -1
- data/lib/puppet/reference/report.rb +1 -1
- data/lib/puppet/resource/capability_finder.rb +1 -1
- data/lib/puppet/resource/catalog.rb +2 -2
- data/lib/puppet/resource/type.rb +6 -2
- data/lib/puppet/settings/config_file.rb +1 -1
- data/lib/puppet/settings/environment_conf.rb +10 -1
- data/lib/puppet/ssl/certificate_authority.rb +2 -2
- data/lib/puppet/transaction/report.rb +1 -2
- data/lib/puppet/type.rb +12 -12
- data/lib/puppet/type/file/content.rb +15 -2
- data/lib/puppet/type/file/ensure.rb +1 -1
- data/lib/puppet/type/schedule.rb +1 -1
- data/lib/puppet/type/stage.rb +1 -1
- data/lib/puppet/version.rb +1 -1
- data/locales/ja/puppet.po +179 -148
- data/locales/puppet.pot +139 -115
- data/man/man5/puppet.conf.5 +16 -16
- data/man/man8/puppet-agent.8 +2 -2
- data/man/man8/puppet-apply.8 +2 -2
- data/man/man8/puppet-ca.8 +3 -3
- data/man/man8/puppet-catalog.8 +2 -2
- data/man/man8/puppet-cert.8 +2 -2
- data/man/man8/puppet-certificate.8 +3 -3
- data/man/man8/puppet-certificate_request.8 +2 -2
- data/man/man8/puppet-certificate_revocation_list.8 +2 -2
- data/man/man8/puppet-config.8 +3 -3
- data/man/man8/puppet-describe.8 +1 -1
- data/man/man8/puppet-device.8 +2 -2
- data/man/man8/puppet-doc.8 +1 -1
- data/man/man8/puppet-epp.8 +2 -2
- data/man/man8/puppet-facts.8 +2 -2
- data/man/man8/puppet-filebucket.8 +1 -1
- data/man/man8/puppet-generate.8 +2 -2
- data/man/man8/puppet-help.8 +2 -2
- data/man/man8/puppet-key.8 +2 -2
- data/man/man8/puppet-lookup.8 +2 -2
- data/man/man8/puppet-man.8 +2 -2
- data/man/man8/puppet-master.8 +2 -2
- data/man/man8/puppet-module.8 +4 -4
- data/man/man8/puppet-node.8 +2 -2
- data/man/man8/puppet-parser.8 +2 -2
- data/man/man8/puppet-plugin.8 +2 -2
- data/man/man8/puppet-report.8 +2 -2
- data/man/man8/puppet-resource.8 +2 -2
- data/man/man8/puppet-script.8 +2 -2
- data/man/man8/puppet-status.8 +3 -3
- data/man/man8/puppet.8 +2 -2
- data/spec/integration/type/file_spec.rb +30 -0
- data/spec/unit/defaults_spec.rb +14 -0
- data/spec/unit/environments_spec.rb +40 -0
- data/spec/unit/face/module/build_spec.rb +2 -2
- data/spec/unit/functions/match_spec.rb +18 -0
- data/spec/unit/functions/new_spec.rb +1 -0
- data/spec/unit/network/http/factory_spec.rb +35 -28
- data/spec/unit/resource/type_spec.rb +22 -6
- data/spec/unit/type/file/content_spec.rb +12 -0
- data/spec/unit/type/file/source_spec.rb +8 -2
- metadata +3632 -3656
data/man/man8/puppet-key.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-KEY" "8" "
|
4
|
+
.TH "PUPPET\-KEY" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-key\fR \- Create, save, and remove certificate keys\.
|
@@ -16,7 +16,7 @@ This subcommand manages certificate private keys\. Keys are created automaticall
|
|
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://
|
19
|
+
See the configuration file documentation at \fIhttps://puppet\.com/docs/puppet/latest/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
|
data/man/man8/puppet-lookup.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-LOOKUP" "8" "
|
4
|
+
.TH "PUPPET\-LOOKUP" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-lookup\fR \- Interactive Hiera lookup
|
@@ -37,7 +37,7 @@ If \'\-\-explain\' isn\'t specified, lookup exits with 0 if a value was found an
|
|
37
37
|
You can provide multiple lookup keys to this command, but it only returns a value for the first found key, omitting the rest\.
|
38
38
|
.
|
39
39
|
.P
|
40
|
-
For more details about how Hiera works, see the Hiera documentation: https://
|
40
|
+
For more details about how Hiera works, see the Hiera documentation: https://puppet\.com/docs/puppet/latest/hiera_intro\.html
|
41
41
|
.
|
42
42
|
.SH "OPTIONS"
|
43
43
|
.
|
data/man/man8/puppet-man.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-MAN" "8" "
|
4
|
+
.TH "PUPPET\-MAN" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-man\fR \- Display Puppet manual pages\.
|
@@ -16,7 +16,7 @@ Please use the command \'puppet help \fIsubcommand\fR\' or the system manpage sy
|
|
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://
|
19
|
+
See the configuration file documentation at \fIhttps://puppet\.com/docs/puppet/latest/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
|
data/man/man8/puppet-master.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-MASTER" "8" "
|
4
|
+
.TH "PUPPET\-MASTER" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-master\fR \- The puppet master daemon
|
@@ -19,7 +19,7 @@ This command starts an instance of puppet master, running as a daemon and using
|
|
19
19
|
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\.
|
20
20
|
.
|
21
21
|
.P
|
22
|
-
See the configuration file documentation at https://
|
22
|
+
See the configuration file documentation at https://puppet\.com/docs/puppet/latest/configuration\.html for the full list of acceptable settings\. A commented list of all settings can also be generated by running puppet master with \'\-\-genconfig\'\.
|
23
23
|
.
|
24
24
|
.TP
|
25
25
|
\-\-daemonize
|
data/man/man8/puppet-module.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-MODULE" "8" "
|
4
|
+
.TH "PUPPET\-MODULE" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-module\fR \- Creates, installs and searches for modules on the Puppet Forge\.
|
@@ -16,7 +16,7 @@ This subcommand can find, install, and manage modules from the Puppet Forge, a r
|
|
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://
|
19
|
+
See the configuration file documentation at \fIhttps://puppet\.com/docs/puppet/latest/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
|
@@ -48,7 +48,7 @@ Given that the context and effects vary depending on the config section \fIhttps
|
|
48
48
|
The search path for modules, as a list of directories separated by the system path separator character\. (The POSIX path separator is \':\', and the Windows path separator is \';\'\.)
|
49
49
|
.
|
50
50
|
.IP
|
51
|
-
Setting a global value for \fBmodulepath\fR in puppet\.conf is not allowed (but it can be overridden from the commandline)\. Please use directory environments instead\. If you need to use something other than the default modulepath of \fB<ACTIVE ENVIRONMENT\'S MODULES DIR>:$basemodulepath\fR, you can set \fBmodulepath\fR in environment\.conf\. For more info, see \fIhttps://
|
51
|
+
Setting a global value for \fBmodulepath\fR in puppet\.conf is not allowed (but it can be overridden from the commandline)\. Please use directory environments instead\. If you need to use something other than the default modulepath of \fB<ACTIVE ENVIRONMENT\'S MODULES DIR>:$basemodulepath\fR, you can set \fBmodulepath\fR in environment\.conf\. For more info, see \fIhttps://puppet\.com/docs/puppet/latest/environments_about\.html\fR
|
52
52
|
.
|
53
53
|
.SH "ACTIONS"
|
54
54
|
.
|
@@ -66,7 +66,7 @@ puppet module build [\fIpath\fR]
|
|
66
66
|
Prepares a local module for release on the Puppet Forge by building a ready\-to\-upload archive file\. Note: Module build uses MD5 checksums, which are prohibited on FIPS enabled systems\.
|
67
67
|
.
|
68
68
|
.IP
|
69
|
-
This action uses the metadata\.json file in the module directory to set metadata used by the Forge\. See \fIhttps://
|
69
|
+
This action uses the metadata\.json file in the module directory to set metadata used by the Forge\. See \fIhttps://puppet\.com/docs/puppet/latest/modules_publishing\.html\fR for more about writing metadata\.json files\.
|
70
70
|
.
|
71
71
|
.IP
|
72
72
|
After being built, the release archive file can be found in the module\'s \fBpkg\fR directory\.
|
data/man/man8/puppet-node.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-NODE" "8" "
|
4
|
+
.TH "PUPPET\-NODE" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-node\fR \- View and manage node definitions\.
|
@@ -16,7 +16,7 @@ This subcommand interacts with node objects, which are used by Puppet to build a
|
|
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://
|
19
|
+
See the configuration file documentation at \fIhttps://puppet\.com/docs/puppet/latest/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
|
data/man/man8/puppet-parser.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-PARSER" "8" "
|
4
|
+
.TH "PUPPET\-PARSER" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-parser\fR \- Interact directly with the parser\.
|
@@ -13,7 +13,7 @@ puppet parser \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://
|
16
|
+
See the configuration file documentation at \fIhttps://puppet\.com/docs/puppet/latest/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
|
data/man/man8/puppet-plugin.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-PLUGIN" "8" "
|
4
|
+
.TH "PUPPET\-PLUGIN" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-plugin\fR \- Interact with the Puppet plugin system\.
|
@@ -19,7 +19,7 @@ The puppet master serves Ruby code collected from the \fBlib\fR directories of i
|
|
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://
|
22
|
+
See the configuration file documentation at \fIhttps://puppet\.com/docs/puppet/latest/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
|
data/man/man8/puppet-report.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-REPORT" "8" "
|
4
|
+
.TH "PUPPET\-REPORT" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-report\fR \- Create, display, and submit reports\.
|
@@ -13,7 +13,7 @@ puppet report \fIaction\fR [\-\-terminus _TERMINUS] [\-\-extra HASH]
|
|
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://
|
16
|
+
See the configuration file documentation at \fIhttps://puppet\.com/docs/puppet/latest/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
|
data/man/man8/puppet-resource.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-RESOURCE" "8" "
|
4
|
+
.TH "PUPPET\-RESOURCE" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-resource\fR \- The resource abstraction layer shell
|
@@ -25,7 +25,7 @@ If given a type, a name, and a series of \fIattribute\fR=\fIvalue\fR pairs, pupp
|
|
25
25
|
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\.
|
26
26
|
.
|
27
27
|
.P
|
28
|
-
See the configuration file documentation at https://
|
28
|
+
See the configuration file documentation at https://puppet\.com/docs/puppet/latest/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
|
.TP
|
31
31
|
\-\-debug
|
data/man/man8/puppet-script.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-SCRIPT" "8" "
|
4
|
+
.TH "PUPPET\-SCRIPT" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-script\fR \- Run a puppet manifests as a script without compiling a catalog
|
@@ -22,7 +22,7 @@ When provided with a modulepath, via command line or config file, puppet script
|
|
22
22
|
Note that any setting that\'s valid in the configuration file is also a valid long argument\. For example, \'environment\' is a valid setting, so you can specify \'\-\-environment mytest\' as an argument\.
|
23
23
|
.
|
24
24
|
.P
|
25
|
-
See the configuration file documentation at https://
|
25
|
+
See the configuration file documentation at https://puppet\.com/docs/puppet/latest/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\'\.
|
26
26
|
.
|
27
27
|
.TP
|
28
28
|
\-\-debug
|
data/man/man8/puppet-status.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET\-STATUS" "8" "
|
4
|
+
.TH "PUPPET\-STATUS" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-status\fR \- View puppet server status\.
|
@@ -13,7 +13,7 @@ puppet status \fIaction\fR [\-\-terminus _TERMINUS] [\-\-extra HASH]
|
|
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://
|
16
|
+
See the configuration file documentation at \fIhttps://puppet\.com/docs/puppet/latest/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
|
@@ -69,7 +69,7 @@ A "true" response or a low\-level connection error\. When used from the Ruby API
|
|
69
69
|
\fBNOTES\fR
|
70
70
|
.
|
71
71
|
.IP
|
72
|
-
This action requires that the server\'s \fBauth\.conf\fR file allow find access to the \fBstatus\fR REST terminus\. Puppet agent does not use this facility, and it is turned off by default\. See \fIhttps://
|
72
|
+
This action requires that the server\'s \fBauth\.conf\fR file allow find access to the \fBstatus\fR REST terminus\. Puppet agent does not use this facility, and it is turned off by default\. See \fIhttps://puppet\.com/docs/puppet/latest/config_file_auth\.html\fR for more details\.
|
73
73
|
.
|
74
74
|
.TP
|
75
75
|
\fBinfo\fR \- Print the default terminus class for this face\.
|
data/man/man8/puppet.8
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "PUPPET" "8" "
|
4
|
+
.TH "PUPPET" "8" "May 2018" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\fR
|
@@ -16,4 +16,4 @@ Available subcommands:
|
|
16
16
|
agent The puppet agent daemon apply Apply Puppet manifests locally ca Local Puppet Certificate Authority management\. (Deprecated) catalog Compile, save, view, and convert catalogs\. cert Manage certificates and requests certificate Provide access to the CA for certificate management\. certificate_request Manage certificate requests\. (Deprecated) certificate_revocation_list Manage the list of revoked certificates\. (Deprecated) config Interact with Puppet\'s settings\. describe Display help about resource types device Manage remote network devices doc Generate Puppet references epp Interact directly with the EPP template parser/renderer\. facts Retrieve and store facts\. filebucket Store and retrieve files in a filebucket generate Generates Puppet code from Ruby definitions\. help Display Puppet help\. key Create, save, and remove certificate keys\. (Deprecated) lookup Interactive Hiera lookup man Display Puppet manual pages\. (Deprecated) master The puppet master daemon module Creates, installs and searches for modules on the Puppet Forge\. node View and manage node definitions\. parser Interact directly with the parser\. plugin Interact with the Puppet plugin system\. report Create, display, and submit reports\. resource The resource abstraction layer shell script Run a puppet manifests as a script without compiling a catalog status View puppet server status\. (Deprecated)
|
17
17
|
.
|
18
18
|
.P
|
19
|
-
See \'puppet help \fIsubcommand\fR \fIaction\fR\' for help on a specific subcommand action\. See \'puppet help \fIsubcommand\fR\' for help on a specific subcommand\. Puppet v5\.5\.
|
19
|
+
See \'puppet help \fIsubcommand\fR \fIaction\fR\' for help on a specific subcommand action\. See \'puppet help \fIsubcommand\fR\' for help on a specific subcommand\. Puppet v5\.5\.2
|
@@ -80,6 +80,9 @@ describe Puppet::Type.type(:file), :uses_checksums => true do
|
|
80
80
|
before do
|
81
81
|
# stub this to not try to create state.yaml
|
82
82
|
Puppet::Util::Storage.stubs(:store)
|
83
|
+
|
84
|
+
Puppet::Type.type(:file).any_instance.stubs(:file).returns('my/file.pp')
|
85
|
+
Puppet::Type.type(:file).any_instance.stubs(:line).returns 5
|
83
86
|
end
|
84
87
|
|
85
88
|
it "should not attempt to manage files that do not exist if no means of creating the file is specified" do
|
@@ -414,6 +417,13 @@ describe Puppet::Type.type(:file), :uses_checksums => true do
|
|
414
417
|
expect(get_mode(path) & 07777).to eq(0600)
|
415
418
|
end
|
416
419
|
|
420
|
+
it "should not give a deprecation warning about using a checksum in content when using source to define content" do
|
421
|
+
FileUtils.touch(path)
|
422
|
+
Puppet.expects(:puppet_deprecation_warning).never
|
423
|
+
catalog.add_resource described_class.new(:path => path, :source => link, :links => :follow)
|
424
|
+
catalog.apply
|
425
|
+
end
|
426
|
+
|
417
427
|
context "overwriting a file" do
|
418
428
|
before :each do
|
419
429
|
FileUtils.touch(path)
|
@@ -592,10 +602,30 @@ describe Puppet::Type.type(:file), :uses_checksums => true do
|
|
592
602
|
end
|
593
603
|
end
|
594
604
|
|
605
|
+
it "should not give a deprecation warning when given actual content" do
|
606
|
+
Puppet.expects(:puppet_deprecation_warning).never
|
607
|
+
catalog.add_resource described_class.new(:path => path, :content => 'this is content')
|
608
|
+
catalog.apply
|
609
|
+
end
|
610
|
+
|
595
611
|
with_digest_algorithms do
|
596
612
|
it_should_behave_like "files are backed up", {} do
|
597
613
|
let(:filebucket_digest) { method(:digest) }
|
598
614
|
end
|
615
|
+
|
616
|
+
it "should give a deprecation warning" do
|
617
|
+
Puppet.expects(:puppet_deprecation_warning).with('Using a checksum in a file\'s "content" property is deprecated. The ability to use a checksum to retrieve content from the filebucket using the "content" property will be removed in a future release. The literal value of the "content" property will be written to the file. The checksum retrieval functionality is being replaced by the use of static catalogs. See https://puppet.com/docs/puppet/latest/static_catalogs.html for more information.', {:file => 'my/file.pp', :line => 5})
|
618
|
+
d = digest("this is some content")
|
619
|
+
catalog.add_resource described_class.new(:path => path, :content => "{#{digest_algorithm}}#{d}")
|
620
|
+
catalog.apply
|
621
|
+
end
|
622
|
+
|
623
|
+
it "should not give a deprecation warning when no content is specified while checksum and checksum value are used" do
|
624
|
+
Puppet.expects(:puppet_deprecation_warning).never
|
625
|
+
d = digest("this is some content")
|
626
|
+
catalog.add_resource described_class.new(:path => path, :checksum => digest_algorithm, :checksum_value => d)
|
627
|
+
catalog.apply
|
628
|
+
end
|
599
629
|
end
|
600
630
|
|
601
631
|
CHECKSUM_TYPES_TO_TRY.each do |checksum_type, checksum|
|
data/spec/unit/defaults_spec.rb
CHANGED
@@ -123,4 +123,18 @@ describe "Defaults" do
|
|
123
123
|
Puppet.settings.handlearg("--server", "test_server")
|
124
124
|
end
|
125
125
|
end
|
126
|
+
|
127
|
+
describe 'basemodulepath' do
|
128
|
+
it 'includes the global and system modules on non-windows', :unless => Puppet::Util::Platform.windows? do
|
129
|
+
expect(
|
130
|
+
Puppet[:basemodulepath]
|
131
|
+
).to match(%r{.*/code/modules:/opt/puppetlabs/puppet/modules})
|
132
|
+
end
|
133
|
+
|
134
|
+
it 'includes global modules on windows', :if => Puppet::Util::Platform.windows? do
|
135
|
+
expect(
|
136
|
+
Puppet[:basemodulepath]
|
137
|
+
).to match(%r{.*/code/modules})
|
138
|
+
end
|
139
|
+
end
|
126
140
|
end
|
@@ -265,6 +265,46 @@ config_version=relative/script
|
|
265
265
|
end
|
266
266
|
end
|
267
267
|
|
268
|
+
it "interprets glob modulepaths from the environment's directory" do
|
269
|
+
Dir.stubs(:glob).with(File.join(envdir, 'env1', 'other', '*', 'modules')).returns([
|
270
|
+
File.join(envdir, 'env1', 'other', 'foo', 'modules'),
|
271
|
+
File.join(envdir, 'env1', 'other', 'bar', 'modules')
|
272
|
+
])
|
273
|
+
content = <<-EOF
|
274
|
+
manifest=relative/manifest
|
275
|
+
modulepath=relative/modules#{File::PATH_SEPARATOR}other/*/modules
|
276
|
+
config_version=relative/script
|
277
|
+
EOF
|
278
|
+
|
279
|
+
envdir = FS::MemoryFile.a_directory(File.expand_path("envdir"), [
|
280
|
+
FS::MemoryFile.a_directory("env1", [
|
281
|
+
FS::MemoryFile.a_regular_file_containing("environment.conf", content),
|
282
|
+
FS::MemoryFile.a_missing_file("modules"),
|
283
|
+
FS::MemoryFile.a_directory('relative', [
|
284
|
+
FS::MemoryFile.a_directory('modules'),
|
285
|
+
]),
|
286
|
+
FS::MemoryFile.a_directory('other', [
|
287
|
+
FS::MemoryFile.a_directory('foo', [
|
288
|
+
FS::MemoryFile.a_directory('modules'),
|
289
|
+
]),
|
290
|
+
FS::MemoryFile.a_directory('bar', [
|
291
|
+
FS::MemoryFile.a_directory('modules'),
|
292
|
+
]),
|
293
|
+
]),
|
294
|
+
]),
|
295
|
+
])
|
296
|
+
|
297
|
+
loader_from(:filesystem => [envdir],
|
298
|
+
:directory => envdir) do |loader|
|
299
|
+
expect(loader.get("env1")).to environment(:env1).
|
300
|
+
with_manifest(File.join(envdir, 'env1', 'relative', 'manifest')).
|
301
|
+
with_modulepath([File.join(envdir, 'env1', 'relative', 'modules'),
|
302
|
+
File.join(envdir, 'env1', 'other', 'foo', 'modules'),
|
303
|
+
File.join(envdir, 'env1', 'other', 'bar', 'modules')]).
|
304
|
+
with_config_version(File.join(envdir, 'env1', 'relative', 'script'))
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
268
308
|
it "interpolates other setting values correctly" do
|
269
309
|
modulepath = [
|
270
310
|
File.expand_path('/some/absolute'),
|
@@ -25,7 +25,7 @@ describe "puppet module build" do
|
|
25
25
|
it "if current directory or parents contain no module root, should return exception" do
|
26
26
|
Dir.expects(:pwd).returns('/a/b/c')
|
27
27
|
Puppet::ModuleTool.expects(:find_module_root).returns(nil)
|
28
|
-
expect { subject.build }.to raise_error RuntimeError, "Unable to find metadata.json in module root /a/b/c or parent directories. See <https://
|
28
|
+
expect { subject.build }.to raise_error RuntimeError, "Unable to find metadata.json in module root /a/b/c or parent directories. See <https://puppet.com/docs/puppet/latest/modules_publishing.html> for required file format."
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
@@ -39,7 +39,7 @@ describe "puppet module build" do
|
|
39
39
|
|
40
40
|
it "if path is not a module root should raise exception" do
|
41
41
|
Puppet::ModuleTool.expects(:is_module_root?).with('/a/b/c').returns(false)
|
42
|
-
expect { subject.build('/a/b/c') }.to raise_error RuntimeError, "Unable to find metadata.json in module root /a/b/c or parent directories. See <https://
|
42
|
+
expect { subject.build('/a/b/c') }.to raise_error RuntimeError, "Unable to find metadata.json in module root /a/b/c or parent directories. See <https://puppet.com/docs/puppet/latest/modules_publishing.html> for required file format."
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -41,6 +41,15 @@ describe 'the match function' do
|
|
41
41
|
it "matches string and type #{pattern} with captures" do
|
42
42
|
expect(func.call({}, 'abc123', type(pattern))).to eql(['abc123', 'abc', '123'])
|
43
43
|
end
|
44
|
+
|
45
|
+
it "matches string with an alias type for #{pattern} with captures" do
|
46
|
+
expect(func.call({}, 'abc123', alias_type("MyAlias", type(pattern)))).to eql(['abc123', 'abc', '123'])
|
47
|
+
end
|
48
|
+
|
49
|
+
it "matches string with a matching variant type for #{pattern} with captures" do
|
50
|
+
expect(func.call({}, 'abc123', variant_type(type(pattern)))).to eql(['abc123', 'abc', '123'])
|
51
|
+
end
|
52
|
+
|
44
53
|
end
|
45
54
|
|
46
55
|
it 'matches an array of strings and yields a map of the result' do
|
@@ -51,6 +60,15 @@ describe 'the match function' do
|
|
51
60
|
expect{func.call({}, 'abc123', type('Regexp'))}.to raise_error(ArgumentError, /Given Regexp Type has no regular expression/)
|
52
61
|
end
|
53
62
|
|
63
|
+
def variant_type(*t)
|
64
|
+
Puppet::Pops::Types::PVariantType.new(t)
|
65
|
+
end
|
66
|
+
|
67
|
+
def alias_type(name, t)
|
68
|
+
# Create an alias using a nil AST (which is never used because it is given a type as resolution)
|
69
|
+
Puppet::Pops::Types::PTypeAliasType.new(name, nil, t)
|
70
|
+
end
|
71
|
+
|
54
72
|
def type(s)
|
55
73
|
Puppet::Pops::Types::TypeParser.singleton.parse(s)
|
56
74
|
end
|
@@ -391,6 +391,7 @@ describe 'the new function' do
|
|
391
391
|
"010" => "Notify[Integer, 8]",
|
392
392
|
"0.10" => "Notify[Float, 0.1]",
|
393
393
|
"0b10" => "Notify[Integer, 2]",
|
394
|
+
"0" => "Notify[Integer, 0]",
|
394
395
|
false => "Notify[Integer, 0]",
|
395
396
|
true => "Notify[Integer, 1]",
|
396
397
|
}.each do |input, result|
|