puppet 8.7.0-x86-mingw32 → 8.9.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/Gemfile.lock +57 -43
- data/ext/project_data.yaml +12 -0
- data/ext/windows/service/daemon.rb +9 -2
- data/install.rb +3 -74
- data/lib/puppet/application/apply.rb +1 -0
- data/lib/puppet/application/doc.rb +1 -5
- data/lib/puppet/application/filebucket.rb +6 -4
- data/lib/puppet/application/lookup.rb +2 -0
- data/lib/puppet/application/ssl.rb +4 -4
- data/lib/puppet/daemon.rb +0 -1
- data/lib/puppet/defaults.rb +67 -71
- data/lib/puppet/face/catalog.rb +24 -8
- data/lib/puppet/face/help.rb +43 -23
- data/lib/puppet/file_serving/http_metadata.rb +2 -0
- data/lib/puppet/functions/capitalize.rb +1 -1
- data/lib/puppet/functions/find_file.rb +4 -0
- data/lib/puppet/functions/hiera.rb +1 -0
- data/lib/puppet/functions/index.rb +2 -2
- data/lib/puppet/functions/lookup.rb +1 -1
- data/lib/puppet/functions/new.rb +1 -1
- data/lib/puppet/functions/regsubst.rb +11 -14
- data/lib/puppet/functions/unique.rb +3 -2
- data/lib/puppet/functions/yaml_data.rb +1 -0
- data/lib/puppet/indirector/catalog/compiler.rb +2 -35
- data/lib/puppet/interface/action_manager.rb +1 -1
- data/lib/puppet/module_tool/tar/gnu.rb +10 -8
- data/lib/puppet/node/server_facts.rb +43 -0
- data/lib/puppet/parser/functions/generate.rb +2 -1
- data/lib/puppet/pops/evaluator/deferred_resolver.rb +41 -6
- data/lib/puppet/pops/evaluator/runtime3_resource_support.rb +2 -1
- data/lib/puppet/pops/evaluator/runtime3_support.rb +0 -6
- data/lib/puppet/provider/file/posix.rb +16 -2
- data/lib/puppet/provider/package/gem.rb +1 -0
- data/lib/puppet/provider/package/pacman.rb +9 -10
- data/lib/puppet/provider/package/pkgutil.rb +6 -5
- data/lib/puppet/provider/package/puppet_gem.rb +4 -15
- data/lib/puppet/reference/configuration.rb +6 -1
- data/lib/puppet/resource/type.rb +15 -1
- data/lib/puppet/scheduler/splay_job.rb +0 -9
- data/lib/puppet/settings.rb +2 -2
- data/lib/puppet/transaction/resource_harness.rb +7 -3
- data/lib/puppet/type/exec.rb +3 -4
- data/lib/puppet/type/file/checksum.rb +4 -2
- data/lib/puppet/type/file/ctime.rb +2 -2
- data/lib/puppet/type/file/mtime.rb +2 -2
- data/lib/puppet/type/file/selcontext.rb +8 -7
- data/lib/puppet/type/file/target.rb +9 -11
- data/lib/puppet/type/package.rb +4 -3
- data/lib/puppet/type/user.rb +1 -1
- data/lib/puppet/util/checksums.rb +1 -0
- data/lib/puppet/util/execution.rb +1 -1
- data/lib/puppet/util/profiler/aggregate.rb +2 -2
- data/lib/puppet/util/profiler/wall_clock.rb +2 -2
- data/lib/puppet/util/reference.rb +1 -31
- data/lib/puppet/util/run_mode.rb +40 -0
- data/lib/puppet/util/selinux.rb +38 -16
- data/lib/puppet/util/windows/daemon.rb +15 -32
- data/lib/puppet/version.rb +1 -1
- data/locales/puppet.pot +141 -145
- data/man/man5/puppet.conf.5 +18 -18
- data/man/man8/puppet-agent.8 +1 -1
- data/man/man8/puppet-apply.8 +2 -1
- data/man/man8/puppet-catalog.8 +5 -2
- 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 +10 -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 +3 -3
- data/man/man8/puppet.8 +128 -9
- metadata +44 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ec8e4d48dfe43578dc93d6359a0f8fb5c233f95db831187f8cd1b189c8dac84
|
4
|
+
data.tar.gz: 678b353e104f7c713f5b3786369dc8e01f8af4e364040f815bc57fca4caf91fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0bc518886ea107e7b62f7fcb6d54a6ccb8f2c43cf6cc40e4bc9b6f6f171b2e78d48f7aaaeacf584bb24fe20dd873098ffb54c84bed737c47e4c8e38e2fc4441
|
7
|
+
data.tar.gz: d70c4f14f1a5ceaf4a9f3afaf1b984b555998939b882fdccfba1cb9d016da78ee1d2d99a06ddf2a1e3c0b68c9a1ffe4eebc098bf228ac48fa2f2a0bad81a095f
|
data/Gemfile
CHANGED
@@ -35,6 +35,7 @@ group(:features) do
|
|
35
35
|
# requires native ldap headers/libs
|
36
36
|
# gem 'ruby-ldap', '~> 0.9', require: false, platforms: [:ruby]
|
37
37
|
gem 'puppetserver-ca', '~> 2.0', require: false
|
38
|
+
gem 'syslog', '~> 0.1.1', require: false, platforms: [:ruby]
|
38
39
|
gem 'CFPropertyList', ['>= 3.0.6', '< 4'], require: false
|
39
40
|
end
|
40
41
|
|
@@ -74,6 +75,8 @@ end
|
|
74
75
|
group(:documentation, optional: true) do
|
75
76
|
gem 'gettext-setup', '~> 1.0', require: false, platforms: [:ruby]
|
76
77
|
gem 'ronn', '~> 0.7.3', require: false, platforms: [:ruby]
|
78
|
+
gem 'puppet-strings', require: false, platforms: [:ruby]
|
79
|
+
gem 'pandoc-ruby', require: false, platforms: [:ruby]
|
77
80
|
end
|
78
81
|
|
79
82
|
if File.exist? "#{__FILE__}.local"
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
puppet (8.
|
4
|
+
puppet (8.9.0)
|
5
5
|
concurrent-ruby (~> 1.0)
|
6
6
|
deep_merge (~> 1.0)
|
7
7
|
facter (>= 4.3.0, < 5)
|
8
|
-
fast_gettext (>= 2.1, <
|
8
|
+
fast_gettext (>= 2.1, < 4)
|
9
|
+
getoptlong (~> 0.2.0)
|
9
10
|
locale (~> 2.1)
|
10
11
|
multi_json (~> 1.13)
|
11
12
|
puppet-resource_api (~> 1.5)
|
@@ -19,14 +20,14 @@ GEM
|
|
19
20
|
base64
|
20
21
|
nkf
|
21
22
|
rexml
|
22
|
-
addressable (2.8.
|
23
|
-
public_suffix (>= 2.0.2, <
|
23
|
+
addressable (2.8.7)
|
24
|
+
public_suffix (>= 2.0.2, < 7.0)
|
24
25
|
artifactory (3.0.17)
|
25
26
|
ast (2.4.2)
|
26
27
|
base64 (0.2.0)
|
27
28
|
bigdecimal (3.1.8)
|
28
29
|
coderay (1.1.3)
|
29
|
-
concurrent-ruby (1.3.
|
30
|
+
concurrent-ruby (1.3.4)
|
30
31
|
crack (1.0.0)
|
31
32
|
bigdecimal
|
32
33
|
rexml
|
@@ -37,18 +38,20 @@ GEM
|
|
37
38
|
digest-crc (0.6.5)
|
38
39
|
rake (>= 12.0.0, < 14.0.0)
|
39
40
|
docopt (0.6.1)
|
40
|
-
erubi (1.
|
41
|
-
facter (4.
|
41
|
+
erubi (1.13.0)
|
42
|
+
facter (4.9.0)
|
42
43
|
hocon (~> 1.3)
|
43
44
|
thor (>= 1.0.1, < 1.3)
|
44
|
-
faraday (2.
|
45
|
-
faraday-net_http (>= 2.0, < 3.
|
46
|
-
|
45
|
+
faraday (2.11.0)
|
46
|
+
faraday-net_http (>= 2.0, < 3.4)
|
47
|
+
logger
|
48
|
+
faraday-net_http (3.3.0)
|
47
49
|
net-http
|
48
50
|
fast_gettext (2.4.0)
|
49
51
|
prime
|
50
52
|
ffi (1.16.3)
|
51
53
|
forwardable (1.3.3)
|
54
|
+
getoptlong (0.2.1)
|
52
55
|
gettext (3.4.9)
|
53
56
|
erubi
|
54
57
|
locale (>= 2.0.5)
|
@@ -59,22 +62,22 @@ GEM
|
|
59
62
|
fast_gettext (~> 2.1)
|
60
63
|
gettext (~> 3.4)
|
61
64
|
locale
|
62
|
-
google-apis-core (0.15.
|
65
|
+
google-apis-core (0.15.1)
|
63
66
|
addressable (~> 2.5, >= 2.5.1)
|
64
67
|
googleauth (~> 1.9)
|
65
|
-
httpclient (>= 2.8.
|
68
|
+
httpclient (>= 2.8.3, < 3.a)
|
66
69
|
mini_mime (~> 1.0)
|
70
|
+
mutex_m
|
67
71
|
representable (~> 3.0)
|
68
72
|
retriable (>= 2.0, < 4.a)
|
69
|
-
rexml
|
70
73
|
google-apis-iamcredentials_v1 (0.21.0)
|
71
74
|
google-apis-core (>= 0.15.0, < 2.a)
|
72
|
-
google-apis-storage_v1 (0.
|
75
|
+
google-apis-storage_v1 (0.44.0)
|
73
76
|
google-apis-core (>= 0.15.0, < 2.a)
|
74
|
-
google-cloud-core (1.7.
|
77
|
+
google-cloud-core (1.7.1)
|
75
78
|
google-cloud-env (>= 1.0, < 3.a)
|
76
79
|
google-cloud-errors (~> 1.0)
|
77
|
-
google-cloud-env (2.
|
80
|
+
google-cloud-env (2.2.0)
|
78
81
|
faraday (>= 1.0, < 3.a)
|
79
82
|
google-cloud-errors (1.4.0)
|
80
83
|
google-cloud-storage (1.52.0)
|
@@ -93,7 +96,7 @@ GEM
|
|
93
96
|
multi_json (~> 1.11)
|
94
97
|
os (>= 0.9, < 2.0)
|
95
98
|
signet (>= 0.16, < 2.a)
|
96
|
-
hashdiff (1.1.
|
99
|
+
hashdiff (1.1.1)
|
97
100
|
hiera-eyaml (4.1.0)
|
98
101
|
highline (~> 2.1)
|
99
102
|
optimist (~> 3.1)
|
@@ -104,31 +107,36 @@ GEM
|
|
104
107
|
json (2.7.2)
|
105
108
|
json-schema (2.8.1)
|
106
109
|
addressable (>= 2.4)
|
107
|
-
jwt (2.8.
|
110
|
+
jwt (2.8.2)
|
108
111
|
base64
|
109
112
|
language_server-protocol (3.17.0.3)
|
110
113
|
locale (2.1.4)
|
111
|
-
|
114
|
+
logger (1.6.1)
|
115
|
+
memory_profiler (1.0.2)
|
112
116
|
method_source (1.1.0)
|
113
117
|
mini_mime (1.1.5)
|
114
|
-
minitar (0.
|
118
|
+
minitar (0.12.1)
|
115
119
|
msgpack (1.7.2)
|
116
120
|
multi_json (1.15.0)
|
117
121
|
mustache (1.1.1)
|
122
|
+
mutex_m (0.2.0)
|
118
123
|
net-http (0.4.1)
|
119
124
|
uri
|
120
125
|
nkf (0.2.0)
|
121
126
|
optimist (3.1.0)
|
122
127
|
os (1.1.4)
|
123
|
-
packaging (0.
|
128
|
+
packaging (0.122.0)
|
124
129
|
artifactory (~> 3)
|
125
130
|
csv (>= 3.1.5)
|
126
131
|
google-cloud-storage
|
127
132
|
googleauth
|
128
133
|
rake (>= 12.3)
|
129
134
|
release-metrics
|
130
|
-
|
131
|
-
|
135
|
+
retriable (~> 3.1, >= 3.1.2)
|
136
|
+
rexml
|
137
|
+
pandoc-ruby (2.1.10)
|
138
|
+
parallel (1.26.3)
|
139
|
+
parser (3.3.5.0)
|
132
140
|
ast (~> 2.4.1)
|
133
141
|
racc
|
134
142
|
prime (0.1.2)
|
@@ -137,9 +145,12 @@ GEM
|
|
137
145
|
pry (0.14.2)
|
138
146
|
coderay (~> 1.1)
|
139
147
|
method_source (~> 1.0)
|
140
|
-
public_suffix (
|
148
|
+
public_suffix (6.0.1)
|
141
149
|
puppet-resource_api (1.9.0)
|
142
150
|
hocon (>= 1.0)
|
151
|
+
puppet-strings (4.1.3)
|
152
|
+
rgen (~> 0.9)
|
153
|
+
yard (~> 0.9, < 0.9.37)
|
143
154
|
puppetserver-ca (2.7.0)
|
144
155
|
facter (>= 2.0.1, < 5)
|
145
156
|
racc (1.5.2)
|
@@ -156,8 +167,8 @@ GEM
|
|
156
167
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
157
168
|
uber (< 0.2.0)
|
158
169
|
retriable (3.1.2)
|
159
|
-
rexml (3.
|
160
|
-
|
170
|
+
rexml (3.3.7)
|
171
|
+
rgen (0.9.1)
|
161
172
|
ronn (0.7.3)
|
162
173
|
hpricot (>= 0.8.2)
|
163
174
|
mustache (>= 0.7.0)
|
@@ -166,9 +177,9 @@ GEM
|
|
166
177
|
rspec-core (~> 3.13.0)
|
167
178
|
rspec-expectations (~> 3.13.0)
|
168
179
|
rspec-mocks (~> 3.13.0)
|
169
|
-
rspec-core (3.13.
|
180
|
+
rspec-core (3.13.1)
|
170
181
|
rspec-support (~> 3.13.0)
|
171
|
-
rspec-expectations (3.13.
|
182
|
+
rspec-expectations (3.13.2)
|
172
183
|
diff-lcs (>= 1.2.0, < 2.0)
|
173
184
|
rspec-support (~> 3.13.0)
|
174
185
|
rspec-its (1.3.0)
|
@@ -178,37 +189,36 @@ GEM
|
|
178
189
|
diff-lcs (>= 1.2.0, < 2.0)
|
179
190
|
rspec-support (~> 3.13.0)
|
180
191
|
rspec-support (3.13.1)
|
181
|
-
rubocop (1.
|
192
|
+
rubocop (1.66.1)
|
182
193
|
json (~> 2.3)
|
183
194
|
language_server-protocol (>= 3.17.0)
|
184
195
|
parallel (~> 1.10)
|
185
196
|
parser (>= 3.3.0.2)
|
186
197
|
rainbow (>= 2.2.2, < 4.0)
|
187
|
-
regexp_parser (>=
|
188
|
-
|
189
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
198
|
+
regexp_parser (>= 2.4, < 3.0)
|
199
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
190
200
|
ruby-progressbar (~> 1.7)
|
191
201
|
unicode-display_width (>= 2.4.0, < 3.0)
|
192
|
-
rubocop-ast (1.
|
202
|
+
rubocop-ast (1.32.3)
|
193
203
|
parser (>= 3.3.1.0)
|
194
|
-
rubocop-capybara (2.
|
195
|
-
rubocop (~> 1.41)
|
196
|
-
rubocop-factory_bot (2.25.1)
|
204
|
+
rubocop-capybara (2.21.0)
|
197
205
|
rubocop (~> 1.41)
|
206
|
+
rubocop-factory_bot (2.26.1)
|
207
|
+
rubocop (~> 1.61)
|
198
208
|
rubocop-i18n (3.0.0)
|
199
209
|
rubocop (~> 1.0)
|
200
|
-
rubocop-performance (1.21.
|
210
|
+
rubocop-performance (1.21.1)
|
201
211
|
rubocop (>= 1.48.1, < 2.0)
|
202
212
|
rubocop-ast (>= 1.31.1, < 2.0)
|
203
213
|
rubocop-rake (0.6.0)
|
204
214
|
rubocop (~> 1.0)
|
205
|
-
rubocop-rspec (2.
|
215
|
+
rubocop-rspec (2.31.0)
|
206
216
|
rubocop (~> 1.40)
|
207
217
|
rubocop-capybara (~> 2.17)
|
208
218
|
rubocop-factory_bot (~> 2.22)
|
209
219
|
rubocop-rspec_rails (~> 2.28)
|
210
|
-
rubocop-rspec_rails (2.
|
211
|
-
rubocop (~> 1.
|
220
|
+
rubocop-rspec_rails (2.29.1)
|
221
|
+
rubocop (~> 1.61)
|
212
222
|
ruby-prof (1.7.0)
|
213
223
|
ruby-progressbar (1.13.0)
|
214
224
|
scanf (1.0.0)
|
@@ -219,14 +229,15 @@ GEM
|
|
219
229
|
jwt (>= 1.5, < 3.0)
|
220
230
|
multi_json (~> 1.10)
|
221
231
|
singleton (0.2.0)
|
222
|
-
|
232
|
+
syslog (0.1.2)
|
223
233
|
text (1.3.1)
|
224
234
|
thor (1.2.2)
|
225
235
|
trailblazer-option (0.1.2)
|
226
236
|
uber (0.1.0)
|
227
237
|
unicode-display_width (2.5.0)
|
228
|
-
uri (0.13.
|
229
|
-
vcr (6.
|
238
|
+
uri (0.13.1)
|
239
|
+
vcr (6.3.1)
|
240
|
+
base64
|
230
241
|
webmock (3.23.1)
|
231
242
|
addressable (>= 2.8.0)
|
232
243
|
crack (>= 0.3.2)
|
@@ -250,9 +261,11 @@ DEPENDENCIES
|
|
250
261
|
minitar (~> 0.9)
|
251
262
|
msgpack (~> 1.2)
|
252
263
|
packaging (~> 0.113)
|
264
|
+
pandoc-ruby
|
253
265
|
pry
|
254
266
|
puppet!
|
255
267
|
puppet-resource_api (~> 1.5)
|
268
|
+
puppet-strings
|
256
269
|
puppetserver-ca (~> 2.0)
|
257
270
|
racc (= 1.5.2)
|
258
271
|
rake (~> 13.0)
|
@@ -268,6 +281,7 @@ DEPENDENCIES
|
|
268
281
|
rubocop-rspec (~> 2.0)
|
269
282
|
ruby-prof (>= 0.16.0)
|
270
283
|
semantic_puppet (~> 1.0)
|
284
|
+
syslog (~> 0.1.1)
|
271
285
|
vcr (~> 6.1)
|
272
286
|
webmock (~> 3.0)
|
273
287
|
webrick (~> 1.7)
|
data/ext/project_data.yaml
CHANGED
@@ -155,12 +155,19 @@ class WindowsDaemon < Puppet::Util::Windows::Daemon
|
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
158
|
+
# Parses runinterval.
|
159
|
+
#
|
160
|
+
# @param puppet_path [String] The file path for the Puppet executable.
|
161
|
+
# @return runinterval [Integer] How often to do a Puppet run, in seconds.
|
158
162
|
def parse_runinterval(puppet_path)
|
159
163
|
begin
|
160
|
-
runinterval = %x(#{puppet_path} config --section agent --log_level notice print runinterval).
|
161
|
-
if runinterval ==
|
164
|
+
runinterval = %x(#{puppet_path} config --section agent --log_level notice print runinterval).chomp
|
165
|
+
if runinterval == ''
|
162
166
|
runinterval = 1800
|
163
167
|
log_err("Failed to determine runinterval, defaulting to #{runinterval} seconds")
|
168
|
+
else
|
169
|
+
# Use Kernel#Integer because to_i will return 0 with non-numeric strings.
|
170
|
+
runinterval = Integer(runinterval)
|
164
171
|
end
|
165
172
|
rescue Exception => e
|
166
173
|
log_exception(e)
|
data/install.rb
CHANGED
@@ -36,14 +36,6 @@ require 'tempfile'
|
|
36
36
|
require 'optparse'
|
37
37
|
require 'ostruct'
|
38
38
|
|
39
|
-
begin
|
40
|
-
require 'rdoc/rdoc'
|
41
|
-
$haverdoc = true
|
42
|
-
rescue LoadError
|
43
|
-
puts "Missing rdoc; skipping documentation"
|
44
|
-
$haverdoc = false
|
45
|
-
end
|
46
|
-
|
47
39
|
PREREQS = %w{openssl facter cgi}
|
48
40
|
MIN_FACTER_VERSION = 1.5
|
49
41
|
|
@@ -140,25 +132,9 @@ def prepare_installation
|
|
140
132
|
InstallOptions.check_prereqs = true
|
141
133
|
InstallOptions.batch_files = true
|
142
134
|
|
143
|
-
# Only try to do docs if we're sure they have rdoc
|
144
|
-
if $haverdoc
|
145
|
-
InstallOptions.rdoc = true
|
146
|
-
InstallOptions.ri = true
|
147
|
-
else
|
148
|
-
InstallOptions.rdoc = false
|
149
|
-
InstallOptions.ri = false
|
150
|
-
end
|
151
|
-
|
152
|
-
|
153
135
|
ARGV.options do |opts|
|
154
136
|
opts.banner = "Usage: #{File.basename($0)} [options]"
|
155
137
|
opts.separator ""
|
156
|
-
opts.on('--[no-]rdoc', 'Prevents the creation of RDoc output.', 'Default on.') do |onrdoc|
|
157
|
-
InstallOptions.rdoc = onrdoc
|
158
|
-
end
|
159
|
-
opts.on('--[no-]ri', 'Prevents the creation of RI output.', 'Default off on mswin32.') do |onri|
|
160
|
-
InstallOptions.ri = onri
|
161
|
-
end
|
162
138
|
opts.on('--[no-]configs', 'Prevents the installation of config files', 'Default off.') do |ontest|
|
163
139
|
InstallOptions.configs = ontest
|
164
140
|
end
|
@@ -205,14 +181,8 @@ def prepare_installation
|
|
205
181
|
InstallOptions.batch_files = false
|
206
182
|
end
|
207
183
|
opts.on('--quick', 'Performs a quick installation. Only the', 'installation is done.') do |quick|
|
208
|
-
InstallOptions.rdoc = false
|
209
|
-
InstallOptions.ri = false
|
210
|
-
InstallOptions.configs = true
|
211
|
-
end
|
212
|
-
opts.on('--full', 'Performs a full installation. All', 'optional installation steps are run.') do |full|
|
213
|
-
InstallOptions.rdoc = true
|
214
|
-
InstallOptions.ri = true
|
215
184
|
InstallOptions.configs = true
|
185
|
+
warn "--quick is deprecated. Use --configs"
|
216
186
|
end
|
217
187
|
opts.separator("")
|
218
188
|
opts.on_tail('--help', "Shows this help text.") do
|
@@ -223,9 +193,6 @@ def prepare_installation
|
|
223
193
|
opts.parse!
|
224
194
|
end
|
225
195
|
|
226
|
-
version = [RbConfig::CONFIG["MAJOR"], RbConfig::CONFIG["MINOR"]].join(".")
|
227
|
-
libdir = File.join(RbConfig::CONFIG["libdir"], "ruby", version)
|
228
|
-
|
229
196
|
# Mac OS X 10.5 and higher declare bindir
|
230
197
|
# /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin
|
231
198
|
# which is not generally where people expect executables to be installed
|
@@ -312,7 +279,8 @@ def prepare_installation
|
|
312
279
|
if sitelibdir.nil?
|
313
280
|
sitelibdir = $LOAD_PATH.find { |x| x =~ /site_ruby/ }
|
314
281
|
if sitelibdir.nil?
|
315
|
-
|
282
|
+
version = [RbConfig::CONFIG["MAJOR"], RbConfig::CONFIG["MINOR"]].join(".")
|
283
|
+
sitelibdir = File.join(RbConfig::CONFIG["libdir"], "ruby", version, "site_ruby")
|
316
284
|
elsif sitelibdir !~ Regexp.quote(version)
|
317
285
|
sitelibdir = File.join(sitelibdir, version)
|
318
286
|
end
|
@@ -328,10 +296,6 @@ def prepare_installation
|
|
328
296
|
# This is the new way forward
|
329
297
|
if not InstallOptions.destdir.nil?
|
330
298
|
destdir = InstallOptions.destdir
|
331
|
-
# To be deprecated once people move over to using --destdir option
|
332
|
-
elsif not ENV['DESTDIR'].nil?
|
333
|
-
destdir = ENV['DESTDIR']
|
334
|
-
warn "DESTDIR is deprecated. Use --destdir instead."
|
335
299
|
else
|
336
300
|
destdir = ''
|
337
301
|
end
|
@@ -362,7 +326,6 @@ def prepare_installation
|
|
362
326
|
InstallOptions.codedir = codedir
|
363
327
|
InstallOptions.config_dir = configdir
|
364
328
|
InstallOptions.bin_dir = bindir
|
365
|
-
InstallOptions.lib_dir = libdir
|
366
329
|
InstallOptions.man_dir = mandir
|
367
330
|
InstallOptions.var_dir = vardir
|
368
331
|
InstallOptions.public_dir = publicdir
|
@@ -381,36 +344,6 @@ def join(basedir, dir)
|
|
381
344
|
"#{basedir}#{dir}"
|
382
345
|
end
|
383
346
|
|
384
|
-
##
|
385
|
-
# Build the rdoc documentation. Also, try to build the RI documentation.
|
386
|
-
#
|
387
|
-
def build_rdoc(files)
|
388
|
-
return unless $haverdoc
|
389
|
-
begin
|
390
|
-
r = RDoc::RDoc.new
|
391
|
-
r.document(["--main", "README", "--title", "Puppet -- Site Configuration Management", "--line-numbers"] + files)
|
392
|
-
rescue RDoc::RDocError => e
|
393
|
-
$stderr.puts e.message
|
394
|
-
rescue Exception => e
|
395
|
-
$stderr.puts "Couldn't build RDoc documentation\n#{e.message}"
|
396
|
-
end
|
397
|
-
end
|
398
|
-
|
399
|
-
def build_ri(files)
|
400
|
-
return unless $haverdoc
|
401
|
-
return if $osname == "windows"
|
402
|
-
begin
|
403
|
-
ri = RDoc::RDoc.new
|
404
|
-
#ri.document(["--ri-site", "--merge"] + files)
|
405
|
-
ri.document(["--ri-site"] + files)
|
406
|
-
rescue RDoc::RDocError => e
|
407
|
-
$stderr.puts e.message
|
408
|
-
rescue Exception => e
|
409
|
-
$stderr.puts "Couldn't build Ri documentation\n#{e.message}"
|
410
|
-
$stderr.puts "Continuing with install..."
|
411
|
-
end
|
412
|
-
end
|
413
|
-
|
414
347
|
##
|
415
348
|
# Install file(s) from ./bin to RbConfig::CONFIG['bindir']. Patch it on the way
|
416
349
|
# to insert a #! line; on a Unix install, the command is named as expected
|
@@ -476,8 +409,6 @@ FileUtils.cd File.dirname(__FILE__) do
|
|
476
409
|
# Set these values to what you want installed.
|
477
410
|
configs = glob(%w{conf/puppet.conf conf/hiera.yaml})
|
478
411
|
bins = glob(%w{bin/*})
|
479
|
-
#rdoc = glob(%w{bin/* lib/**/*.rb README* }).reject { |e| e=~ /\.(bat|cmd)$/ }
|
480
|
-
#ri = glob(%w{bin/*.rb lib/**/*.rb}).reject { |e| e=~ /\.(bat|cmd)$/ }
|
481
412
|
man = glob(%w{man/man[0-9]/*})
|
482
413
|
libs = glob(%w{lib/**/*})
|
483
414
|
locales = glob(%w{locales/**/*})
|
@@ -488,8 +419,6 @@ FileUtils.cd File.dirname(__FILE__) do
|
|
488
419
|
windows_bins = glob(%w{ext/windows/*bat})
|
489
420
|
end
|
490
421
|
|
491
|
-
#build_rdoc(rdoc) if InstallOptions.rdoc
|
492
|
-
#build_ri(ri) if InstallOptions.ri
|
493
422
|
do_configs(configs, InstallOptions.config_dir) if InstallOptions.configs
|
494
423
|
do_bins(bins, InstallOptions.bin_dir)
|
495
424
|
do_bins(windows_bins, InstallOptions.bin_dir, 'ext/windows/') if $osname == "windows" && InstallOptions.batch_files
|
@@ -153,6 +153,7 @@ class Puppet::Application::Apply < Puppet::Application
|
|
153
153
|
|
154
154
|
EXAMPLE
|
155
155
|
-------
|
156
|
+
$ puppet apply -e 'notify { "hello world": }'
|
156
157
|
$ puppet apply -l /tmp/manifest.log manifest.pp
|
157
158
|
$ puppet apply --modulepath=/root/dev/modules -e "include ntpd::server"
|
158
159
|
$ puppet apply --catalog catalog.json
|
@@ -173,11 +173,7 @@ class Puppet::Application::Doc < Puppet::Application
|
|
173
173
|
|
174
174
|
text += Puppet::Util::Reference.footer unless with_contents # We've only got one reference
|
175
175
|
|
176
|
-
|
177
|
-
Puppet::Util::Reference.pdf(text)
|
178
|
-
else
|
179
|
-
puts text
|
180
|
-
end
|
176
|
+
puts text
|
181
177
|
|
182
178
|
exit exit_code
|
183
179
|
end
|
@@ -76,10 +76,11 @@ class Puppet::Application::Filebucket < Puppet::Application
|
|
76
76
|
use your local file bucket by specifying '--local', or by specifying
|
77
77
|
'--bucket' with a local path.
|
78
78
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
79
|
+
**Important**: When you enable and use the backup option, and by extension
|
80
|
+
the filebucket resource, you must ensure that sufficient disk space is
|
81
|
+
available for the file backups. Generally, you can provide the disk space
|
82
|
+
by using one of the following two options:
|
83
|
+
|
83
84
|
- Use a `find` command and `crontab` entry to retain only the last X days
|
84
85
|
of file backups. For example:
|
85
86
|
|
@@ -187,6 +188,7 @@ class Puppet::Application::Filebucket < Puppet::Application
|
|
187
188
|
|
188
189
|
$ puppet filebucket -l -t "2015-05-11 09:30:00" list
|
189
190
|
d43a6ecaa892a1962398ac9170ea9bf2 2015-05-11 09:27:56 /tmp/TestFile
|
191
|
+
|
190
192
|
## Manage files in a specific local filebucket
|
191
193
|
$ puppet filebucket -b /tmp/TestBucket backup /tmp/TestFile2
|
192
194
|
/tmp/TestFile2: d41d8cd98f00b204e9800998ecf8427e
|
@@ -3,6 +3,7 @@
|
|
3
3
|
require_relative '../../puppet/application'
|
4
4
|
require_relative '../../puppet/pops'
|
5
5
|
require_relative '../../puppet/node'
|
6
|
+
require_relative '../../puppet/node/server_facts'
|
6
7
|
require_relative '../../puppet/parser/compiler'
|
7
8
|
|
8
9
|
class Puppet::Application::Lookup < Puppet::Application
|
@@ -403,6 +404,7 @@ class Puppet::Application::Lookup < Puppet::Application
|
|
403
404
|
end
|
404
405
|
end
|
405
406
|
node.environment = Puppet[:environment] if Puppet.settings.set_by_cli?(:environment)
|
407
|
+
node.add_server_facts(Puppet::Node::ServerFacts.load)
|
406
408
|
Puppet[:code] = 'undef' unless options[:compile]
|
407
409
|
compiler = Puppet::Parser::Compiler.new(node)
|
408
410
|
if options[:node]
|
@@ -57,13 +57,13 @@ class Puppet::Application::Ssl < Puppet::Application
|
|
57
57
|
* submit_request:
|
58
58
|
Generate a certificate signing request (CSR) and submit it to the CA. If
|
59
59
|
a private and public key pair already exist, they will be used to generate
|
60
|
-
the CSR. Otherwise a new key pair will be generated. If a CSR has already
|
60
|
+
the CSR. Otherwise, a new key pair will be generated. If a CSR has already
|
61
61
|
been submitted with the given `certname`, then the operation will fail.
|
62
62
|
|
63
63
|
* generate_request:
|
64
|
-
Generate a certificate signing request (CSR). If
|
65
|
-
|
66
|
-
|
64
|
+
Generate a certificate signing request (CSR). If a private and public key
|
65
|
+
pair exist, they will be used to generate the CSR. Otherwise a new key
|
66
|
+
pair will be generated.
|
67
67
|
|
68
68
|
* download_cert:
|
69
69
|
Download a certificate for this host. If the current private key matches
|
data/lib/puppet/daemon.rb
CHANGED
@@ -165,7 +165,6 @@ class Puppet::Daemon
|
|
165
165
|
reparse_run = Puppet::Scheduler.create_job(Puppet[:filetimeout]) do
|
166
166
|
Puppet.settings.reparse_config_files
|
167
167
|
agent_run.run_interval = Puppet[:runinterval]
|
168
|
-
agent_run.splay_limit = Puppet[:splaylimit] if Puppet[:splay]
|
169
168
|
if Puppet[:filetimeout] == 0
|
170
169
|
reparse_run.disable
|
171
170
|
else
|