puppet 7.30.0-x64-mingw32 → 7.32.1-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -2
- data/Gemfile.lock +52 -47
- data/Rakefile +41 -0
- data/ext/project_data.yaml +0 -46
- data/ext/windows/service/daemon.rb +9 -2
- data/lib/puppet/application/lookup.rb +2 -0
- data/lib/puppet/file_serving/http_metadata.rb +3 -1
- data/lib/puppet/indirector/catalog/compiler.rb +2 -36
- data/lib/puppet/node/environment.rb +4 -5
- data/lib/puppet/node/server_facts.rb +43 -0
- data/lib/puppet/pops/evaluator/deferred_resolver.rb +44 -8
- data/lib/puppet/provider/group/groupadd.rb +30 -9
- data/lib/puppet/util/windows/daemon.rb +15 -32
- 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
- metadata +33 -7
- data/tasks/cfpropertylist.rake +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 784009bc11c7a5e0961954e5732e1c711557978e9ef5b737048e367f77745c96
|
4
|
+
data.tar.gz: 254acf32beb6252e58c3507d0fe5cce451e3b516e1ab5948d0395edfc2f99652
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76845291f39ed918a7c6a7fefa7488941462b19ac4e4abc1127d22acff52581c8ac3fcaeb6137d2437d128c65f276101d392866f435549c46ab840bd2a46b811
|
7
|
+
data.tar.gz: 729494fa8135f795f807d85f7d60d0b85a169eed000c3bc96a74ae4bfed00619f0af26b0e305b60efb9259006796a865eed332113fce776be92a4c083b47a4f6
|
data/Gemfile
CHANGED
@@ -12,7 +12,11 @@ def location_for(place, fake_version = nil)
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
|
-
#
|
15
|
+
# Make sure these gem requirements are in sync with the gempspec. Specifically,
|
16
|
+
# the runtime_dependencies in puppet.gemspec match the runtime dependencies here
|
17
|
+
# (like semantic_puppet and puppet-resource_api)
|
18
|
+
|
19
|
+
# override .gemspec deps for facter & hiera - may issue warning depending on Bundler version
|
16
20
|
gem "facter", *location_for(ENV['FACTER_LOCATION']) if ENV.has_key?('FACTER_LOCATION')
|
17
21
|
gem "hiera", *location_for(ENV['HIERA_LOCATION']) if ENV.has_key?('HIERA_LOCATION')
|
18
22
|
gem "semantic_puppet", *location_for(ENV['SEMANTIC_PUPPET_LOCATION'] || ["~> 1.0"])
|
@@ -32,10 +36,12 @@ group(:features) do
|
|
32
36
|
# requires native ldap headers/libs
|
33
37
|
# gem 'ruby-ldap', '~> 0.9', require: false, platforms: [:ruby]
|
34
38
|
gem 'puppetserver-ca', '~> 2.0', require: false
|
39
|
+
gem 'CFPropertyList', '~> 2.2', require: false
|
35
40
|
end
|
36
41
|
|
37
42
|
group(:test) do
|
38
|
-
|
43
|
+
# 1.16.0 - 1.16.2 are broken on Windows
|
44
|
+
gem 'ffi', '>= 1.15.5', '< 1.17.0', '!= 1.16.0', '!= 1.16.1', '!= 1.16.2', require: false
|
39
45
|
gem "json-schema", "~> 2.0", require: false
|
40
46
|
gem "rake", *location_for(ENV['RAKE_LOCATION'] || '~> 13.0')
|
41
47
|
gem "rspec", "~> 3.1", require: false
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
puppet (7.
|
5
|
-
CFPropertyList (~> 2.2)
|
4
|
+
puppet (7.32.1)
|
6
5
|
concurrent-ruby (~> 1.0)
|
7
6
|
deep_merge (~> 1.0)
|
8
|
-
facter (
|
7
|
+
facter (> 2.0.1, < 5)
|
9
8
|
fast_gettext (>= 1.1, < 3)
|
10
9
|
hiera (>= 3.2.1, < 4)
|
11
10
|
locale (~> 2.1)
|
12
|
-
multi_json (~> 1.
|
11
|
+
multi_json (~> 1.10)
|
12
|
+
puppet-resource_api (~> 1.5)
|
13
13
|
scanf (~> 1.0)
|
14
14
|
semantic_puppet (~> 1.0)
|
15
15
|
|
@@ -17,16 +17,14 @@ GEM
|
|
17
17
|
remote: https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/
|
18
18
|
specs:
|
19
19
|
CFPropertyList (2.3.6)
|
20
|
-
addressable (2.8.
|
21
|
-
public_suffix (>= 2.0.2, <
|
22
|
-
apt_stage_artifacts (0.11.0)
|
23
|
-
docopt
|
20
|
+
addressable (2.8.7)
|
21
|
+
public_suffix (>= 2.0.2, < 7.0)
|
24
22
|
artifactory (3.0.17)
|
25
23
|
ast (2.4.2)
|
26
24
|
base64 (0.2.0)
|
27
|
-
bigdecimal (3.1.
|
25
|
+
bigdecimal (3.1.8)
|
28
26
|
coderay (1.1.3)
|
29
|
-
concurrent-ruby (1.
|
27
|
+
concurrent-ruby (1.3.3)
|
30
28
|
crack (1.0.0)
|
31
29
|
bigdecimal
|
32
30
|
rexml
|
@@ -37,16 +35,16 @@ GEM
|
|
37
35
|
digest-crc (0.6.5)
|
38
36
|
rake (>= 12.0.0, < 14.0.0)
|
39
37
|
docopt (0.6.1)
|
40
|
-
facter (4.
|
38
|
+
facter (4.8.0)
|
41
39
|
hocon (~> 1.3)
|
42
|
-
thor (>= 1.0.1, <
|
43
|
-
faraday (2.
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
40
|
+
thor (>= 1.0.1, < 1.3)
|
41
|
+
faraday (2.10.0)
|
42
|
+
faraday-net_http (>= 2.0, < 3.2)
|
43
|
+
logger
|
44
|
+
faraday-net_http (3.1.1)
|
45
|
+
net-http
|
48
46
|
fast_gettext (1.1.2)
|
49
|
-
ffi (1.
|
47
|
+
ffi (1.16.3)
|
50
48
|
gettext (3.2.9)
|
51
49
|
locale (>= 2.0.5)
|
52
50
|
text (>= 1.3.0)
|
@@ -54,7 +52,7 @@ GEM
|
|
54
52
|
fast_gettext (~> 1.1.0)
|
55
53
|
gettext (>= 3.0.2, < 3.3.0)
|
56
54
|
locale
|
57
|
-
google-apis-core (0.
|
55
|
+
google-apis-core (0.15.0)
|
58
56
|
addressable (~> 2.5, >= 2.5.1)
|
59
57
|
googleauth (~> 1.9)
|
60
58
|
httpclient (>= 2.8.1, < 3.a)
|
@@ -62,22 +60,22 @@ GEM
|
|
62
60
|
representable (~> 3.0)
|
63
61
|
retriable (>= 2.0, < 4.a)
|
64
62
|
rexml
|
65
|
-
google-apis-iamcredentials_v1 (0.
|
66
|
-
google-apis-core (>= 0.
|
67
|
-
google-apis-storage_v1 (0.
|
68
|
-
google-apis-core (>= 0.
|
63
|
+
google-apis-iamcredentials_v1 (0.21.0)
|
64
|
+
google-apis-core (>= 0.15.0, < 2.a)
|
65
|
+
google-apis-storage_v1 (0.40.0)
|
66
|
+
google-apis-core (>= 0.15.0, < 2.a)
|
69
67
|
google-cloud-core (1.7.0)
|
70
68
|
google-cloud-env (>= 1.0, < 3.a)
|
71
69
|
google-cloud-errors (~> 1.0)
|
72
70
|
google-cloud-env (2.1.1)
|
73
71
|
faraday (>= 1.0, < 3.a)
|
74
72
|
google-cloud-errors (1.4.0)
|
75
|
-
google-cloud-storage (1.
|
73
|
+
google-cloud-storage (1.52.0)
|
76
74
|
addressable (~> 2.8)
|
77
75
|
digest-crc (~> 0.4)
|
78
76
|
google-apis-core (~> 0.13)
|
79
77
|
google-apis-iamcredentials_v1 (~> 0.18)
|
80
|
-
google-apis-storage_v1 (~> 0.
|
78
|
+
google-apis-storage_v1 (~> 0.38)
|
81
79
|
google-cloud-core (~> 1.6)
|
82
80
|
googleauth (~> 1.9)
|
83
81
|
mini_mime (~> 1.0)
|
@@ -90,43 +88,45 @@ GEM
|
|
90
88
|
signet (>= 0.16, < 2.a)
|
91
89
|
hashdiff (1.1.0)
|
92
90
|
hiera (3.12.0)
|
93
|
-
hiera-eyaml (
|
94
|
-
highline
|
95
|
-
optimist
|
91
|
+
hiera-eyaml (4.1.0)
|
92
|
+
highline (~> 2.1)
|
93
|
+
optimist (~> 3.1)
|
96
94
|
highline (2.1.0)
|
97
95
|
hocon (1.4.0)
|
98
96
|
hpricot (0.8.6)
|
99
97
|
httpclient (2.8.3)
|
100
98
|
json-schema (2.8.1)
|
101
99
|
addressable (>= 2.4)
|
102
|
-
jwt (2.8.
|
100
|
+
jwt (2.8.2)
|
103
101
|
base64
|
104
102
|
locale (2.1.4)
|
105
|
-
|
106
|
-
|
103
|
+
logger (1.6.0)
|
104
|
+
memory_profiler (1.0.2)
|
105
|
+
method_source (1.1.0)
|
107
106
|
mini_mime (1.1.5)
|
108
107
|
minitar (0.9)
|
109
108
|
msgpack (1.7.2)
|
110
109
|
multi_json (1.15.0)
|
111
110
|
mustache (1.1.1)
|
111
|
+
net-http (0.4.1)
|
112
|
+
uri
|
112
113
|
optimist (3.1.0)
|
113
114
|
os (1.1.4)
|
114
|
-
packaging (0.
|
115
|
-
apt_stage_artifacts
|
115
|
+
packaging (0.120.0)
|
116
116
|
artifactory (~> 3)
|
117
117
|
csv (>= 3.1.5)
|
118
118
|
google-cloud-storage
|
119
119
|
googleauth
|
120
120
|
rake (>= 12.3)
|
121
121
|
release-metrics
|
122
|
-
parallel (1.
|
123
|
-
parser (3.3.0
|
122
|
+
parallel (1.25.1)
|
123
|
+
parser (3.3.4.0)
|
124
124
|
ast (~> 2.4.1)
|
125
125
|
racc
|
126
126
|
pry (0.14.2)
|
127
127
|
coderay (~> 1.1)
|
128
128
|
method_source (~> 1.0)
|
129
|
-
public_suffix (
|
129
|
+
public_suffix (6.0.1)
|
130
130
|
puppet-resource_api (1.9.0)
|
131
131
|
hocon (>= 1.0)
|
132
132
|
puppetserver-ca (2.7.0)
|
@@ -136,7 +136,7 @@ GEM
|
|
136
136
|
rake (13.2.1)
|
137
137
|
rdiscount (2.2.7.3)
|
138
138
|
rdoc (6.3.4.1)
|
139
|
-
regexp_parser (2.9.
|
139
|
+
regexp_parser (2.9.2)
|
140
140
|
release-metrics (1.1.0)
|
141
141
|
csv
|
142
142
|
docopt
|
@@ -145,7 +145,8 @@ GEM
|
|
145
145
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
146
146
|
uber (< 0.2.0)
|
147
147
|
retriable (3.1.2)
|
148
|
-
rexml (3.2
|
148
|
+
rexml (3.3.2)
|
149
|
+
strscan
|
149
150
|
ronn (0.7.3)
|
150
151
|
hpricot (>= 0.8.2)
|
151
152
|
mustache (>= 0.7.0)
|
@@ -156,13 +157,13 @@ GEM
|
|
156
157
|
rspec-mocks (~> 3.13.0)
|
157
158
|
rspec-core (3.13.0)
|
158
159
|
rspec-support (~> 3.13.0)
|
159
|
-
rspec-expectations (3.13.
|
160
|
+
rspec-expectations (3.13.1)
|
160
161
|
diff-lcs (>= 1.2.0, < 2.0)
|
161
162
|
rspec-support (~> 3.13.0)
|
162
163
|
rspec-its (1.3.0)
|
163
164
|
rspec-core (>= 3.0.0)
|
164
165
|
rspec-expectations (>= 3.0.0)
|
165
|
-
rspec-mocks (3.13.
|
166
|
+
rspec-mocks (3.13.1)
|
166
167
|
diff-lcs (>= 1.2.0, < 2.0)
|
167
168
|
rspec-support (~> 3.13.0)
|
168
169
|
rspec-support (3.13.1)
|
@@ -175,13 +176,12 @@ GEM
|
|
175
176
|
rubocop-ast (>= 1.17.0, < 2.0)
|
176
177
|
ruby-progressbar (~> 1.7)
|
177
178
|
unicode-display_width (>= 1.4.0, < 3.0)
|
178
|
-
rubocop-ast (1.31.
|
179
|
-
parser (>= 3.3.0
|
179
|
+
rubocop-ast (1.31.3)
|
180
|
+
parser (>= 3.3.1.0)
|
180
181
|
rubocop-i18n (3.0.0)
|
181
182
|
rubocop (~> 1.0)
|
182
|
-
ruby-prof (1.
|
183
|
+
ruby-prof (1.7.0)
|
183
184
|
ruby-progressbar (1.13.0)
|
184
|
-
ruby2_keywords (0.0.5)
|
185
185
|
scanf (1.0.0)
|
186
186
|
semantic_puppet (1.1.0)
|
187
187
|
signet (0.19.0)
|
@@ -189,24 +189,28 @@ GEM
|
|
189
189
|
faraday (>= 0.17.5, < 3.a)
|
190
190
|
jwt (>= 1.5, < 3.0)
|
191
191
|
multi_json (~> 1.10)
|
192
|
+
strscan (3.1.0)
|
192
193
|
text (1.3.1)
|
193
|
-
thor (1.
|
194
|
+
thor (1.2.2)
|
194
195
|
trailblazer-option (0.1.2)
|
195
196
|
uber (0.1.0)
|
196
197
|
unicode-display_width (2.5.0)
|
198
|
+
uri (0.13.0)
|
197
199
|
vcr (5.1.0)
|
198
|
-
webmock (3.23.
|
200
|
+
webmock (3.23.1)
|
199
201
|
addressable (>= 2.8.0)
|
200
202
|
crack (>= 0.3.2)
|
201
203
|
hashdiff (>= 0.4.0, < 2.0.0)
|
204
|
+
webrick (1.8.1)
|
202
205
|
yard (0.9.36)
|
203
206
|
|
204
207
|
PLATFORMS
|
205
208
|
x86_64-linux
|
206
209
|
|
207
210
|
DEPENDENCIES
|
211
|
+
CFPropertyList (~> 2.2)
|
208
212
|
diff-lcs (~> 1.3)
|
209
|
-
ffi (
|
213
|
+
ffi (>= 1.15.5, < 1.17.0, != 1.16.2, != 1.16.1, != 1.16.0)
|
210
214
|
gettext-setup (~> 0.28)
|
211
215
|
hiera-eyaml
|
212
216
|
hocon (~> 1.0)
|
@@ -232,6 +236,7 @@ DEPENDENCIES
|
|
232
236
|
semantic_puppet (~> 1.0)
|
233
237
|
vcr (~> 5.0)
|
234
238
|
webmock (~> 3.0)
|
239
|
+
webrick (~> 1.7)
|
235
240
|
yard
|
236
241
|
|
237
242
|
BUNDLED WITH
|
data/Rakefile
CHANGED
@@ -45,6 +45,47 @@ task :default do
|
|
45
45
|
sh %{rake -T}
|
46
46
|
end
|
47
47
|
|
48
|
+
namespace :pl_ci do
|
49
|
+
desc 'Build puppet gems'
|
50
|
+
task :gem_build, [:gemspec] do |t, args|
|
51
|
+
args.with_defaults(gemspec: 'puppet.gemspec')
|
52
|
+
stdout, stderr, status = Open3.capture3(<<~END)
|
53
|
+
gem build #{args.gemspec} --platform x86-mingw32 && \
|
54
|
+
gem build #{args.gemspec} --platform x64-mingw32 && \
|
55
|
+
gem build #{args.gemspec} --platform universal-darwin && \
|
56
|
+
gem build #{args.gemspec}
|
57
|
+
END
|
58
|
+
if !status.exitstatus.zero?
|
59
|
+
puts "Error building #{args.gemspec}\n#{stdout} \n#{stderr}"
|
60
|
+
exit(1)
|
61
|
+
else
|
62
|
+
puts stdout
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
desc 'build the nightly puppet gems'
|
67
|
+
task :nightly_gem_build do
|
68
|
+
# this is taken from `rake package:nightly_gem`
|
69
|
+
extended_dot_version = %x{git describe --tags --dirty --abbrev=7}.chomp.tr('-', '.')
|
70
|
+
|
71
|
+
# we must create tempfile in the same directory as puppetg.gemspec, since
|
72
|
+
# it uses __dir__ to determine which files to include
|
73
|
+
require 'tempfile'
|
74
|
+
Tempfile.create('gemspec', __dir__) do |dst|
|
75
|
+
File.open('puppet.gemspec', 'r') do |src|
|
76
|
+
src.readlines.each do |line|
|
77
|
+
if line.match?(/version\s*=\s*['"][0-9.]+['"]/)
|
78
|
+
line = "spec.version = '#{extended_dot_version}'"
|
79
|
+
end
|
80
|
+
dst.puts line
|
81
|
+
end
|
82
|
+
end
|
83
|
+
dst.flush
|
84
|
+
Rake::Task['pl_ci:gem_build'].invoke(dst.path)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
48
89
|
task :spec do
|
49
90
|
ENV["LOG_SPEC_ORDER"] = "true"
|
50
91
|
sh %{rspec #{ENV['TEST'] || ENV['TESTS'] || 'spec'}}
|
data/ext/project_data.yaml
CHANGED
@@ -1,54 +1,8 @@
|
|
1
1
|
---
|
2
2
|
project: 'puppet'
|
3
|
-
author: 'Puppet Labs'
|
4
|
-
email: 'info@puppetlabs.com'
|
5
|
-
homepage: 'https://github.com/puppetlabs/puppet'
|
6
|
-
summary: 'Puppet, an automated configuration management tool'
|
7
|
-
description: 'Puppet, an automated configuration management tool'
|
8
|
-
version_file: 'lib/puppet/version.rb'
|
9
|
-
# files and gem_files are space separated lists
|
10
|
-
files: '[A-Z]* install.rb bin lib conf man examples ext tasks locales'
|
11
|
-
# Make sure these gem requirements are in sync with the gemspec and Gemfile
|
12
|
-
gem_files: '[A-Z]* install.rb bin lib conf man examples ext tasks locales'
|
13
|
-
gem_test_files:
|
14
|
-
gem_executables: 'puppet'
|
15
|
-
gem_default_executables: 'puppet'
|
16
|
-
gem_license: 'Apache-2.0'
|
17
|
-
gem_forge_project: 'puppet'
|
18
|
-
gem_required_ruby_version: '>= 2.5.0'
|
19
|
-
gem_required_rubygems_version: '> 1.3.1'
|
20
|
-
gem_runtime_dependencies:
|
21
|
-
facter: ['> 2.0.1', '< 5']
|
22
|
-
hiera: ['>= 3.2.1', '< 4']
|
23
|
-
semantic_puppet: '~> 1.0'
|
24
|
-
fast_gettext: ['>= 1.1', '< 3']
|
25
|
-
locale: '~> 2.1'
|
26
|
-
multi_json: '~> 1.10'
|
27
|
-
puppet-resource_api: '~>1.5'
|
28
|
-
concurrent-ruby: "~> 1.0"
|
29
|
-
deep_merge: '~> 1.0'
|
30
|
-
scanf: '~> 1.0'
|
31
3
|
gem_rdoc_options:
|
32
4
|
- --title
|
33
5
|
- "Puppet - Configuration Management"
|
34
6
|
- --main
|
35
7
|
- README.md
|
36
8
|
- --line-numbers
|
37
|
-
gem_platform_dependencies:
|
38
|
-
universal-darwin:
|
39
|
-
gem_runtime_dependencies:
|
40
|
-
CFPropertyList: '~> 2.2'
|
41
|
-
x86-mingw32:
|
42
|
-
gem_runtime_dependencies:
|
43
|
-
ffi: '1.15.5'
|
44
|
-
minitar: '~> 0.9'
|
45
|
-
x64-mingw32:
|
46
|
-
gem_runtime_dependencies:
|
47
|
-
ffi: '1.15.5'
|
48
|
-
minitar: '~> 0.9'
|
49
|
-
bundle_platforms:
|
50
|
-
universal-darwin: all
|
51
|
-
x86-mingw32: mingw
|
52
|
-
x64-mingw32: x64_mingw
|
53
|
-
pre_tasks:
|
54
|
-
'package:apple': 'cfpropertylist'
|
@@ -159,12 +159,19 @@ class WindowsDaemon < Puppet::Util::Windows::Daemon
|
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
162
|
+
# Parses runinterval.
|
163
|
+
#
|
164
|
+
# @param puppet_path [String] The file path for the Puppet executable.
|
165
|
+
# @return runinterval [Integer] How often to do a Puppet run, in seconds.
|
162
166
|
def parse_runinterval(puppet_path)
|
163
167
|
begin
|
164
|
-
runinterval = %x
|
165
|
-
if runinterval ==
|
168
|
+
runinterval = %x(#{puppet_path} config --section agent --log_level notice print runinterval).chomp
|
169
|
+
if runinterval == ''
|
166
170
|
runinterval = 1800
|
167
171
|
log_err("Failed to determine runinterval, defaulting to #{runinterval} seconds")
|
172
|
+
else
|
173
|
+
# Use Kernel#Integer because to_i will return 0 with non-numeric strings.
|
174
|
+
runinterval = Integer(runinterval)
|
168
175
|
end
|
169
176
|
rescue Exception => e
|
170
177
|
log_exception(e)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require_relative '../../puppet/application'
|
2
2
|
require_relative '../../puppet/pops'
|
3
3
|
require_relative '../../puppet/node'
|
4
|
+
require_relative '../../puppet/node/server_facts'
|
4
5
|
require_relative '../../puppet/parser/compiler'
|
5
6
|
|
6
7
|
class Puppet::Application::Lookup < Puppet::Application
|
@@ -406,6 +407,7 @@ Copyright (c) 2015 Puppet Inc., LLC Licensed under the Apache 2.0 License
|
|
406
407
|
node.add_extra_facts(given_facts) if given_facts
|
407
408
|
end
|
408
409
|
node.environment = Puppet[:environment] if Puppet.settings.set_by_cli?(:environment)
|
410
|
+
node.add_server_facts(Puppet::Node::ServerFacts.load)
|
409
411
|
Puppet[:code] = 'undef' unless options[:compile]
|
410
412
|
compiler = Puppet::Parser::Compiler.new(node)
|
411
413
|
if options[:node]
|
@@ -51,7 +51,9 @@ class Puppet::FileServing::HttpMetadata < Puppet::FileServing::Metadata
|
|
51
51
|
def collect
|
52
52
|
# Prefer the checksum_type from the indirector request options
|
53
53
|
# but fall back to the alternative otherwise
|
54
|
-
[
|
54
|
+
[@checksum_type, :sha256, :sha1, :md5, :mtime].each do |type|
|
55
|
+
next if type == :md5 && Puppet::Util::Platform.fips_enabled?
|
56
|
+
|
55
57
|
@checksum_type = type
|
56
58
|
@checksum = @checksums[type]
|
57
59
|
break if @checksum
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require_relative '../../../puppet/environments'
|
2
2
|
require_relative '../../../puppet/node'
|
3
|
+
require_relative '../../../puppet/node/server_facts'
|
3
4
|
require_relative '../../../puppet/resource/catalog'
|
4
5
|
require_relative '../../../puppet/indirector/code'
|
5
6
|
require_relative '../../../puppet/util/profiler'
|
@@ -425,41 +426,6 @@ class Puppet::Resource::Catalog::Compiler < Puppet::Indirector::Code
|
|
425
426
|
#
|
426
427
|
# See also set_server_facts in Puppet::Server::Compiler in puppetserver.
|
427
428
|
def set_server_facts
|
428
|
-
@server_facts =
|
429
|
-
|
430
|
-
# Add our server Puppet Enterprise version, if available.
|
431
|
-
pe_version_file = '/opt/puppetlabs/server/pe_version'
|
432
|
-
if File.readable?(pe_version_file) and !File.zero?(pe_version_file)
|
433
|
-
@server_facts['pe_serverversion'] = File.read(pe_version_file).chomp
|
434
|
-
end
|
435
|
-
|
436
|
-
# Add our server version to the fact list
|
437
|
-
@server_facts["serverversion"] = Puppet.version.to_s
|
438
|
-
|
439
|
-
# And then add the server name and IP
|
440
|
-
{"servername" => "fqdn",
|
441
|
-
"serverip" => "ipaddress",
|
442
|
-
"serverip6" => "ipaddress6"
|
443
|
-
}.each do |var, fact|
|
444
|
-
value = Puppet.runtime[:facter].value(fact)
|
445
|
-
if !value.nil?
|
446
|
-
@server_facts[var] = value
|
447
|
-
end
|
448
|
-
end
|
449
|
-
|
450
|
-
if @server_facts["servername"].nil?
|
451
|
-
host = Puppet.runtime[:facter].value(:hostname)
|
452
|
-
if host.nil?
|
453
|
-
Puppet.warning _("Could not retrieve fact servername")
|
454
|
-
elsif domain = Puppet.runtime[:facter].value(:domain) #rubocop:disable Lint/AssignmentInCondition
|
455
|
-
@server_facts["servername"] = [host, domain].join(".")
|
456
|
-
else
|
457
|
-
@server_facts["servername"] = host
|
458
|
-
end
|
459
|
-
end
|
460
|
-
|
461
|
-
if @server_facts["serverip"].nil? && @server_facts["serverip6"].nil?
|
462
|
-
Puppet.warning _("Could not retrieve either serverip or serverip6 fact")
|
463
|
-
end
|
429
|
+
@server_facts = Puppet::Node::ServerFacts.load
|
464
430
|
end
|
465
431
|
end
|
@@ -591,12 +591,11 @@ class Puppet::Node::Environment
|
|
591
591
|
if file == NO_MANIFEST
|
592
592
|
empty_parse_result
|
593
593
|
elsif File.directory?(file)
|
594
|
-
# JRuby does not properly perform Dir.glob operations with wildcards, (see PUP-11788 and https://github.com/jruby/jruby/issues/7836).
|
595
594
|
# We sort the results because Dir.glob order is inconsistent in Ruby < 3 (see PUP-10115).
|
596
|
-
parse_results = Puppet::FileSystem::PathPattern.absolute(File.join(file, '
|
597
|
-
|
598
|
-
|
599
|
-
|
595
|
+
parse_results = Puppet::FileSystem::PathPattern.absolute(File.join(file, '**/*.pp')).glob.sort.map do | file_to_parse |
|
596
|
+
parser.file = file_to_parse
|
597
|
+
parser.parse
|
598
|
+
end
|
600
599
|
# Use a parser type specific merger to concatenate the results
|
601
600
|
Puppet::Parser::AST::Hostclass.new('', :code => Puppet::Parser::ParserFactory.code_merger.concatenate(parse_results))
|
602
601
|
else
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Puppet::Node::ServerFacts
|
4
|
+
def self.load
|
5
|
+
server_facts = {}
|
6
|
+
|
7
|
+
# Add our server Puppet Enterprise version, if available.
|
8
|
+
pe_version_file = '/opt/puppetlabs/server/pe_version'
|
9
|
+
if File.readable?(pe_version_file) and !File.zero?(pe_version_file)
|
10
|
+
server_facts['pe_serverversion'] = File.read(pe_version_file).chomp
|
11
|
+
end
|
12
|
+
|
13
|
+
# Add our server version to the fact list
|
14
|
+
server_facts["serverversion"] = Puppet.version.to_s
|
15
|
+
|
16
|
+
# And then add the server name and IP
|
17
|
+
{"servername" => "fqdn",
|
18
|
+
"serverip" => "ipaddress",
|
19
|
+
"serverip6" => "ipaddress6"}.each do |var, fact|
|
20
|
+
value = Puppet.runtime[:facter].value(fact)
|
21
|
+
if !value.nil?
|
22
|
+
server_facts[var] = value
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
if server_facts["servername"].nil?
|
27
|
+
host = Puppet.runtime[:facter].value(:hostname)
|
28
|
+
if host.nil?
|
29
|
+
Puppet.warning _("Could not retrieve fact servername")
|
30
|
+
elsif domain = Puppet.runtime[:facter].value(:domain) #rubocop:disable Lint/AssignmentInCondition
|
31
|
+
server_facts["servername"] = [host, domain].join(".")
|
32
|
+
else
|
33
|
+
server_facts["servername"] = host
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
if server_facts["serverip"].nil? && server_facts["serverip6"].nil?
|
38
|
+
Puppet.warning _("Could not retrieve either serverip or serverip6 fact")
|
39
|
+
end
|
40
|
+
|
41
|
+
server_facts
|
42
|
+
end
|
43
|
+
end
|
@@ -88,16 +88,25 @@ class DeferredResolver
|
|
88
88
|
overrides = {}
|
89
89
|
r.parameters.each_pair do |k, v|
|
90
90
|
resolved = resolve(v)
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
91
|
+
case resolved
|
92
|
+
when Puppet::Pops::Types::PSensitiveType::Sensitive
|
93
|
+
# If the resolved value is instance of Sensitive - assign the unwrapped value
|
94
|
+
# and mark it as sensitive if not already marked
|
95
|
+
#
|
95
96
|
resolved = resolved.unwrap
|
96
97
|
mark_sensitive_parameters(r, k)
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
98
|
+
|
99
|
+
when Puppet::Pops::Evaluator::DeferredValue
|
100
|
+
# If the resolved value is a DeferredValue and it has an argument of type
|
101
|
+
# PSensitiveType, mark it as sensitive. Since DeferredValues can nest,
|
102
|
+
# we must walk all arguments, e.g. the DeferredValue may call the `epp`
|
103
|
+
# function, where one of its arguments is a DeferredValue to call the
|
104
|
+
# `vault:lookup` function.
|
105
|
+
#
|
106
|
+
# The DeferredValue.resolve method will unwrap the sensitive during
|
107
|
+
# catalog application
|
108
|
+
#
|
109
|
+
if contains_sensitive_args?(v)
|
101
110
|
mark_sensitive_parameters(r, k)
|
102
111
|
end
|
103
112
|
end
|
@@ -107,6 +116,33 @@ class DeferredResolver
|
|
107
116
|
end
|
108
117
|
end
|
109
118
|
|
119
|
+
# Return true if x contains an argument that is an instance of PSensitiveType:
|
120
|
+
#
|
121
|
+
# Deferred('new', [Sensitive, 'password'])
|
122
|
+
#
|
123
|
+
# Or an instance of PSensitiveType::Sensitive:
|
124
|
+
#
|
125
|
+
# Deferred('join', [['a', Sensitive('b')], ':'])
|
126
|
+
#
|
127
|
+
# Since deferred values can nest, descend into Arrays and Hash keys and values,
|
128
|
+
# short-circuiting when the first occurrence is found.
|
129
|
+
#
|
130
|
+
def contains_sensitive_args?(x)
|
131
|
+
case x
|
132
|
+
when @deferred_class
|
133
|
+
contains_sensitive_args?(x.arguments)
|
134
|
+
when Array
|
135
|
+
x.any? { |v| contains_sensitive_args?(v) }
|
136
|
+
when Hash
|
137
|
+
x.any? { |k, v| contains_sensitive_args?(k) || contains_sensitive_args?(v) }
|
138
|
+
when Puppet::Pops::Types::PSensitiveType, Puppet::Pops::Types::PSensitiveType::Sensitive
|
139
|
+
true
|
140
|
+
else
|
141
|
+
false
|
142
|
+
end
|
143
|
+
end
|
144
|
+
private :contains_sensitive_args?
|
145
|
+
|
110
146
|
def mark_sensitive_parameters(r, k)
|
111
147
|
unless r.sensitive_parameters.include?(k.to_sym)
|
112
148
|
r.sensitive_parameters = (r.sensitive_parameters + [k.to_sym]).freeze
|
@@ -15,11 +15,20 @@ Puppet::Type.type(:group).provide :groupadd, :parent => Puppet::Provider::NameSe
|
|
15
15
|
value.is_a? Integer
|
16
16
|
end
|
17
17
|
|
18
|
-
optional_commands :localadd => "lgroupadd", :localdelete => "lgroupdel", :localmodify => "lgroupmod"
|
19
|
-
|
20
|
-
has_feature :manages_local_users_and_groups
|
21
|
-
|
22
|
-
|
18
|
+
optional_commands :localadd => "lgroupadd", :localdelete => "lgroupdel", :localmodify => "lgroupmod", :purgemember => "usermod"
|
19
|
+
|
20
|
+
has_feature :manages_local_users_and_groups if Puppet.features.libuser?
|
21
|
+
has_feature :manages_members if Puppet.features.libuser? ||
|
22
|
+
(Puppet.runtime[:facter].value('os.name') == "Fedora" &&
|
23
|
+
Puppet.runtime[:facter].value('os.release.major').to_i >= 40)
|
24
|
+
|
25
|
+
# Libuser's modify command 'lgroupmod' requires '-M' flag for member additions.
|
26
|
+
# 'groupmod' command requires the '-aU' flags for it.
|
27
|
+
if Puppet.features.libuser?
|
28
|
+
options :members, :flag => '-M', :method => :mem
|
29
|
+
else
|
30
|
+
options :members, :flag => '-aU', :method => :mem
|
31
|
+
end
|
23
32
|
|
24
33
|
def exists?
|
25
34
|
return !!localgid if @resource.forcelocal?
|
@@ -58,7 +67,8 @@ Puppet::Type.type(:group).provide :groupadd, :parent => Puppet::Provider::NameSe
|
|
58
67
|
end
|
59
68
|
|
60
69
|
def addcmd
|
61
|
-
|
70
|
+
# The localadd command (lgroupadd) must only be called when libuser is supported.
|
71
|
+
if Puppet.features.libuser? && @resource.forcelocal?
|
62
72
|
cmd = [command(:localadd)]
|
63
73
|
@custom_environment = Puppet::Util::Libuser.getenv
|
64
74
|
else
|
@@ -86,7 +96,8 @@ Puppet::Type.type(:group).provide :groupadd, :parent => Puppet::Provider::NameSe
|
|
86
96
|
end
|
87
97
|
|
88
98
|
def modifycmd(param, value)
|
89
|
-
|
99
|
+
# The localmodify command (lgroupmod) must only be called when libuser is supported.
|
100
|
+
if Puppet.features.libuser? && (@resource.forcelocal? || @resource[:members])
|
90
101
|
cmd = [command(:localmodify)]
|
91
102
|
@custom_environment = Puppet::Util::Libuser.getenv
|
92
103
|
else
|
@@ -109,7 +120,8 @@ Puppet::Type.type(:group).provide :groupadd, :parent => Puppet::Provider::NameSe
|
|
109
120
|
end
|
110
121
|
|
111
122
|
def deletecmd
|
112
|
-
|
123
|
+
# The localdelete command (lgroupdel) must only be called when libuser is supported.
|
124
|
+
if Puppet.features.libuser? && @resource.forcelocal?
|
113
125
|
@custom_environment = Puppet::Util::Libuser.getenv
|
114
126
|
[command(:localdelete), @resource[:name]]
|
115
127
|
else
|
@@ -127,7 +139,16 @@ Puppet::Type.type(:group).provide :groupadd, :parent => Puppet::Provider::NameSe
|
|
127
139
|
end
|
128
140
|
|
129
141
|
def purge_members
|
130
|
-
|
142
|
+
# The groupadd provider doesn't have the ability currently to remove members from a group, libuser does.
|
143
|
+
# Use libuser's lgroupmod command to achieve purging members if libuser is supported.
|
144
|
+
# Otherwise use the 'usermod' command.
|
145
|
+
if Puppet.features.libuser?
|
146
|
+
localmodify('-m', members_to_s(members), @resource.name)
|
147
|
+
else
|
148
|
+
members.each do |member|
|
149
|
+
purgemember('-rG', @resource.name, member)
|
150
|
+
end
|
151
|
+
end
|
131
152
|
end
|
132
153
|
|
133
154
|
private
|
@@ -188,25 +188,6 @@ module Puppet::Util::Windows
|
|
188
188
|
end
|
189
189
|
end
|
190
190
|
|
191
|
-
ThreadProc = FFI::Function.new(:ulong,[:pointer]) do |lpParameter|
|
192
|
-
ste = FFI::MemoryPointer.new(SERVICE_TABLE_ENTRYW, 2)
|
193
|
-
|
194
|
-
s = SERVICE_TABLE_ENTRYW.new(ste[0])
|
195
|
-
s[:lpServiceName] = FFI::MemoryPointer.from_string('')
|
196
|
-
s[:lpServiceProc] = lpParameter
|
197
|
-
|
198
|
-
s = SERVICE_TABLE_ENTRYW.new(ste[1])
|
199
|
-
s[:lpServiceName] = nil
|
200
|
-
s[:lpServiceProc] = nil
|
201
|
-
|
202
|
-
# No service to step, no service handle, no ruby exceptions, just terminate the thread..
|
203
|
-
if !StartServiceCtrlDispatcherW(ste)
|
204
|
-
return 1
|
205
|
-
end
|
206
|
-
|
207
|
-
return 0
|
208
|
-
end
|
209
|
-
|
210
191
|
# This is a shortcut for Daemon.new + Daemon#mainloop.
|
211
192
|
#
|
212
193
|
def self.mainloop
|
@@ -256,26 +237,28 @@ module Puppet::Util::Windows
|
|
256
237
|
raise SystemCallError.new('CreateEvent', FFI.errno)
|
257
238
|
end
|
258
239
|
|
259
|
-
hThread =
|
240
|
+
hThread = Thread.new do
|
241
|
+
ste = FFI::MemoryPointer.new(SERVICE_TABLE_ENTRYW, 2)
|
260
242
|
|
261
|
-
|
262
|
-
|
263
|
-
|
243
|
+
s = SERVICE_TABLE_ENTRYW.new(ste[0])
|
244
|
+
s[:lpServiceName] = FFI::MemoryPointer.from_string("")
|
245
|
+
s[:lpServiceProc] = Service_Main
|
264
246
|
|
265
|
-
|
266
|
-
|
267
|
-
|
247
|
+
s = SERVICE_TABLE_ENTRYW.new(ste[1])
|
248
|
+
s[:lpServiceName] = nil
|
249
|
+
s[:lpServiceProc] = nil
|
268
250
|
|
269
|
-
|
251
|
+
# No service to step, no service handle, no ruby exceptions, just terminate the thread..
|
252
|
+
StartServiceCtrlDispatcherW(ste)
|
270
253
|
end
|
271
254
|
|
272
|
-
|
273
|
-
|
255
|
+
while (index = WaitForSingleObject(@@hStartEvent, 1000)) == WAIT_TIMEOUT
|
256
|
+
# The thread exited, so the show is off.
|
257
|
+
raise "Service_Main thread exited abnormally" unless hThread.alive?
|
274
258
|
end
|
275
259
|
|
276
|
-
|
277
|
-
|
278
|
-
raise "Service_Main thread exited abnormally"
|
260
|
+
if index == WAIT_FAILED
|
261
|
+
raise SystemCallError.new("WaitForSingleObject", FFI.errno)
|
279
262
|
end
|
280
263
|
|
281
264
|
thr = Thread.new do
|
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" "July 2024" "Puppet, Inc." "Puppet manual"
|
5
5
|
\fBThis page is autogenerated; any changes will get overwritten\fR
|
6
6
|
.
|
7
7
|
.SH "Configuration settings"
|
@@ -945,7 +945,7 @@ The time to wait for data to be read from an HTTP connection\. If nothing is rea
|
|
945
945
|
The HTTP User\-Agent string to send when making network requests\.
|
946
946
|
.
|
947
947
|
.IP "\(bu" 4
|
948
|
-
\fIDefault\fR: \fBPuppet/7\.
|
948
|
+
\fIDefault\fR: \fBPuppet/7\.32\.0 Ruby/3\.1\.1\-p18 (x86_64\-linux)\fR
|
949
949
|
.
|
950
950
|
.IP "" 0
|
951
951
|
.
|
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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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" "July 2024" "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\.32\.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.32.1
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2012-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|
@@ -172,16 +172,40 @@ dependencies:
|
|
172
172
|
name: ffi
|
173
173
|
requirement: !ruby/object:Gem::Requirement
|
174
174
|
requirements:
|
175
|
-
- -
|
175
|
+
- - ">="
|
176
176
|
- !ruby/object:Gem::Version
|
177
177
|
version: 1.15.5
|
178
|
+
- - "<"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 1.17.0
|
181
|
+
- - "!="
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: 1.16.0
|
184
|
+
- - "!="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 1.16.1
|
187
|
+
- - "!="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: 1.16.2
|
178
190
|
type: :runtime
|
179
191
|
prerelease: false
|
180
192
|
version_requirements: !ruby/object:Gem::Requirement
|
181
193
|
requirements:
|
182
|
-
- -
|
194
|
+
- - ">="
|
183
195
|
- !ruby/object:Gem::Version
|
184
196
|
version: 1.15.5
|
197
|
+
- - "<"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: 1.17.0
|
200
|
+
- - "!="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: 1.16.0
|
203
|
+
- - "!="
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: 1.16.1
|
206
|
+
- - "!="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 1.16.2
|
185
209
|
- !ruby/object:Gem::Dependency
|
186
210
|
name: minitar
|
187
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,7 +220,9 @@ dependencies:
|
|
196
220
|
- - "~>"
|
197
221
|
- !ruby/object:Gem::Version
|
198
222
|
version: '0.9'
|
199
|
-
description:
|
223
|
+
description: |
|
224
|
+
Puppet, an automated administrative engine for your Linux, Unix, and Windows systems, performs administrative tasks
|
225
|
+
(such as adding users, installing packages, and updating server configurations) based on a centralized specification.
|
200
226
|
email: info@puppetlabs.com
|
201
227
|
executables:
|
202
228
|
- puppet
|
@@ -677,6 +703,7 @@ files:
|
|
677
703
|
- lib/puppet/node.rb
|
678
704
|
- lib/puppet/node/environment.rb
|
679
705
|
- lib/puppet/node/facts.rb
|
706
|
+
- lib/puppet/node/server_facts.rb
|
680
707
|
- lib/puppet/pal/catalog_compiler.rb
|
681
708
|
- lib/puppet/pal/compiler.rb
|
682
709
|
- lib/puppet/pal/function_signature.rb
|
@@ -1312,7 +1339,6 @@ files:
|
|
1312
1339
|
- man/man8/puppet-ssl.8
|
1313
1340
|
- man/man8/puppet.8
|
1314
1341
|
- tasks/benchmark.rake
|
1315
|
-
- tasks/cfpropertylist.rake
|
1316
1342
|
- tasks/ci.rake
|
1317
1343
|
- tasks/generate_ast_model.rake
|
1318
1344
|
- tasks/generate_cert_fixtures.rake
|
@@ -1330,7 +1356,7 @@ rdoc_options:
|
|
1330
1356
|
- "--title"
|
1331
1357
|
- Puppet - Configuration Management
|
1332
1358
|
- "--main"
|
1333
|
-
- README
|
1359
|
+
- README
|
1334
1360
|
- "--line-numbers"
|
1335
1361
|
require_paths:
|
1336
1362
|
- lib
|
data/tasks/cfpropertylist.rake
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
task 'cfpropertylist' do
|
2
|
-
if defined? Pkg::Config and Pkg::Config.project_root
|
3
|
-
cfp_version = "2.3.5"
|
4
|
-
libdir = File.join(Pkg::Config.project_root, "lib")
|
5
|
-
source = "https://github.com/ckruse/CFPropertyList/archive/cfpropertylist-#{cfp_version}.tar.gz"
|
6
|
-
target_dir = Pkg::Util::File.mktemp
|
7
|
-
target = File.join(target_dir, "cfpropertylist")
|
8
|
-
Pkg::Util::Net.fetch_uri(source, target)
|
9
|
-
Pkg::Util::File.untar_into(target, target_dir, "--strip-components 1")
|
10
|
-
mv(Dir.glob("#{File.join(target_dir, "lib")}/cfpropertylist*"), libdir)
|
11
|
-
mv(Dir.glob("#{target_dir}/{LICENSE,README,THANKS}"), File.join(libdir, "cfpropertylist"))
|
12
|
-
else
|
13
|
-
warn "It looks like the packaging tasks have not been loaded. You'll need to `rake package:bootstrap` before using this task"
|
14
|
-
end
|
15
|
-
end
|