puppet 8.7.0-x86-mingw32 → 8.9.0-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +57 -43
  4. data/ext/project_data.yaml +12 -0
  5. data/ext/windows/service/daemon.rb +9 -2
  6. data/install.rb +3 -74
  7. data/lib/puppet/application/apply.rb +1 -0
  8. data/lib/puppet/application/doc.rb +1 -5
  9. data/lib/puppet/application/filebucket.rb +6 -4
  10. data/lib/puppet/application/lookup.rb +2 -0
  11. data/lib/puppet/application/ssl.rb +4 -4
  12. data/lib/puppet/daemon.rb +0 -1
  13. data/lib/puppet/defaults.rb +67 -71
  14. data/lib/puppet/face/catalog.rb +24 -8
  15. data/lib/puppet/face/help.rb +43 -23
  16. data/lib/puppet/file_serving/http_metadata.rb +2 -0
  17. data/lib/puppet/functions/capitalize.rb +1 -1
  18. data/lib/puppet/functions/find_file.rb +4 -0
  19. data/lib/puppet/functions/hiera.rb +1 -0
  20. data/lib/puppet/functions/index.rb +2 -2
  21. data/lib/puppet/functions/lookup.rb +1 -1
  22. data/lib/puppet/functions/new.rb +1 -1
  23. data/lib/puppet/functions/regsubst.rb +11 -14
  24. data/lib/puppet/functions/unique.rb +3 -2
  25. data/lib/puppet/functions/yaml_data.rb +1 -0
  26. data/lib/puppet/indirector/catalog/compiler.rb +2 -35
  27. data/lib/puppet/interface/action_manager.rb +1 -1
  28. data/lib/puppet/module_tool/tar/gnu.rb +10 -8
  29. data/lib/puppet/node/server_facts.rb +43 -0
  30. data/lib/puppet/parser/functions/generate.rb +2 -1
  31. data/lib/puppet/pops/evaluator/deferred_resolver.rb +41 -6
  32. data/lib/puppet/pops/evaluator/runtime3_resource_support.rb +2 -1
  33. data/lib/puppet/pops/evaluator/runtime3_support.rb +0 -6
  34. data/lib/puppet/provider/file/posix.rb +16 -2
  35. data/lib/puppet/provider/package/gem.rb +1 -0
  36. data/lib/puppet/provider/package/pacman.rb +9 -10
  37. data/lib/puppet/provider/package/pkgutil.rb +6 -5
  38. data/lib/puppet/provider/package/puppet_gem.rb +4 -15
  39. data/lib/puppet/reference/configuration.rb +6 -1
  40. data/lib/puppet/resource/type.rb +15 -1
  41. data/lib/puppet/scheduler/splay_job.rb +0 -9
  42. data/lib/puppet/settings.rb +2 -2
  43. data/lib/puppet/transaction/resource_harness.rb +7 -3
  44. data/lib/puppet/type/exec.rb +3 -4
  45. data/lib/puppet/type/file/checksum.rb +4 -2
  46. data/lib/puppet/type/file/ctime.rb +2 -2
  47. data/lib/puppet/type/file/mtime.rb +2 -2
  48. data/lib/puppet/type/file/selcontext.rb +8 -7
  49. data/lib/puppet/type/file/target.rb +9 -11
  50. data/lib/puppet/type/package.rb +4 -3
  51. data/lib/puppet/type/user.rb +1 -1
  52. data/lib/puppet/util/checksums.rb +1 -0
  53. data/lib/puppet/util/execution.rb +1 -1
  54. data/lib/puppet/util/profiler/aggregate.rb +2 -2
  55. data/lib/puppet/util/profiler/wall_clock.rb +2 -2
  56. data/lib/puppet/util/reference.rb +1 -31
  57. data/lib/puppet/util/run_mode.rb +40 -0
  58. data/lib/puppet/util/selinux.rb +38 -16
  59. data/lib/puppet/util/windows/daemon.rb +15 -32
  60. data/lib/puppet/version.rb +1 -1
  61. data/locales/puppet.pot +141 -145
  62. data/man/man5/puppet.conf.5 +18 -18
  63. data/man/man8/puppet-agent.8 +1 -1
  64. data/man/man8/puppet-apply.8 +2 -1
  65. data/man/man8/puppet-catalog.8 +5 -2
  66. data/man/man8/puppet-config.8 +1 -1
  67. data/man/man8/puppet-describe.8 +1 -1
  68. data/man/man8/puppet-device.8 +1 -1
  69. data/man/man8/puppet-doc.8 +1 -1
  70. data/man/man8/puppet-epp.8 +1 -1
  71. data/man/man8/puppet-facts.8 +1 -1
  72. data/man/man8/puppet-filebucket.8 +10 -1
  73. data/man/man8/puppet-generate.8 +1 -1
  74. data/man/man8/puppet-help.8 +1 -1
  75. data/man/man8/puppet-lookup.8 +1 -1
  76. data/man/man8/puppet-module.8 +1 -1
  77. data/man/man8/puppet-node.8 +1 -1
  78. data/man/man8/puppet-parser.8 +1 -1
  79. data/man/man8/puppet-plugin.8 +1 -1
  80. data/man/man8/puppet-report.8 +1 -1
  81. data/man/man8/puppet-resource.8 +1 -1
  82. data/man/man8/puppet-script.8 +1 -1
  83. data/man/man8/puppet-ssl.8 +3 -3
  84. data/man/man8/puppet.8 +128 -9
  85. metadata +44 -29
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18f1a8e36b7c80fdb241ea801d9343da53ebef16c6fe7817353da545c9cc821a
4
- data.tar.gz: faabd15563fa5af7036a5fe6ef9fcd3de554691095caef1ee365a64360f22318
3
+ metadata.gz: 9ec8e4d48dfe43578dc93d6359a0f8fb5c233f95db831187f8cd1b189c8dac84
4
+ data.tar.gz: 678b353e104f7c713f5b3786369dc8e01f8af4e364040f815bc57fca4caf91fc
5
5
  SHA512:
6
- metadata.gz: 0e42b3ed1b6f2bc6ddcd55500abe618a23dd23318865949db904c7da94473c9324e93aab5afe165453e0475aea973ec0c0c62bc48f6c69b06a1f523b8eb2e6d5
7
- data.tar.gz: 7154c7ad26295373a0bf2b517139986ad256f56baea6847eaa48de4c7e17e32f39a33f73e7ab110a61411411699840ab3af5aa077428a04281787b05681b1883
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.7.0)
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, < 3)
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.6)
23
- public_suffix (>= 2.0.2, < 6.0)
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.1)
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.12.0)
41
- facter (4.7.0)
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.9.1)
45
- faraday-net_http (>= 2.0, < 3.2)
46
- faraday-net_http (3.1.0)
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.0)
65
+ google-apis-core (0.15.1)
63
66
  addressable (~> 2.5, >= 2.5.1)
64
67
  googleauth (~> 1.9)
65
- httpclient (>= 2.8.1, < 3.a)
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.39.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.0)
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.1.1)
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.0)
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.1)
110
+ jwt (2.8.2)
108
111
  base64
109
112
  language_server-protocol (3.17.0.3)
110
113
  locale (2.1.4)
111
- memory_profiler (1.0.1)
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.9)
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.120.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
- parallel (1.24.0)
131
- parser (3.3.2.0)
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 (5.0.5)
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.2.8)
160
- strscan (>= 3.0.9)
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.0)
180
+ rspec-core (3.13.1)
170
181
  rspec-support (~> 3.13.0)
171
- rspec-expectations (3.13.0)
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.64.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 (>= 1.8, < 3.0)
188
- rexml (>= 3.2.5, < 4.0)
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.31.3)
202
+ rubocop-ast (1.32.3)
193
203
  parser (>= 3.3.1.0)
194
- rubocop-capybara (2.20.0)
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.0)
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.30.0)
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.28.3)
211
- rubocop (~> 1.40)
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
- strscan (3.1.0)
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.0)
229
- vcr (6.2.0)
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)
@@ -6,3 +6,15 @@ gem_rdoc_options:
6
6
  - --main
7
7
  - README.md
8
8
  - --line-numbers
9
+ # Array of files to include when building source tarballs
10
+ files:
11
+ - '[A-Z]*'
12
+ - install.rb
13
+ - bin
14
+ - lib
15
+ - conf
16
+ - man
17
+ - examples
18
+ - ext
19
+ - tasks
20
+ - locales
@@ -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).to_i
161
- if runinterval == 0
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
- sitelibdir = File.join(libdir, "site_ruby")
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
- if options[:mode] == :pdf
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
- > **Note**: Enabling and using the backup option, and by extension the
80
- filebucket resource, requires appropriate planning and management to ensure
81
- that sufficient disk space is available for the file backups. Generally, you
82
- can implement this using one of the following two options:
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
- a private and public key pair already exist, they will be used to generate
66
- the CSR. Otherwise a new key pair will be generated.
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