puppet 7.30.0-universal-darwin → 7.31.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 +8 -2
- data/Gemfile.lock +43 -40
- data/Rakefile +41 -0
- data/ext/project_data.yaml +0 -46
- data/lib/puppet/daemon.rb +1 -0
- data/lib/puppet/node/environment.rb +4 -5
- data/lib/puppet/provider/group/groupadd.rb +30 -9
- data/lib/puppet/scheduler/splay_job.rb +9 -0
- 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 +6 -5
- 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: 1f73756c0bf4d24a233fc7f920f4c79f46237283748d304b9de0e7d2e8f6261c
|
4
|
+
data.tar.gz: ed008208235f076f8cdb89ef06bf3a3182b74b87934da515288ce75c09ff2c55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5691780693e508b0c1033b614462ca3bc2f4f563aa84edbccdf380759fa9005de91b60ea5de2563dcff50f7eeccee1778c2922209a8f650f092915a9fabc573d
|
7
|
+
data.tar.gz: f9632ca813cdc89759b7ecef41af6367a4e1d3c1b329ea6e1a0ded610b545de218ce223babdb739f7048987aa23a780eb0e700b647d6be695b3da648cc2eea24
|
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.31.0)
|
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
|
|
@@ -19,14 +19,12 @@ GEM
|
|
19
19
|
CFPropertyList (2.3.6)
|
20
20
|
addressable (2.8.6)
|
21
21
|
public_suffix (>= 2.0.2, < 6.0)
|
22
|
-
apt_stage_artifacts (0.11.0)
|
23
|
-
docopt
|
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.1)
|
30
28
|
crack (1.0.0)
|
31
29
|
bigdecimal
|
32
30
|
rexml
|
@@ -37,16 +35,15 @@ 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.7.0)
|
41
39
|
hocon (~> 1.3)
|
42
|
-
thor (>= 1.0.1, <
|
43
|
-
faraday (2.
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
faraday-net_http (3.0.2)
|
40
|
+
thor (>= 1.0.1, < 1.3)
|
41
|
+
faraday (2.9.1)
|
42
|
+
faraday-net_http (>= 2.0, < 3.2)
|
43
|
+
faraday-net_http (3.1.0)
|
44
|
+
net-http
|
48
45
|
fast_gettext (1.1.2)
|
49
|
-
ffi (1.
|
46
|
+
ffi (1.16.3)
|
50
47
|
gettext (3.2.9)
|
51
48
|
locale (>= 2.0.5)
|
52
49
|
text (>= 1.3.0)
|
@@ -54,7 +51,7 @@ GEM
|
|
54
51
|
fast_gettext (~> 1.1.0)
|
55
52
|
gettext (>= 3.0.2, < 3.3.0)
|
56
53
|
locale
|
57
|
-
google-apis-core (0.
|
54
|
+
google-apis-core (0.15.0)
|
58
55
|
addressable (~> 2.5, >= 2.5.1)
|
59
56
|
googleauth (~> 1.9)
|
60
57
|
httpclient (>= 2.8.1, < 3.a)
|
@@ -62,22 +59,22 @@ GEM
|
|
62
59
|
representable (~> 3.0)
|
63
60
|
retriable (>= 2.0, < 4.a)
|
64
61
|
rexml
|
65
|
-
google-apis-iamcredentials_v1 (0.
|
66
|
-
google-apis-core (>= 0.
|
67
|
-
google-apis-storage_v1 (0.
|
68
|
-
google-apis-core (>= 0.
|
62
|
+
google-apis-iamcredentials_v1 (0.21.0)
|
63
|
+
google-apis-core (>= 0.15.0, < 2.a)
|
64
|
+
google-apis-storage_v1 (0.39.0)
|
65
|
+
google-apis-core (>= 0.15.0, < 2.a)
|
69
66
|
google-cloud-core (1.7.0)
|
70
67
|
google-cloud-env (>= 1.0, < 3.a)
|
71
68
|
google-cloud-errors (~> 1.0)
|
72
69
|
google-cloud-env (2.1.1)
|
73
70
|
faraday (>= 1.0, < 3.a)
|
74
71
|
google-cloud-errors (1.4.0)
|
75
|
-
google-cloud-storage (1.
|
72
|
+
google-cloud-storage (1.52.0)
|
76
73
|
addressable (~> 2.8)
|
77
74
|
digest-crc (~> 0.4)
|
78
75
|
google-apis-core (~> 0.13)
|
79
76
|
google-apis-iamcredentials_v1 (~> 0.18)
|
80
|
-
google-apis-storage_v1 (~> 0.
|
77
|
+
google-apis-storage_v1 (~> 0.38)
|
81
78
|
google-cloud-core (~> 1.6)
|
82
79
|
googleauth (~> 1.9)
|
83
80
|
mini_mime (~> 1.0)
|
@@ -90,9 +87,9 @@ GEM
|
|
90
87
|
signet (>= 0.16, < 2.a)
|
91
88
|
hashdiff (1.1.0)
|
92
89
|
hiera (3.12.0)
|
93
|
-
hiera-eyaml (
|
94
|
-
highline
|
95
|
-
optimist
|
90
|
+
hiera-eyaml (4.1.0)
|
91
|
+
highline (~> 2.1)
|
92
|
+
optimist (~> 3.1)
|
96
93
|
highline (2.1.0)
|
97
94
|
hocon (1.4.0)
|
98
95
|
hpricot (0.8.6)
|
@@ -103,16 +100,17 @@ GEM
|
|
103
100
|
base64
|
104
101
|
locale (2.1.4)
|
105
102
|
memory_profiler (1.0.1)
|
106
|
-
method_source (1.
|
103
|
+
method_source (1.1.0)
|
107
104
|
mini_mime (1.1.5)
|
108
105
|
minitar (0.9)
|
109
106
|
msgpack (1.7.2)
|
110
107
|
multi_json (1.15.0)
|
111
108
|
mustache (1.1.1)
|
109
|
+
net-http (0.4.1)
|
110
|
+
uri
|
112
111
|
optimist (3.1.0)
|
113
112
|
os (1.1.4)
|
114
|
-
packaging (0.
|
115
|
-
apt_stage_artifacts
|
113
|
+
packaging (0.120.0)
|
116
114
|
artifactory (~> 3)
|
117
115
|
csv (>= 3.1.5)
|
118
116
|
google-cloud-storage
|
@@ -120,7 +118,7 @@ GEM
|
|
120
118
|
rake (>= 12.3)
|
121
119
|
release-metrics
|
122
120
|
parallel (1.24.0)
|
123
|
-
parser (3.3.0
|
121
|
+
parser (3.3.2.0)
|
124
122
|
ast (~> 2.4.1)
|
125
123
|
racc
|
126
124
|
pry (0.14.2)
|
@@ -136,7 +134,7 @@ GEM
|
|
136
134
|
rake (13.2.1)
|
137
135
|
rdiscount (2.2.7.3)
|
138
136
|
rdoc (6.3.4.1)
|
139
|
-
regexp_parser (2.9.
|
137
|
+
regexp_parser (2.9.2)
|
140
138
|
release-metrics (1.1.0)
|
141
139
|
csv
|
142
140
|
docopt
|
@@ -145,7 +143,8 @@ GEM
|
|
145
143
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
146
144
|
uber (< 0.2.0)
|
147
145
|
retriable (3.1.2)
|
148
|
-
rexml (3.2.
|
146
|
+
rexml (3.2.8)
|
147
|
+
strscan (>= 3.0.9)
|
149
148
|
ronn (0.7.3)
|
150
149
|
hpricot (>= 0.8.2)
|
151
150
|
mustache (>= 0.7.0)
|
@@ -162,7 +161,7 @@ GEM
|
|
162
161
|
rspec-its (1.3.0)
|
163
162
|
rspec-core (>= 3.0.0)
|
164
163
|
rspec-expectations (>= 3.0.0)
|
165
|
-
rspec-mocks (3.13.
|
164
|
+
rspec-mocks (3.13.1)
|
166
165
|
diff-lcs (>= 1.2.0, < 2.0)
|
167
166
|
rspec-support (~> 3.13.0)
|
168
167
|
rspec-support (3.13.1)
|
@@ -175,13 +174,12 @@ GEM
|
|
175
174
|
rubocop-ast (>= 1.17.0, < 2.0)
|
176
175
|
ruby-progressbar (~> 1.7)
|
177
176
|
unicode-display_width (>= 1.4.0, < 3.0)
|
178
|
-
rubocop-ast (1.31.
|
179
|
-
parser (>= 3.3.0
|
177
|
+
rubocop-ast (1.31.3)
|
178
|
+
parser (>= 3.3.1.0)
|
180
179
|
rubocop-i18n (3.0.0)
|
181
180
|
rubocop (~> 1.0)
|
182
|
-
ruby-prof (1.
|
181
|
+
ruby-prof (1.7.0)
|
183
182
|
ruby-progressbar (1.13.0)
|
184
|
-
ruby2_keywords (0.0.5)
|
185
183
|
scanf (1.0.0)
|
186
184
|
semantic_puppet (1.1.0)
|
187
185
|
signet (0.19.0)
|
@@ -189,24 +187,28 @@ GEM
|
|
189
187
|
faraday (>= 0.17.5, < 3.a)
|
190
188
|
jwt (>= 1.5, < 3.0)
|
191
189
|
multi_json (~> 1.10)
|
190
|
+
strscan (3.1.0)
|
192
191
|
text (1.3.1)
|
193
|
-
thor (1.
|
192
|
+
thor (1.2.2)
|
194
193
|
trailblazer-option (0.1.2)
|
195
194
|
uber (0.1.0)
|
196
195
|
unicode-display_width (2.5.0)
|
196
|
+
uri (0.13.0)
|
197
197
|
vcr (5.1.0)
|
198
|
-
webmock (3.23.
|
198
|
+
webmock (3.23.1)
|
199
199
|
addressable (>= 2.8.0)
|
200
200
|
crack (>= 0.3.2)
|
201
201
|
hashdiff (>= 0.4.0, < 2.0.0)
|
202
|
+
webrick (1.8.1)
|
202
203
|
yard (0.9.36)
|
203
204
|
|
204
205
|
PLATFORMS
|
205
206
|
x86_64-linux
|
206
207
|
|
207
208
|
DEPENDENCIES
|
209
|
+
CFPropertyList (~> 2.2)
|
208
210
|
diff-lcs (~> 1.3)
|
209
|
-
ffi (
|
211
|
+
ffi (>= 1.15.5, < 1.17.0, != 1.16.2, != 1.16.1, != 1.16.0)
|
210
212
|
gettext-setup (~> 0.28)
|
211
213
|
hiera-eyaml
|
212
214
|
hocon (~> 1.0)
|
@@ -232,6 +234,7 @@ DEPENDENCIES
|
|
232
234
|
semantic_puppet (~> 1.0)
|
233
235
|
vcr (~> 5.0)
|
234
236
|
webmock (~> 3.0)
|
237
|
+
webrick (~> 1.7)
|
235
238
|
yard
|
236
239
|
|
237
240
|
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'
|
data/lib/puppet/daemon.rb
CHANGED
@@ -161,6 +161,7 @@ class Puppet::Daemon
|
|
161
161
|
reparse_run = Puppet::Scheduler.create_job(Puppet[:filetimeout]) do
|
162
162
|
Puppet.settings.reparse_config_files
|
163
163
|
agent_run.run_interval = Puppet[:runinterval]
|
164
|
+
agent_run.splay_limit = Puppet[:splaylimit] if Puppet[:splay]
|
164
165
|
if Puppet[:filetimeout] == 0
|
165
166
|
reparse_run.disable
|
166
167
|
else
|
@@ -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
|
@@ -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
|
@@ -23,6 +23,15 @@ module Puppet::Scheduler
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
+
# Recalculates splay.
|
27
|
+
#
|
28
|
+
# @param splay_limit [Integer] the maximum time (in seconds) to delay before an agent's first run.
|
29
|
+
# @return @splay [Integer] a random integer less than or equal to the splay limit that represents the seconds to
|
30
|
+
# delay before next agent run.
|
31
|
+
def splay_limit=(splay_limit)
|
32
|
+
@splay = calculate_splay(splay_limit)
|
33
|
+
end
|
34
|
+
|
26
35
|
private
|
27
36
|
|
28
37
|
def calculate_splay(limit)
|
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" "June 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\.31\.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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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" "June 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\.31\.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.31.0
|
5
5
|
platform: universal-darwin
|
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
|
@@ -182,7 +182,9 @@ dependencies:
|
|
182
182
|
- - "~>"
|
183
183
|
- !ruby/object:Gem::Version
|
184
184
|
version: '2.2'
|
185
|
-
description:
|
185
|
+
description: |
|
186
|
+
Puppet, an automated administrative engine for your Linux, Unix, and Windows systems, performs administrative tasks
|
187
|
+
(such as adding users, installing packages, and updating server configurations) based on a centralized specification.
|
186
188
|
email: info@puppetlabs.com
|
187
189
|
executables:
|
188
190
|
- puppet
|
@@ -1298,7 +1300,6 @@ files:
|
|
1298
1300
|
- man/man8/puppet-ssl.8
|
1299
1301
|
- man/man8/puppet.8
|
1300
1302
|
- tasks/benchmark.rake
|
1301
|
-
- tasks/cfpropertylist.rake
|
1302
1303
|
- tasks/ci.rake
|
1303
1304
|
- tasks/generate_ast_model.rake
|
1304
1305
|
- tasks/generate_cert_fixtures.rake
|
@@ -1316,7 +1317,7 @@ rdoc_options:
|
|
1316
1317
|
- "--title"
|
1317
1318
|
- Puppet - Configuration Management
|
1318
1319
|
- "--main"
|
1319
|
-
- README
|
1320
|
+
- README
|
1320
1321
|
- "--line-numbers"
|
1321
1322
|
require_paths:
|
1322
1323
|
- 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
|