puppet 7.21.0-universal-darwin → 7.23.0-universal-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +16 -16
- data/Guardfile.example +1 -1
- data/ext/project_data.yaml +1 -1
- data/ext/windows/service/daemon.rb +1 -1
- data/lib/puppet/indirector/facts/facter.rb +4 -1
- data/lib/puppet/parser/functions/fqdn_rand.rb +1 -1
- data/lib/puppet/version.rb +1 -1
- data/man/man5/puppet.conf.5 +2 -2
- data/man/man8/puppet-agent.8 +1 -1
- data/man/man8/puppet-apply.8 +1 -1
- data/man/man8/puppet-catalog.8 +1 -1
- data/man/man8/puppet-config.8 +1 -1
- data/man/man8/puppet-describe.8 +1 -1
- data/man/man8/puppet-device.8 +1 -1
- data/man/man8/puppet-doc.8 +1 -1
- data/man/man8/puppet-epp.8 +1 -1
- data/man/man8/puppet-facts.8 +1 -1
- data/man/man8/puppet-filebucket.8 +1 -1
- data/man/man8/puppet-generate.8 +1 -1
- data/man/man8/puppet-help.8 +1 -1
- data/man/man8/puppet-lookup.8 +1 -1
- data/man/man8/puppet-module.8 +1 -1
- data/man/man8/puppet-node.8 +1 -1
- data/man/man8/puppet-parser.8 +1 -1
- data/man/man8/puppet-plugin.8 +1 -1
- data/man/man8/puppet-report.8 +1 -1
- data/man/man8/puppet-resource.8 +1 -1
- data/man/man8/puppet-script.8 +1 -1
- data/man/man8/puppet-ssl.8 +1 -1
- data/man/man8/puppet.8 +2 -2
- data/spec/integration/application/agent_spec.rb +1 -1
- data/spec/unit/application/agent_spec.rb +1 -1
- data/spec/unit/application/device_spec.rb +1 -1
- data/spec/unit/application/resource_spec.rb +1 -1
- data/spec/unit/daemon_spec.rb +1 -1
- data/spec/unit/file_bucket/dipper_spec.rb +1 -1
- data/spec/unit/file_serving/fileset_spec.rb +14 -14
- data/spec/unit/file_system_spec.rb +3 -1
- data/spec/unit/graph/simple_graph_spec.rb +1 -1
- data/spec/unit/indirector/facts/facter_spec.rb +18 -3
- data/spec/unit/indirector/file_server_spec.rb +5 -5
- data/spec/unit/indirector/node/plain_spec.rb +1 -1
- data/spec/unit/parser/functions/fqdn_rand_spec.rb +1 -1
- data/spec/unit/provider/file/posix_spec.rb +4 -4
- data/spec/unit/provider/ldap_spec.rb +1 -1
- data/spec/unit/provider/nameservice_spec.rb +15 -15
- data/spec/unit/provider/package/aix_spec.rb +1 -1
- data/spec/unit/provider/package/nim_spec.rb +2 -2
- data/spec/unit/provider/service/bsd_spec.rb +4 -4
- data/spec/unit/provider/service/debian_spec.rb +2 -2
- data/spec/unit/provider/service/gentoo_spec.rb +20 -20
- data/spec/unit/provider/service/openbsd_spec.rb +18 -18
- data/spec/unit/provider/service/openrc_spec.rb +19 -19
- data/spec/unit/provider/service/systemd_spec.rb +22 -22
- data/spec/unit/provider/service/upstart_spec.rb +6 -6
- data/spec/unit/provider/user/aix_spec.rb +1 -1
- data/spec/unit/provider/user/hpux_spec.rb +1 -1
- data/spec/unit/provider/user/openbsd_spec.rb +1 -1
- data/spec/unit/provider/user/useradd_spec.rb +1 -1
- data/spec/unit/resource/type_spec.rb +2 -2
- data/spec/unit/ssl/base_spec.rb +1 -1
- data/spec/unit/ssl/certificate_request_spec.rb +1 -1
- data/spec/unit/ssl/certificate_spec.rb +1 -1
- data/spec/unit/transaction/event_manager_spec.rb +2 -2
- data/spec/unit/type/exec_spec.rb +1 -1
- data/spec/unit/util/backups_spec.rb +1 -1
- data/spec/unit/util/filetype_spec.rb +3 -3
- data/spec/unit/util/resource_template_spec.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f02d8a81437e20fd3dc02dfa2c4bf29c90b21a59b01fd66b3f59c30c7e94ed9e
|
4
|
+
data.tar.gz: feb5ec780ef14ab47c4b9d2cef6e94500b9e7e060a73488953628d269fe0e37d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78ffe53fe5ec080d0e208b70557d62ae22fa58410795e69f439de45e619a9c9fb7758c22ef4b878a987f394105a3159d2b4076e8547fa5f1344f08331f025a2d
|
7
|
+
data.tar.gz: e0769d478bfd77310eefc6d66fbaf65332498a4b84ace9b02eefc10373073c324129d78c8a9d3d223f776e701809b6406992510a434c5960937da1f9dfd6322c
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/puppetlabs/packaging
|
3
|
-
revision:
|
3
|
+
revision: f723ffb6df1216eb6cec0c81c0bec349b4fad506
|
4
4
|
branch: 1.0.x
|
5
5
|
specs:
|
6
|
-
packaging (0.108.
|
6
|
+
packaging (0.108.1.6.gf723ffb)
|
7
7
|
apt_stage_artifacts
|
8
8
|
artifactory (~> 3)
|
9
9
|
csv (= 3.1.5)
|
@@ -15,9 +15,9 @@ GIT
|
|
15
15
|
PATH
|
16
16
|
remote: .
|
17
17
|
specs:
|
18
|
-
puppet (7.
|
18
|
+
puppet (7.23.0)
|
19
19
|
CFPropertyList (~> 2.2)
|
20
|
-
concurrent-ruby (~> 1.0)
|
20
|
+
concurrent-ruby (~> 1.0, < 1.2.0)
|
21
21
|
deep_merge (~> 1.0)
|
22
22
|
facter (>= 2.4.0, < 5)
|
23
23
|
fast_gettext (>= 1.1, < 3)
|
@@ -48,10 +48,10 @@ GEM
|
|
48
48
|
digest-crc (0.6.4)
|
49
49
|
rake (>= 12.0.0, < 14.0.0)
|
50
50
|
docopt (0.6.1)
|
51
|
-
facter (4.2.
|
51
|
+
facter (4.2.14)
|
52
52
|
hocon (~> 1.3)
|
53
53
|
thor (>= 1.0.1, < 2.0)
|
54
|
-
faraday (2.7.
|
54
|
+
faraday (2.7.4)
|
55
55
|
faraday-net_http (>= 2.0, < 3.1)
|
56
56
|
ruby2_keywords (>= 0.0.4)
|
57
57
|
faraday-net_http (3.0.2)
|
@@ -64,7 +64,7 @@ GEM
|
|
64
64
|
fast_gettext (~> 1.1.0)
|
65
65
|
gettext (>= 3.0.2, < 3.3.0)
|
66
66
|
locale
|
67
|
-
google-apis-core (0.
|
67
|
+
google-apis-core (0.10.0)
|
68
68
|
addressable (~> 2.5, >= 2.5.1)
|
69
69
|
googleauth (>= 0.16.2, < 2.a)
|
70
70
|
httpclient (>= 2.8.1, < 3.a)
|
@@ -99,17 +99,17 @@ GEM
|
|
99
99
|
os (>= 0.9, < 2.0)
|
100
100
|
signet (>= 0.16, < 2.a)
|
101
101
|
hashdiff (1.0.1)
|
102
|
-
hiera (3.
|
102
|
+
hiera (3.11.0)
|
103
103
|
hiera-eyaml (3.3.0)
|
104
104
|
highline
|
105
105
|
optimist
|
106
|
-
highline (2.0
|
106
|
+
highline (2.1.0)
|
107
107
|
hocon (1.3.1)
|
108
108
|
hpricot (0.8.6)
|
109
109
|
httpclient (2.8.3)
|
110
110
|
json-schema (2.8.1)
|
111
111
|
addressable (>= 2.4)
|
112
|
-
jwt (2.
|
112
|
+
jwt (2.7.0)
|
113
113
|
locale (2.1.3)
|
114
114
|
memoist (0.16.2)
|
115
115
|
memory_profiler (1.0.1)
|
@@ -125,13 +125,13 @@ GEM
|
|
125
125
|
parser (2.7.2.0)
|
126
126
|
ast (~> 2.4.1)
|
127
127
|
powerpack (0.1.3)
|
128
|
-
pry (0.14.
|
128
|
+
pry (0.14.2)
|
129
129
|
coderay (~> 1.1)
|
130
130
|
method_source (~> 1.0)
|
131
131
|
public_suffix (5.0.1)
|
132
132
|
puppet-resource_api (1.8.14)
|
133
133
|
hocon (>= 1.0)
|
134
|
-
puppetserver-ca (2.
|
134
|
+
puppetserver-ca (2.4.0)
|
135
135
|
facter (>= 2.0.1, < 5)
|
136
136
|
racc (1.5.2)
|
137
137
|
rainbow (2.2.2)
|
@@ -156,15 +156,15 @@ GEM
|
|
156
156
|
rspec-core (~> 3.12.0)
|
157
157
|
rspec-expectations (~> 3.12.0)
|
158
158
|
rspec-mocks (~> 3.12.0)
|
159
|
-
rspec-core (3.12.
|
159
|
+
rspec-core (3.12.1)
|
160
160
|
rspec-support (~> 3.12.0)
|
161
|
-
rspec-expectations (3.12.
|
161
|
+
rspec-expectations (3.12.2)
|
162
162
|
diff-lcs (>= 1.2.0, < 2.0)
|
163
163
|
rspec-support (~> 3.12.0)
|
164
164
|
rspec-its (1.3.0)
|
165
165
|
rspec-core (>= 3.0.0)
|
166
166
|
rspec-expectations (>= 3.0.0)
|
167
|
-
rspec-mocks (3.12.
|
167
|
+
rspec-mocks (3.12.3)
|
168
168
|
diff-lcs (>= 1.2.0, < 2.0)
|
169
169
|
rspec-support (~> 3.12.0)
|
170
170
|
rspec-support (3.12.0)
|
@@ -177,7 +177,7 @@ GEM
|
|
177
177
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
178
178
|
rubocop-i18n (1.2.0)
|
179
179
|
rubocop (~> 0.49.0)
|
180
|
-
ruby-prof (1.
|
180
|
+
ruby-prof (1.5.0)
|
181
181
|
ruby-progressbar (1.11.0)
|
182
182
|
ruby2_keywords (0.0.5)
|
183
183
|
scanf (1.0.0)
|
data/Guardfile.example
CHANGED
@@ -16,7 +16,7 @@ notification(:terminal_notifier, app_name: "Puppet ::", group: `pwd`.chomp) if `
|
|
16
16
|
|
17
17
|
## Uncomment and set this to only include directories you want to watch
|
18
18
|
# directories %w(app lib config test spec features) \
|
19
|
-
# .select{|d| Dir.
|
19
|
+
# .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
20
20
|
|
21
21
|
## Note: if you are using the `directories` clause above and you are not
|
22
22
|
## watching the project directory ('.'), then you will want to move
|
data/ext/project_data.yaml
CHANGED
@@ -48,7 +48,7 @@ class WindowsDaemon < Puppet::Util::Windows::Daemon
|
|
48
48
|
#
|
49
49
|
# Example code to register an event source;
|
50
50
|
# eventlogdll = File.expand_path(File.join(basedir, 'puppet', 'ext', 'windows', 'eventlog', 'puppetres.dll'))
|
51
|
-
# if (File.
|
51
|
+
# if (File.exist?(eventlogdll))
|
52
52
|
# Win32::EventLog.add_event_source(
|
53
53
|
# 'source' => "Application",
|
54
54
|
# 'key_name' => "Puppet Agent",
|
@@ -40,7 +40,10 @@ class Puppet::Node::Facts::Facter < Puppet::Indirector::Code
|
|
40
40
|
Puppet::Node::Facts.new(request.key, Puppet.runtime[:facter].to_hash)
|
41
41
|
else
|
42
42
|
# resolve does not return legacy facts unless requested
|
43
|
-
|
43
|
+
facts = Puppet.runtime[:facter].resolve('')
|
44
|
+
# some versions of Facter 4 return a Facter::FactCollection instead of
|
45
|
+
# a Hash, breaking API compatibility, so force a hash using `to_h`
|
46
|
+
Puppet::Node::Facts.new(request.key, facts.to_h)
|
44
47
|
end
|
45
48
|
|
46
49
|
result.add_local_facts unless request.options[:resolve_options]
|
@@ -23,7 +23,7 @@ Puppet::Parser::Functions::newfunction(:fqdn_rand, :arity => -2, :type => :rvalu
|
|
23
23
|
initial_seed = args.shift
|
24
24
|
downcase = !!args.shift
|
25
25
|
|
26
|
-
fqdn = self['
|
26
|
+
fqdn = self['facts'].dig('networking', 'fqdn')
|
27
27
|
fqdn = fqdn.downcase if downcase
|
28
28
|
|
29
29
|
# Puppet 5.4's fqdn_rand function produces a different value than earlier versions
|
data/lib/puppet/version.rb
CHANGED
data/man/man5/puppet.conf.5
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 "PUPPETCONF" "5" "
|
4
|
+
.TH "PUPPETCONF" "5" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
\fBThis page is autogenerated; any changes will get overwritten\fR
|
6
6
|
.
|
7
7
|
.SH "Configuration settings"
|
@@ -937,7 +937,7 @@ The time to wait for data to be read from an HTTP connection\. If nothing is rea
|
|
937
937
|
The HTTP User\-Agent string to send when making network requests\.
|
938
938
|
.
|
939
939
|
.IP "\(bu" 4
|
940
|
-
\fIDefault\fR: \fBPuppet/7\.
|
940
|
+
\fIDefault\fR: \fBPuppet/7\.23\.0 Ruby/2\.7\.5\-p203 (x86_64\-linux)\fR
|
941
941
|
.
|
942
942
|
.IP "" 0
|
943
943
|
.
|
data/man/man8/puppet-agent.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\-AGENT" "8" "
|
4
|
+
.TH "PUPPET\-AGENT" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-agent\fR \- The puppet agent daemon
|
data/man/man8/puppet-apply.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\-APPLY" "8" "
|
4
|
+
.TH "PUPPET\-APPLY" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-apply\fR \- Apply Puppet manifests locally
|
data/man/man8/puppet-catalog.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\-CATALOG" "8" "
|
4
|
+
.TH "PUPPET\-CATALOG" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-catalog\fR \- Compile, save, view, and convert catalogs\.
|
data/man/man8/puppet-config.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\-CONFIG" "8" "
|
4
|
+
.TH "PUPPET\-CONFIG" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-config\fR \- Interact with Puppet\'s settings\.
|
data/man/man8/puppet-describe.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\-DESCRIBE" "8" "
|
4
|
+
.TH "PUPPET\-DESCRIBE" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-describe\fR \- Display help about resource types
|
data/man/man8/puppet-device.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\-DEVICE" "8" "
|
4
|
+
.TH "PUPPET\-DEVICE" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-device\fR \- Manage remote network devices
|
data/man/man8/puppet-doc.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\-DOC" "8" "
|
4
|
+
.TH "PUPPET\-DOC" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-doc\fR \- Generate Puppet references
|
data/man/man8/puppet-epp.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\-EPP" "8" "
|
4
|
+
.TH "PUPPET\-EPP" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-epp\fR \- Interact directly with the EPP template parser/renderer\.
|
data/man/man8/puppet-facts.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\-FACTS" "8" "
|
4
|
+
.TH "PUPPET\-FACTS" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-facts\fR \- Retrieve and store facts\.
|
@@ -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\-FILEBUCKET" "8" "
|
4
|
+
.TH "PUPPET\-FILEBUCKET" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-filebucket\fR \- Store and retrieve files in a filebucket
|
data/man/man8/puppet-generate.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\-GENERATE" "8" "
|
4
|
+
.TH "PUPPET\-GENERATE" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-generate\fR \- Generates Puppet code from Ruby definitions\.
|
data/man/man8/puppet-help.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\-HELP" "8" "
|
4
|
+
.TH "PUPPET\-HELP" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-help\fR \- Display Puppet help\.
|
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" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-lookup\fR \- Interactive Hiera lookup
|
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" "February 2023" "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\.
|
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" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-node\fR \- View and manage node definitions\.
|
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" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-parser\fR \- Interact directly with the parser\.
|
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" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-plugin\fR \- Interact with the Puppet plugin system\.
|
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" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-report\fR \- Create, display, and submit reports\.
|
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" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-resource\fR \- The resource abstraction layer shell
|
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" "February 2023" "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
|
data/man/man8/puppet-ssl.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\-SSL" "8" "
|
4
|
+
.TH "PUPPET\-SSL" "8" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\-ssl\fR \- Manage SSL keys and certificates for puppet SSL clients
|
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" "February 2023" "Puppet, Inc." "Puppet manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBpuppet\fR
|
@@ -25,4 +25,4 @@ Specialized:
|
|
25
25
|
catalog Compile, save, view, and convert catalogs\. 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\. node View and manage node definitions\. parser Interact directly with the parser\. plugin Interact with the Puppet plugin system\. script Run a puppet manifests as a script without compiling a catalog ssl Manage SSL keys and certificates for puppet SSL clients
|
26
26
|
.
|
27
27
|
.P
|
28
|
-
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 v7\.
|
28
|
+
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 v7\.23\.0
|
@@ -527,7 +527,7 @@ describe "puppet agent", unless: Puppet::Util::Platform.jruby? do
|
|
527
527
|
}
|
528
528
|
|
529
529
|
# ensure file is written before yielding
|
530
|
-
until File.
|
530
|
+
until File.exist?(path) && File.size(path) > 0 do
|
531
531
|
sleep 0.1
|
532
532
|
end
|
533
533
|
|
@@ -524,7 +524,7 @@ describe Puppet::Application::Agent do
|
|
524
524
|
end
|
525
525
|
|
526
526
|
it "should stop the daemon" do
|
527
|
-
expect(@daemon).to receive(:stop).with(:exit => false)
|
527
|
+
expect(@daemon).to receive(:stop).with({:exit => false})
|
528
528
|
|
529
529
|
expect { execute_agent }.to exit_with 0
|
530
530
|
end
|
@@ -535,7 +535,7 @@ describe Puppet::Application::Device do
|
|
535
535
|
end
|
536
536
|
|
537
537
|
it "makes the Puppet::Pops::Loaders available" do
|
538
|
-
expect(configurer).to receive(:run).with(:network_device => true, :pluginsync => false) do
|
538
|
+
expect(configurer).to receive(:run).with({:network_device => true, :pluginsync => false}) do
|
539
539
|
fail('Loaders not available') unless Puppet.lookup(:loaders) { nil }.is_a?(Puppet::Pops::Loaders)
|
540
540
|
true
|
541
541
|
end.and_return(6, 2)
|
@@ -122,7 +122,7 @@ describe Puppet::Application::Resource do
|
|
122
122
|
allow(@resource_app.command_line).to receive(:args).and_return(['type','name','param=temp'])
|
123
123
|
|
124
124
|
expect(Puppet::Resource.indirection).to receive(:save).with(@res, 'type/name').and_return([@res, @report])
|
125
|
-
expect(Puppet::Resource).to receive(:new).with('type', 'name', :parameters => {'param' => 'temp'}).and_return(@res)
|
125
|
+
expect(Puppet::Resource).to receive(:new).with('type', 'name', {:parameters => {'param' => 'temp'}}).and_return(@res)
|
126
126
|
|
127
127
|
@resource_app.main
|
128
128
|
end
|
data/spec/unit/daemon_spec.rb
CHANGED
@@ -180,7 +180,7 @@ describe Puppet::Daemon, :unless => Puppet::Util::Platform.windows? do
|
|
180
180
|
|
181
181
|
it "should shut down without exiting" do
|
182
182
|
daemon.argv = %w{foo}
|
183
|
-
expect(daemon).to receive(:stop).with(:exit => false)
|
183
|
+
expect(daemon).to receive(:stop).with({:exit => false})
|
184
184
|
daemon.reexec
|
185
185
|
end
|
186
186
|
|
@@ -322,7 +322,7 @@ describe Puppet::FileBucket::Dipper, :uses_checksums => true do
|
|
322
322
|
file = make_tmp_file(plaintext)
|
323
323
|
|
324
324
|
expect(Puppet::FileBucket::File.indirection).to receive(:head).with(
|
325
|
-
%r{#{digest_algorithm}/#{checksum}}, :bucket_path => "/my/bucket"
|
325
|
+
%r{#{digest_algorithm}/#{checksum}}, {:bucket_path => "/my/bucket"}
|
326
326
|
).and_return(true)
|
327
327
|
expect(Puppet::FileBucket::File.indirection).not_to receive(:save)
|
328
328
|
expect(@dipper.backup(file)).to eq(checksum)
|
@@ -153,12 +153,12 @@ describe Puppet::FileServing::Fileset do
|
|
153
153
|
top_names = %w{one two .svn CVS}
|
154
154
|
sub_names = %w{file1 file2 .svn CVS 0 false}
|
155
155
|
|
156
|
-
allow(Dir).to receive(:entries).with(path, encoding: Encoding::UTF_8).and_return(top_names)
|
156
|
+
allow(Dir).to receive(:entries).with(path, {encoding: Encoding::UTF_8}).and_return(top_names)
|
157
157
|
top_names.each do |subdir|
|
158
158
|
@files << subdir # relative path
|
159
159
|
subpath = File.join(path, subdir)
|
160
160
|
allow(Puppet::FileSystem).to receive(stat_method).with(subpath).and_return(@dirstat)
|
161
|
-
allow(Dir).to receive(:entries).with(subpath, encoding: Encoding::UTF_8).and_return(sub_names)
|
161
|
+
allow(Dir).to receive(:entries).with(subpath, {encoding: Encoding::UTF_8}).and_return(sub_names)
|
162
162
|
sub_names.each do |file|
|
163
163
|
@files << File.join(subdir, file) # relative path
|
164
164
|
subfile_path = File.join(subpath, file)
|
@@ -176,12 +176,12 @@ describe Puppet::FileServing::Fileset do
|
|
176
176
|
top_names = (1..10).map {|i| "dir_#{i}" }
|
177
177
|
sub_names = (1..100).map {|i| "file__#{i}" }
|
178
178
|
|
179
|
-
allow(Dir).to receive(:entries).with(path, encoding: Encoding::UTF_8).and_return(top_names)
|
179
|
+
allow(Dir).to receive(:entries).with(path, {encoding: Encoding::UTF_8}).and_return(top_names)
|
180
180
|
top_names.each do |subdir|
|
181
181
|
@files << subdir # relative path
|
182
182
|
subpath = File.join(path, subdir)
|
183
183
|
allow(Puppet::FileSystem).to receive(stat_method).with(subpath).and_return(@dirstat)
|
184
|
-
allow(Dir).to receive(:entries).with(subpath, encoding: Encoding::UTF_8).and_return(sub_names)
|
184
|
+
allow(Dir).to receive(:entries).with(subpath, {encoding: Encoding::UTF_8}).and_return(sub_names)
|
185
185
|
sub_names.each do |file|
|
186
186
|
@files << File.join(subdir, file) # relative path
|
187
187
|
subfile_path = File.join(subpath, file)
|
@@ -193,7 +193,7 @@ describe Puppet::FileServing::Fileset do
|
|
193
193
|
def setup_mocks_for_dir(mock_dir, base_path)
|
194
194
|
path = File.join(base_path, mock_dir.name)
|
195
195
|
allow(Puppet::FileSystem).to receive(:lstat).with(path).and_return(MockStat.new(path, true))
|
196
|
-
allow(Dir).to receive(:entries).with(path, encoding: Encoding::UTF_8).and_return(['.', '..'] + mock_dir.entries.map(&:name))
|
196
|
+
allow(Dir).to receive(:entries).with(path, {encoding: Encoding::UTF_8}).and_return(['.', '..'] + mock_dir.entries.map(&:name))
|
197
197
|
mock_dir.entries.each do |entry|
|
198
198
|
setup_mocks_for_entry(entry, path)
|
199
199
|
end
|
@@ -360,7 +360,7 @@ describe Puppet::FileServing::Fileset do
|
|
360
360
|
link_path = File.join(path, "mylink")
|
361
361
|
expect(Puppet::FileSystem).to receive(:stat).with(link_path).and_raise(Errno::ENOENT)
|
362
362
|
|
363
|
-
allow(Dir).to receive(:entries).with(path, encoding: Encoding::UTF_8).and_return(["mylink"])
|
363
|
+
allow(Dir).to receive(:entries).with(path, {encoding: Encoding::UTF_8}).and_return(["mylink"])
|
364
364
|
|
365
365
|
fileset = Puppet::FileServing::Fileset.new(path)
|
366
366
|
|
@@ -377,16 +377,16 @@ describe Puppet::FileServing::Fileset do
|
|
377
377
|
|
378
378
|
@filesets = @paths.collect do |path|
|
379
379
|
allow(Puppet::FileSystem).to receive(:lstat).with(path).and_return(double('stat', :directory? => true))
|
380
|
-
Puppet::FileServing::Fileset.new(path, :recurse => true)
|
380
|
+
Puppet::FileServing::Fileset.new(path, {:recurse => true})
|
381
381
|
end
|
382
382
|
|
383
383
|
allow(Dir).to receive(:entries).and_return([])
|
384
384
|
end
|
385
385
|
|
386
386
|
it "returns a hash of all files in each fileset with the value being the base path" do
|
387
|
-
expect(Dir).to receive(:entries).with(make_absolute("/first/path"), encoding: Encoding::UTF_8).and_return(%w{one uno})
|
388
|
-
expect(Dir).to receive(:entries).with(make_absolute("/second/path"), encoding: Encoding::UTF_8).and_return(%w{two dos})
|
389
|
-
expect(Dir).to receive(:entries).with(make_absolute("/third/path"), encoding: Encoding::UTF_8).and_return(%w{three tres})
|
387
|
+
expect(Dir).to receive(:entries).with(make_absolute("/first/path"), {encoding: Encoding::UTF_8}).and_return(%w{one uno})
|
388
|
+
expect(Dir).to receive(:entries).with(make_absolute("/second/path"), {encoding: Encoding::UTF_8}).and_return(%w{two dos})
|
389
|
+
expect(Dir).to receive(:entries).with(make_absolute("/third/path"), {encoding: Encoding::UTF_8}).and_return(%w{three tres})
|
390
390
|
|
391
391
|
expect(Puppet::FileServing::Fileset.merge(*@filesets)).to eq({
|
392
392
|
"." => make_absolute("/first/path"),
|
@@ -400,15 +400,15 @@ describe Puppet::FileServing::Fileset do
|
|
400
400
|
end
|
401
401
|
|
402
402
|
it "includes the base directory from the first fileset" do
|
403
|
-
expect(Dir).to receive(:entries).with(make_absolute("/first/path"), encoding: Encoding::UTF_8).and_return(%w{one})
|
404
|
-
expect(Dir).to receive(:entries).with(make_absolute("/second/path"), encoding: Encoding::UTF_8).and_return(%w{two})
|
403
|
+
expect(Dir).to receive(:entries).with(make_absolute("/first/path"), {encoding: Encoding::UTF_8}).and_return(%w{one})
|
404
|
+
expect(Dir).to receive(:entries).with(make_absolute("/second/path"), {encoding: Encoding::UTF_8}).and_return(%w{two})
|
405
405
|
|
406
406
|
expect(Puppet::FileServing::Fileset.merge(*@filesets)["."]).to eq(make_absolute("/first/path"))
|
407
407
|
end
|
408
408
|
|
409
409
|
it "uses the base path of the first found file when relative file paths conflict" do
|
410
|
-
expect(Dir).to receive(:entries).with(make_absolute("/first/path"), encoding: Encoding::UTF_8).and_return(%w{one})
|
411
|
-
expect(Dir).to receive(:entries).with(make_absolute("/second/path"), encoding: Encoding::UTF_8).and_return(%w{one})
|
410
|
+
expect(Dir).to receive(:entries).with(make_absolute("/first/path"), {encoding: Encoding::UTF_8}).and_return(%w{one})
|
411
|
+
expect(Dir).to receive(:entries).with(make_absolute("/second/path"), {encoding: Encoding::UTF_8}).and_return(%w{one})
|
412
412
|
|
413
413
|
expect(Puppet::FileServing::Fileset.merge(*@filesets)["one"]).to eq(make_absolute("/first/path"))
|
414
414
|
end
|
@@ -819,9 +819,11 @@ describe "Puppet::FileSystem" do
|
|
819
819
|
mode = Puppet::FileSystem.stat(dir).mode
|
820
820
|
Puppet::FileSystem.chmod(0, dir)
|
821
821
|
begin
|
822
|
+
# JRuby 9.2.21.0 drops the path from the message..
|
823
|
+
message = Puppet::Util::Platform.jruby? ? /^Permission denied/ : /^Permission denied .* #{path}/
|
822
824
|
expect {
|
823
825
|
Puppet::FileSystem.unlink(path)
|
824
|
-
}.to raise_error(Errno::EACCES,
|
826
|
+
}.to raise_error(Errno::EACCES, message)
|
825
827
|
ensure
|
826
828
|
Puppet::FileSystem.chmod(mode, dir)
|
827
829
|
end
|
@@ -475,7 +475,7 @@ describe Puppet::Graph::SimpleGraph do
|
|
475
475
|
|
476
476
|
it "should write a dot file based on the passed name" do
|
477
477
|
expect(File).to receive(:open).with(@file, "w:UTF-8").and_yield(double("file", :puts => nil))
|
478
|
-
expect(@graph).to receive(:to_dot).with("name" => @name.to_s.capitalize)
|
478
|
+
expect(@graph).to receive(:to_dot).with({"name" => @name.to_s.capitalize})
|
479
479
|
Puppet[:graph] = true
|
480
480
|
@graph.write_graph(@name)
|
481
481
|
end
|