mixlib-install 3.11.21 → 3.11.24
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.
- checksums.yaml +4 -4
- data/Gemfile +3 -9
- data/Rakefile +1 -1
- data/lib/mixlib/install/backend/package_router.rb +3 -1
- data/lib/mixlib/install/dist.rb +29 -0
- data/lib/mixlib/install/generator/base.rb +9 -1
- data/lib/mixlib/install/generator/bourne/scripts/helpers.sh.erb +9 -9
- data/lib/mixlib/install/generator/bourne/scripts/{script_cli_parameters.sh → script_cli_parameters.sh.erb} +1 -1
- data/lib/mixlib/install/generator/powershell/scripts/get_project_metadata.ps1.erb +2 -2
- data/lib/mixlib/install/generator/powershell/scripts/helpers.ps1.erb +6 -5
- data/lib/mixlib/install/generator/powershell/scripts/{install_project.ps1 → install_project.ps1.erb} +3 -3
- data/lib/mixlib/install/options.rb +1 -0
- data/lib/mixlib/install/product.rb +3 -237
- data/lib/mixlib/install/product_matrix.rb +236 -0
- data/lib/mixlib/install/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88153f6c3874e4dad6b3442bf58e6993bdbc6e7a7294122059a9108afc640b64
|
|
4
|
+
data.tar.gz: c76a01c96566172ce05459abc5e3d506aa58210457b4b799979c5067db1f0ca2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 867e2d785267ec1c30d7251c05b2617b85c08da5351014c0604817d3612f43130dcd8a1c06d92e5e6431f165a87dcadea2ec38e2702c33a418895151182353c0
|
|
7
|
+
data.tar.gz: 792973fe4e00a2990b5b562cfa88e48aa26d7f5d6bf73483534aeb3e4cab2f1a46c259eb711e7905933681f0af4e518ef478219f7238b6149b96e7b30301ad1a
|
data/Gemfile
CHANGED
|
@@ -3,9 +3,9 @@ source "https://rubygems.org"
|
|
|
3
3
|
gemspec
|
|
4
4
|
|
|
5
5
|
group :docs do
|
|
6
|
-
gem "yard"
|
|
7
|
-
gem "redcarpet"
|
|
8
6
|
gem "github-markup"
|
|
7
|
+
gem "redcarpet"
|
|
8
|
+
gem "yard"
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
group :test do
|
|
@@ -24,15 +24,9 @@ if RUBY_VERSION =~ /^2/
|
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
group :
|
|
27
|
+
group :debug do
|
|
28
28
|
gem "pry"
|
|
29
29
|
gem "pry-byebug"
|
|
30
30
|
gem "pry-stack_explorer"
|
|
31
31
|
gem "rb-readline"
|
|
32
32
|
end
|
|
33
|
-
|
|
34
|
-
instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"]
|
|
35
|
-
|
|
36
|
-
# If you want to load debugging tools into the bundle exec sandbox,
|
|
37
|
-
# add these additional dependencies into Gemfile.local
|
|
38
|
-
eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local")
|
data/Rakefile
CHANGED
|
@@ -23,7 +23,7 @@ end
|
|
|
23
23
|
|
|
24
24
|
desc "Render product matrix documentation"
|
|
25
25
|
task "matrix" do
|
|
26
|
-
require "mixlib/install/
|
|
26
|
+
require "mixlib/install/product_matrix"
|
|
27
27
|
|
|
28
28
|
doc_file = File.join(File.dirname(__FILE__), "PRODUCT_MATRIX.md")
|
|
29
29
|
puts "Updating doc file at: #{doc_file}"
|
|
@@ -20,7 +20,9 @@ require "json"
|
|
|
20
20
|
require "mixlib/install/artifact_info"
|
|
21
21
|
require "mixlib/install/backend/base"
|
|
22
22
|
require "mixlib/install/product"
|
|
23
|
+
require "mixlib/install/product_matrix"
|
|
23
24
|
require "mixlib/install/util"
|
|
25
|
+
require "mixlib/install/dist"
|
|
24
26
|
require "mixlib/versioning"
|
|
25
27
|
require "net/http"
|
|
26
28
|
|
|
@@ -28,7 +30,7 @@ module Mixlib
|
|
|
28
30
|
class Install
|
|
29
31
|
class Backend
|
|
30
32
|
class PackageRouter < Base
|
|
31
|
-
ENDPOINT =
|
|
33
|
+
ENDPOINT = Mixlib::Install::Dist::PRODUCT_ENDPOINT.freeze
|
|
32
34
|
|
|
33
35
|
COMPAT_DOWNLOAD_URL_ENDPOINT = "http://packages.chef.io".freeze
|
|
34
36
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module Mixlib
|
|
2
|
+
class Install
|
|
3
|
+
class Dist
|
|
4
|
+
# This class is not fully implemented, depending it is not recommended!
|
|
5
|
+
# Default project name
|
|
6
|
+
PROJECT_NAME = "Chef".freeze
|
|
7
|
+
# Binary repository base endpoint
|
|
8
|
+
PRODUCT_ENDPOINT = "https://packages.chef.io".freeze
|
|
9
|
+
# Omnitruck endpoint
|
|
10
|
+
OMNITRUCK_ENDPOINT = "https://omnitruck.chef.io".freeze
|
|
11
|
+
# Default product name
|
|
12
|
+
DEFAULT_PRODUCT = "chef".freeze
|
|
13
|
+
# Default download page URL
|
|
14
|
+
DOWNLOADS_PAGE = "https://downloads.chef.io".freeze
|
|
15
|
+
# Default github org
|
|
16
|
+
GITHUB_ORG = "chef".freeze
|
|
17
|
+
# Bug report URL
|
|
18
|
+
BUG_URL = "https://github.com/chef/omnitruck/issues/new".freeze
|
|
19
|
+
# Support ticket URL
|
|
20
|
+
SUPPORT_URL = "https://www.chef.io/support/tickets".freeze
|
|
21
|
+
# Resources URL
|
|
22
|
+
RESOURCES_URL = "https://www.chef.io/support".freeze
|
|
23
|
+
# MacOS volume name
|
|
24
|
+
MACOS_VOLUME = "chef_software".freeze
|
|
25
|
+
# Windows install directory name
|
|
26
|
+
WINDOWS_INSTALL_DIR = "opscode".freeze
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
require "erb"
|
|
19
19
|
require "ostruct"
|
|
20
20
|
require "mixlib/install/util"
|
|
21
|
+
require "mixlib/install/dist"
|
|
21
22
|
|
|
22
23
|
module Mixlib
|
|
23
24
|
class Install
|
|
@@ -47,7 +48,14 @@ module Mixlib
|
|
|
47
48
|
# and returnt the contents of the script
|
|
48
49
|
if File.exist? "#{script_path}.erb"
|
|
49
50
|
# Default values to use incase they are not set in the context
|
|
50
|
-
context[:
|
|
51
|
+
context[:project_name] ||= Mixlib::Install::Dist::PROJECT_NAME.freeze
|
|
52
|
+
context[:base_url] ||= Mixlib::Install::Dist::OMNITRUCK_ENDPOINT.freeze
|
|
53
|
+
context[:default_product] ||= Mixlib::Install::Dist::DEFAULT_PRODUCT.freeze
|
|
54
|
+
context[:bug_url] ||= Mixlib::Install::Dist::BUG_URL.freeze
|
|
55
|
+
context[:support_url] ||= Mixlib::Install::Dist::SUPPORT_URL.freeze
|
|
56
|
+
context[:resources_url] ||= Mixlib::Install::Dist::RESOURCES_URL.freeze
|
|
57
|
+
context[:macos_dir] ||= Mixlib::Install::Dist::MACOS_VOLUME.freeze
|
|
58
|
+
context[:windows_dir] ||= Mixlib::Install::Dist::WINDOWS_INSTALL_DIR.freeze
|
|
51
59
|
context[:user_agent_string] = Util.user_agent_string(context[:user_agent_headers])
|
|
52
60
|
|
|
53
61
|
context_object = OpenStruct.new(context).instance_eval { binding }
|
|
@@ -42,9 +42,9 @@ exists() {
|
|
|
42
42
|
report_bug() {
|
|
43
43
|
echo "Version: $version"
|
|
44
44
|
echo ""
|
|
45
|
-
echo "Please file a Bug Report at
|
|
46
|
-
echo "Alternatively, feel free to open a Support Ticket at
|
|
47
|
-
echo "More
|
|
45
|
+
echo "Please file a Bug Report at <%= bug_url %>"
|
|
46
|
+
echo "Alternatively, feel free to open a Support Ticket at <%= support_url %>"
|
|
47
|
+
echo "More <%= project_name %> support resources can be found at <%= resources_url %>"
|
|
48
48
|
echo ""
|
|
49
49
|
echo "Please include as many details about the problem as possible i.e., how to reproduce"
|
|
50
50
|
echo "the problem (if possible), type of the Operating System and its version, etc.,"
|
|
@@ -78,11 +78,11 @@ http_404_error() {
|
|
|
78
78
|
echo " - We do not support $platform"
|
|
79
79
|
echo " - We do not have an artifact for $version"
|
|
80
80
|
echo ""
|
|
81
|
-
echo "This is often the latter case due to running a prerelease or RC version of
|
|
81
|
+
echo "This is often the latter case due to running a prerelease or RC version of <%= project_name %>"
|
|
82
82
|
echo "or a gem version which was only pushed to rubygems and not omnitruck."
|
|
83
83
|
echo ""
|
|
84
84
|
echo "You may be able to set your knife[:bootstrap_version] to the most recent stable"
|
|
85
|
-
echo "release of
|
|
85
|
+
echo "release of <%= project_name %> to fix this problem (or the most recent stable major version number)."
|
|
86
86
|
echo ""
|
|
87
87
|
echo "In order to test the version parameter, adventurous users may take the Metadata URL"
|
|
88
88
|
echo "below and modify the '&v=<number>' parameter until you successfully get a URL that"
|
|
@@ -295,10 +295,10 @@ install_file() {
|
|
|
295
295
|
;;
|
|
296
296
|
"dmg")
|
|
297
297
|
echo "installing dmg file..."
|
|
298
|
-
hdiutil detach "/Volumes
|
|
299
|
-
hdiutil attach "$2" -mountpoint "/Volumes
|
|
300
|
-
cd / && /usr/sbin/installer -pkg `find "/Volumes
|
|
301
|
-
hdiutil detach "/Volumes
|
|
298
|
+
hdiutil detach "/Volumes/<%= macos_dir %>" >/dev/null 2>&1 || true
|
|
299
|
+
hdiutil attach "$2" -mountpoint "/Volumes/<%= macos_dir %>"
|
|
300
|
+
cd / && /usr/sbin/installer -pkg `find "/Volumes/<%= macos_dir %>" -name \*.pkg` -target /
|
|
301
|
+
hdiutil detach "/Volumes/<%= macos_dir %>"
|
|
302
302
|
;;
|
|
303
303
|
"sh" )
|
|
304
304
|
echo "installing with sh..."
|
|
@@ -5,11 +5,11 @@ function Get-ProjectMetadata {
|
|
|
5
5
|
.DESCRIPTION
|
|
6
6
|
Get metadata for project
|
|
7
7
|
.EXAMPLE
|
|
8
|
-
iex (new-object net.webclient).downloadstring('
|
|
8
|
+
iex (new-object net.webclient).downloadstring('<%= base_url %>/install.ps1'); Get-ProjectMetadata -project chef -channel stable
|
|
9
9
|
|
|
10
10
|
Gets the download url and SHA256 checksum for the latest stable release of Chef.
|
|
11
11
|
.EXAMPLE
|
|
12
|
-
iex (irm '
|
|
12
|
+
iex (irm '<%= base_url %>/install.ps1'); Get-ProjectMetadata -project chefdk -channel stable -version 0.8.0
|
|
13
13
|
|
|
14
14
|
Gets the download url and SHA256 checksum for ChefDK 0.8.0.
|
|
15
15
|
#>
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
function Get-PlatformVersion {
|
|
5
5
|
switch -regex ((Get-Win32OS).version) {
|
|
6
|
-
'10\.0\.\d+'
|
|
7
|
-
'
|
|
8
|
-
'6\.
|
|
9
|
-
'6\.
|
|
10
|
-
'6\.
|
|
6
|
+
'10\.0\.\d+' {$platform_version = '2016'}
|
|
7
|
+
'10\.0\.17\d+' {$platform_version = '2019'}
|
|
8
|
+
'6\.3\.\d+' {$platform_version = '2012r2'}
|
|
9
|
+
'6\.2\.\d+' {$platform_version = '2012'}
|
|
10
|
+
'6\.1\.\d+' {$platform_version = '2008r2'}
|
|
11
|
+
'6\.0\.\d+' {$platform_version = '2008'}
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
if(Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Server\ServerLevels') {
|
data/lib/mixlib/install/generator/powershell/scripts/{install_project.ps1 → install_project.ps1.erb}
RENAMED
|
@@ -17,7 +17,7 @@ function Install-Project {
|
|
|
17
17
|
param (
|
|
18
18
|
# Project to install
|
|
19
19
|
[string]
|
|
20
|
-
$project = '
|
|
20
|
+
$project = '<%= default_product %>',
|
|
21
21
|
# Release channel to install from
|
|
22
22
|
[validateset('current', 'stable', 'unstable')]
|
|
23
23
|
[string]
|
|
@@ -59,7 +59,7 @@ function Install-Project {
|
|
|
59
59
|
$install_strategy
|
|
60
60
|
)
|
|
61
61
|
|
|
62
|
-
if ((Test-Path "$env:systemdrive
|
|
62
|
+
if ((Test-Path "$env:systemdrive\<%= windows_dir %>\$project\embedded") -and ($install_strategy -eq 'once')) {
|
|
63
63
|
Write-Host "$project installation detected"
|
|
64
64
|
Write-Host "install_strategy set to 'once'"
|
|
65
65
|
Write-Host "Nothing to install"
|
|
@@ -181,7 +181,7 @@ Function Install-ChefMsi($msi, $addlocal) {
|
|
|
181
181
|
Function Install-ChefAppx($appx, $project) {
|
|
182
182
|
Add-AppxPackage -Path $appx -ErrorAction Stop
|
|
183
183
|
$package = (Get-AppxPackage -Name $project).InstallLocation
|
|
184
|
-
$installRoot = "$env:SystemDrive
|
|
184
|
+
$installRoot = "$env:SystemDrive/<%= windows_dir %>"
|
|
185
185
|
$omnibusRoot = Join-Path $installRoot $project
|
|
186
186
|
|
|
187
187
|
if(!(Test-Path $installRoot)) {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
#
|
|
17
17
|
|
|
18
18
|
require "mixlib/versioning"
|
|
19
|
+
require "mixlib/install/dist"
|
|
19
20
|
|
|
20
21
|
module Mixlib
|
|
21
22
|
class Install
|
|
@@ -82,9 +83,9 @@ module Mixlib
|
|
|
82
83
|
when :omnibus_project
|
|
83
84
|
package_name
|
|
84
85
|
when :downloads_product_page_url
|
|
85
|
-
"
|
|
86
|
+
"#{Mixlib::Install::Dist::DOWNLOADS_PAGE}/#{product_key}"
|
|
86
87
|
when :github_repo
|
|
87
|
-
"
|
|
88
|
+
"#{Mixlib::Install::Dist::GITHUB_ORG}/#{product_key}"
|
|
88
89
|
else
|
|
89
90
|
nil
|
|
90
91
|
end
|
|
@@ -188,238 +189,3 @@ module Mixlib
|
|
|
188
189
|
end
|
|
189
190
|
end
|
|
190
191
|
end
|
|
191
|
-
|
|
192
|
-
#
|
|
193
|
-
# If you are making a change to PRODUCT_MATRIX, please make sure
|
|
194
|
-
# you run `bundle exec rake matrix` at the home of this repository
|
|
195
|
-
# to update PRODUCT_MATRIX.md.
|
|
196
|
-
#
|
|
197
|
-
PRODUCT_MATRIX = Mixlib::Install::ProductMatrix.new do
|
|
198
|
-
# Products in alphabetical order
|
|
199
|
-
|
|
200
|
-
product "analytics" do
|
|
201
|
-
product_name "Analytics Platform"
|
|
202
|
-
package_name "opscode-analytics"
|
|
203
|
-
ctl_command "opscode-analytics-ctl"
|
|
204
|
-
config_file "/etc/opscode-analytics/opscode-analytics.rb"
|
|
205
|
-
downloads_product_page_url :not_available
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
product "angry-omnibus-toolchain" do
|
|
209
|
-
product_name "Angry Omnibus Toolchain"
|
|
210
|
-
package_name "angry-omnibus-toolchain"
|
|
211
|
-
github_repo "chef/omnibus-toolchain"
|
|
212
|
-
downloads_product_page_url :not_available
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
product "angrychef" do
|
|
216
|
-
product_name "Angry Chef Client"
|
|
217
|
-
package_name "angrychef"
|
|
218
|
-
github_repo "chef/chef"
|
|
219
|
-
downloads_product_page_url :not_available
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
product "automate" do
|
|
223
|
-
product_name "Chef Automate"
|
|
224
|
-
# Delivery backward compatibility
|
|
225
|
-
package_name do |v|
|
|
226
|
-
v < version_for("0.7.0") ? "delivery" : "automate"
|
|
227
|
-
end
|
|
228
|
-
ctl_command do |v|
|
|
229
|
-
v < version_for("0.7.0") ? "delivery-ctl" : "automate-ctl"
|
|
230
|
-
end
|
|
231
|
-
config_file "/etc/delivery/delivery.rb"
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
product "chef" do
|
|
235
|
-
product_name "Chef Infra Client"
|
|
236
|
-
package_name "chef"
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
product "chef-backend" do
|
|
240
|
-
product_name "Chef Backend"
|
|
241
|
-
package_name "chef-backend"
|
|
242
|
-
ctl_command "chef-backend-ctl"
|
|
243
|
-
config_file "/etc/chef-backend/chef-backend.rb"
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
product "chef-server" do
|
|
247
|
-
product_name "Chef Infra Server"
|
|
248
|
-
package_name do |v|
|
|
249
|
-
if (v < version_for("12.0.0")) && (v > version_for("11.0.0"))
|
|
250
|
-
"chef-server"
|
|
251
|
-
else
|
|
252
|
-
"chef-server-core"
|
|
253
|
-
end
|
|
254
|
-
end
|
|
255
|
-
omnibus_project "chef-server"
|
|
256
|
-
ctl_command "chef-server-ctl"
|
|
257
|
-
config_file do |v|
|
|
258
|
-
if (v < version_for("12.0.0")) && (v > version_for("11.0.0"))
|
|
259
|
-
"/etc/chef-server/chef-server.rb"
|
|
260
|
-
else
|
|
261
|
-
"/etc/opscode/chef-server.rb"
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
install_path do |v|
|
|
265
|
-
if (v < version_for("12.0.0")) && (v > version_for("11.0.0"))
|
|
266
|
-
"/opt/chef-server"
|
|
267
|
-
else
|
|
268
|
-
"/opt/opscode"
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
product "chef-server-ha-provisioning" do
|
|
274
|
-
product_name "Chef Infra Server HA Provisioning for AWS"
|
|
275
|
-
package_name "chef-server-ha-provisioning"
|
|
276
|
-
downloads_product_page_url :not_available
|
|
277
|
-
end
|
|
278
|
-
|
|
279
|
-
product "chef-workstation" do
|
|
280
|
-
product_name "Chef Workstation"
|
|
281
|
-
package_name "chef-workstation"
|
|
282
|
-
github_repo "chef/chef-workstation"
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
product "chefdk" do
|
|
286
|
-
product_name "Chef Development Kit"
|
|
287
|
-
package_name "chefdk"
|
|
288
|
-
github_repo "chef/chef-dk"
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
product "compliance" do
|
|
292
|
-
product_name "Chef Compliance"
|
|
293
|
-
package_name "chef-compliance"
|
|
294
|
-
ctl_command "chef-compliance-ctl"
|
|
295
|
-
config_file "/etc/chef-compliance/chef-compliance.rb"
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
product "delivery" do
|
|
299
|
-
product_name "Delivery"
|
|
300
|
-
# Chef Automate forward compatibility
|
|
301
|
-
package_name do |v|
|
|
302
|
-
v < version_for("0.7.0") ? "delivery" : "automate"
|
|
303
|
-
end
|
|
304
|
-
ctl_command do |v|
|
|
305
|
-
v < version_for("0.7.0") ? "delivery-ctl" : "automate-ctl"
|
|
306
|
-
end
|
|
307
|
-
config_file "/etc/delivery/delivery.rb"
|
|
308
|
-
github_repo "chef/automate"
|
|
309
|
-
downloads_product_page_url "https://downloads.chef.io/automate"
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
product "ha" do
|
|
313
|
-
product_name "Chef Infra Server High Availability addon"
|
|
314
|
-
package_name "chef-ha"
|
|
315
|
-
config_file "/etc/opscode/chef-server.rb"
|
|
316
|
-
github_repo "chef/chef-ha"
|
|
317
|
-
downloads_product_page_url :not_available
|
|
318
|
-
end
|
|
319
|
-
|
|
320
|
-
product "harmony" do
|
|
321
|
-
product_name "Harmony - Omnibus Integration Internal Test Project"
|
|
322
|
-
package_name "harmony"
|
|
323
|
-
github_repo "chef/omnibus-harmony"
|
|
324
|
-
downloads_product_page_url :not_available
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
product "inspec" do
|
|
328
|
-
product_name "Chef InSpec"
|
|
329
|
-
package_name "inspec"
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
product "mac-bootstrapper" do
|
|
333
|
-
product_name "Habitat Mac Bootstrapper"
|
|
334
|
-
package_name "mac-bootstrapper"
|
|
335
|
-
downloads_product_page_url :not_available
|
|
336
|
-
end
|
|
337
|
-
|
|
338
|
-
product "manage" do
|
|
339
|
-
product_name "Management Console"
|
|
340
|
-
package_name do |v|
|
|
341
|
-
v < version_for("2.0.0") ? "opscode-manage" : "chef-manage"
|
|
342
|
-
end
|
|
343
|
-
ctl_command do |v|
|
|
344
|
-
v < version_for("2.0.0") ? "opscode-manage-ctl" : "chef-manage-ctl"
|
|
345
|
-
end
|
|
346
|
-
config_file do |v|
|
|
347
|
-
if v < version_for("2.0.0")
|
|
348
|
-
"/etc/opscode-manage/manage.rb"
|
|
349
|
-
else
|
|
350
|
-
"/etc/chef-manage/manage.rb"
|
|
351
|
-
end
|
|
352
|
-
end
|
|
353
|
-
github_repo "chef/chef-manage"
|
|
354
|
-
end
|
|
355
|
-
|
|
356
|
-
product "marketplace" do
|
|
357
|
-
product_name "Chef Cloud Marketplace addon"
|
|
358
|
-
package_name "chef-marketplace"
|
|
359
|
-
ctl_command "chef-marketplace-ctl"
|
|
360
|
-
config_file "/etc/chef-marketplace/marketplace.rb"
|
|
361
|
-
github_repo "chef-partners/omnibus-marketplace"
|
|
362
|
-
downloads_product_page_url :not_available
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
product "omnibus-toolchain" do
|
|
366
|
-
product_name "Omnibus Toolchain"
|
|
367
|
-
package_name "omnibus-toolchain"
|
|
368
|
-
downloads_product_page_url :not_available
|
|
369
|
-
end
|
|
370
|
-
|
|
371
|
-
product "omnibus-gcc" do
|
|
372
|
-
product_name "Omnibus GCC Package"
|
|
373
|
-
package_name "omnibus-gcc"
|
|
374
|
-
downloads_product_page_url :not_available
|
|
375
|
-
end
|
|
376
|
-
|
|
377
|
-
product "private-chef" do
|
|
378
|
-
product_name "Enterprise Chef (legacy)"
|
|
379
|
-
package_name "private-chef"
|
|
380
|
-
ctl_command "private-chef-ctl"
|
|
381
|
-
config_file "/etc/opscode/private-chef.rb"
|
|
382
|
-
install_path "/opt/opscode"
|
|
383
|
-
github_repo "chef/opscode-chef"
|
|
384
|
-
end
|
|
385
|
-
|
|
386
|
-
product "push-jobs-client" do
|
|
387
|
-
product_name "Chef Push Client"
|
|
388
|
-
package_name do |v|
|
|
389
|
-
v < version_for("1.3.0") ? "opscode-push-jobs-client" : "push-jobs-client"
|
|
390
|
-
end
|
|
391
|
-
github_repo "chef/opscode-pushy-client"
|
|
392
|
-
end
|
|
393
|
-
|
|
394
|
-
product "push-jobs-server" do
|
|
395
|
-
product_name "Chef Push Server"
|
|
396
|
-
package_name "opscode-push-jobs-server"
|
|
397
|
-
ctl_command "opscode-push-jobs-server-ctl"
|
|
398
|
-
config_file "/etc/opscode-push-jobs-server/opscode-push-jobs-server.rb"
|
|
399
|
-
github_repo "chef/opscode-pushy-server"
|
|
400
|
-
end
|
|
401
|
-
|
|
402
|
-
product "reporting" do
|
|
403
|
-
product_name "Chef Infra Server Reporting addon"
|
|
404
|
-
package_name "opscode-reporting"
|
|
405
|
-
ctl_command "opscode-reporting-ctl"
|
|
406
|
-
config_file "/etc/opscode-reporting/opscode-reporting.rb"
|
|
407
|
-
github_repo "chef/oc_reporting"
|
|
408
|
-
end
|
|
409
|
-
|
|
410
|
-
product "supermarket" do
|
|
411
|
-
product_name "Supermarket"
|
|
412
|
-
package_name "supermarket"
|
|
413
|
-
ctl_command "supermarket-ctl"
|
|
414
|
-
config_file "/etc/supermarket/supermarket.json"
|
|
415
|
-
end
|
|
416
|
-
|
|
417
|
-
product "sync" do
|
|
418
|
-
product_name "Chef Infra Server Replication addon"
|
|
419
|
-
package_name "chef-sync"
|
|
420
|
-
ctl_command "chef-sync-ctl"
|
|
421
|
-
config_file "/etc/chef-sync/chef-sync.rb"
|
|
422
|
-
github_repo "chef/omnibus-sync"
|
|
423
|
-
downloads_product_page_url :not_available
|
|
424
|
-
end
|
|
425
|
-
end
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
require "mixlib/install/product"
|
|
2
|
+
|
|
3
|
+
#
|
|
4
|
+
# If you are making a change to PRODUCT_MATRIX, please make sure
|
|
5
|
+
# you run `bundle exec rake matrix` at the home of this repository
|
|
6
|
+
# to update PRODUCT_MATRIX.md.
|
|
7
|
+
#
|
|
8
|
+
PRODUCT_MATRIX = Mixlib::Install::ProductMatrix.new do
|
|
9
|
+
# Products in alphabetical order
|
|
10
|
+
|
|
11
|
+
product "analytics" do
|
|
12
|
+
product_name "Analytics Platform"
|
|
13
|
+
package_name "opscode-analytics"
|
|
14
|
+
ctl_command "opscode-analytics-ctl"
|
|
15
|
+
config_file "/etc/opscode-analytics/opscode-analytics.rb"
|
|
16
|
+
downloads_product_page_url :not_available
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
product "angry-omnibus-toolchain" do
|
|
20
|
+
product_name "Angry Omnibus Toolchain"
|
|
21
|
+
package_name "angry-omnibus-toolchain"
|
|
22
|
+
github_repo "chef/omnibus-toolchain"
|
|
23
|
+
downloads_product_page_url :not_available
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
product "angrychef" do
|
|
27
|
+
product_name "Angry Chef Client"
|
|
28
|
+
package_name "angrychef"
|
|
29
|
+
github_repo "chef/chef"
|
|
30
|
+
downloads_product_page_url :not_available
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
product "automate" do
|
|
34
|
+
product_name "Chef Automate"
|
|
35
|
+
# Delivery backward compatibility
|
|
36
|
+
package_name do |v|
|
|
37
|
+
v < version_for("0.7.0") ? "delivery" : "automate"
|
|
38
|
+
end
|
|
39
|
+
ctl_command do |v|
|
|
40
|
+
v < version_for("0.7.0") ? "delivery-ctl" : "automate-ctl"
|
|
41
|
+
end
|
|
42
|
+
config_file "/etc/delivery/delivery.rb"
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
product "chef" do
|
|
46
|
+
product_name "Chef Infra Client"
|
|
47
|
+
package_name "chef"
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
product "chef-backend" do
|
|
51
|
+
product_name "Chef Backend"
|
|
52
|
+
package_name "chef-backend"
|
|
53
|
+
ctl_command "chef-backend-ctl"
|
|
54
|
+
config_file "/etc/chef-backend/chef-backend.rb"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
product "chef-server" do
|
|
58
|
+
product_name "Chef Infra Server"
|
|
59
|
+
package_name do |v|
|
|
60
|
+
if (v < version_for("12.0.0")) && (v > version_for("11.0.0"))
|
|
61
|
+
"chef-server"
|
|
62
|
+
else
|
|
63
|
+
"chef-server-core"
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
omnibus_project "chef-server"
|
|
67
|
+
ctl_command "chef-server-ctl"
|
|
68
|
+
config_file do |v|
|
|
69
|
+
if (v < version_for("12.0.0")) && (v > version_for("11.0.0"))
|
|
70
|
+
"/etc/chef-server/chef-server.rb"
|
|
71
|
+
else
|
|
72
|
+
"/etc/opscode/chef-server.rb"
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
install_path do |v|
|
|
76
|
+
if (v < version_for("12.0.0")) && (v > version_for("11.0.0"))
|
|
77
|
+
"/opt/chef-server"
|
|
78
|
+
else
|
|
79
|
+
"/opt/opscode"
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
product "chef-server-ha-provisioning" do
|
|
85
|
+
product_name "Chef Infra Server HA Provisioning for AWS"
|
|
86
|
+
package_name "chef-server-ha-provisioning"
|
|
87
|
+
downloads_product_page_url :not_available
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
product "chef-workstation" do
|
|
91
|
+
product_name "Chef Workstation"
|
|
92
|
+
package_name "chef-workstation"
|
|
93
|
+
github_repo "chef/chef-workstation"
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
product "chefdk" do
|
|
97
|
+
product_name "Chef Development Kit"
|
|
98
|
+
package_name "chefdk"
|
|
99
|
+
github_repo "chef/chef-dk"
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
product "compliance" do
|
|
103
|
+
product_name "Chef Compliance"
|
|
104
|
+
package_name "chef-compliance"
|
|
105
|
+
ctl_command "chef-compliance-ctl"
|
|
106
|
+
config_file "/etc/chef-compliance/chef-compliance.rb"
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
product "delivery" do
|
|
110
|
+
product_name "Delivery"
|
|
111
|
+
# Chef Automate forward compatibility
|
|
112
|
+
package_name do |v|
|
|
113
|
+
v < version_for("0.7.0") ? "delivery" : "automate"
|
|
114
|
+
end
|
|
115
|
+
ctl_command do |v|
|
|
116
|
+
v < version_for("0.7.0") ? "delivery-ctl" : "automate-ctl"
|
|
117
|
+
end
|
|
118
|
+
config_file "/etc/delivery/delivery.rb"
|
|
119
|
+
github_repo "chef/automate"
|
|
120
|
+
downloads_product_page_url "https://downloads.chef.io/automate"
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
product "ha" do
|
|
124
|
+
product_name "Chef Infra Server High Availability addon"
|
|
125
|
+
package_name "chef-ha"
|
|
126
|
+
config_file "/etc/opscode/chef-server.rb"
|
|
127
|
+
github_repo "chef/chef-ha"
|
|
128
|
+
downloads_product_page_url :not_available
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
product "harmony" do
|
|
132
|
+
product_name "Harmony - Omnibus Integration Internal Test Project"
|
|
133
|
+
package_name "harmony"
|
|
134
|
+
github_repo "chef/omnibus-harmony"
|
|
135
|
+
downloads_product_page_url :not_available
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
product "inspec" do
|
|
139
|
+
product_name "Chef InSpec"
|
|
140
|
+
package_name "inspec"
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
product "mac-bootstrapper" do
|
|
144
|
+
product_name "Habitat Mac Bootstrapper"
|
|
145
|
+
package_name "mac-bootstrapper"
|
|
146
|
+
downloads_product_page_url :not_available
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
product "manage" do
|
|
150
|
+
product_name "Management Console"
|
|
151
|
+
package_name do |v|
|
|
152
|
+
v < version_for("2.0.0") ? "opscode-manage" : "chef-manage"
|
|
153
|
+
end
|
|
154
|
+
ctl_command do |v|
|
|
155
|
+
v < version_for("2.0.0") ? "opscode-manage-ctl" : "chef-manage-ctl"
|
|
156
|
+
end
|
|
157
|
+
config_file do |v|
|
|
158
|
+
if v < version_for("2.0.0")
|
|
159
|
+
"/etc/opscode-manage/manage.rb"
|
|
160
|
+
else
|
|
161
|
+
"/etc/chef-manage/manage.rb"
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
github_repo "chef/chef-manage"
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
product "marketplace" do
|
|
168
|
+
product_name "Chef Cloud Marketplace addon"
|
|
169
|
+
package_name "chef-marketplace"
|
|
170
|
+
ctl_command "chef-marketplace-ctl"
|
|
171
|
+
config_file "/etc/chef-marketplace/marketplace.rb"
|
|
172
|
+
github_repo "chef-partners/omnibus-marketplace"
|
|
173
|
+
downloads_product_page_url :not_available
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
product "omnibus-toolchain" do
|
|
177
|
+
product_name "Omnibus Toolchain"
|
|
178
|
+
package_name "omnibus-toolchain"
|
|
179
|
+
downloads_product_page_url :not_available
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
product "omnibus-gcc" do
|
|
183
|
+
product_name "Omnibus GCC Package"
|
|
184
|
+
package_name "omnibus-gcc"
|
|
185
|
+
downloads_product_page_url :not_available
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
product "private-chef" do
|
|
189
|
+
product_name "Enterprise Chef (legacy)"
|
|
190
|
+
package_name "private-chef"
|
|
191
|
+
ctl_command "private-chef-ctl"
|
|
192
|
+
config_file "/etc/opscode/private-chef.rb"
|
|
193
|
+
install_path "/opt/opscode"
|
|
194
|
+
github_repo "chef/opscode-chef"
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
product "push-jobs-client" do
|
|
198
|
+
product_name "Chef Push Client"
|
|
199
|
+
package_name do |v|
|
|
200
|
+
v < version_for("1.3.0") ? "opscode-push-jobs-client" : "push-jobs-client"
|
|
201
|
+
end
|
|
202
|
+
github_repo "chef/opscode-pushy-client"
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
product "push-jobs-server" do
|
|
206
|
+
product_name "Chef Push Server"
|
|
207
|
+
package_name "opscode-push-jobs-server"
|
|
208
|
+
ctl_command "opscode-push-jobs-server-ctl"
|
|
209
|
+
config_file "/etc/opscode-push-jobs-server/opscode-push-jobs-server.rb"
|
|
210
|
+
github_repo "chef/opscode-pushy-server"
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
product "reporting" do
|
|
214
|
+
product_name "Chef Infra Server Reporting addon"
|
|
215
|
+
package_name "opscode-reporting"
|
|
216
|
+
ctl_command "opscode-reporting-ctl"
|
|
217
|
+
config_file "/etc/opscode-reporting/opscode-reporting.rb"
|
|
218
|
+
github_repo "chef/oc_reporting"
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
product "supermarket" do
|
|
222
|
+
product_name "Supermarket"
|
|
223
|
+
package_name "supermarket"
|
|
224
|
+
ctl_command "supermarket-ctl"
|
|
225
|
+
config_file "/etc/supermarket/supermarket.json"
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
product "sync" do
|
|
229
|
+
product_name "Chef Infra Server Replication addon"
|
|
230
|
+
package_name "chef-sync"
|
|
231
|
+
ctl_command "chef-sync-ctl"
|
|
232
|
+
config_file "/etc/chef-sync/chef-sync.rb"
|
|
233
|
+
github_repo "chef/omnibus-sync"
|
|
234
|
+
downloads_product_page_url :not_available
|
|
235
|
+
end
|
|
236
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mixlib-install
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.11.
|
|
4
|
+
version: 3.11.24
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thom May
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
12
|
+
date: 2019-12-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: mixlib-shellout
|
|
@@ -72,6 +72,7 @@ files:
|
|
|
72
72
|
- lib/mixlib/install/backend/base.rb
|
|
73
73
|
- lib/mixlib/install/backend/package_router.rb
|
|
74
74
|
- lib/mixlib/install/cli.rb
|
|
75
|
+
- lib/mixlib/install/dist.rb
|
|
75
76
|
- lib/mixlib/install/generator.rb
|
|
76
77
|
- lib/mixlib/install/generator/base.rb
|
|
77
78
|
- lib/mixlib/install/generator/bourne.rb
|
|
@@ -82,14 +83,15 @@ files:
|
|
|
82
83
|
- lib/mixlib/install/generator/bourne/scripts/install_package.sh
|
|
83
84
|
- lib/mixlib/install/generator/bourne/scripts/platform_detection.sh
|
|
84
85
|
- lib/mixlib/install/generator/bourne/scripts/proxy_env.sh
|
|
85
|
-
- lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh
|
|
86
|
+
- lib/mixlib/install/generator/bourne/scripts/script_cli_parameters.sh.erb
|
|
86
87
|
- lib/mixlib/install/generator/powershell.rb
|
|
87
88
|
- lib/mixlib/install/generator/powershell/scripts/get_project_metadata.ps1.erb
|
|
88
89
|
- lib/mixlib/install/generator/powershell/scripts/helpers.ps1.erb
|
|
89
|
-
- lib/mixlib/install/generator/powershell/scripts/install_project.ps1
|
|
90
|
+
- lib/mixlib/install/generator/powershell/scripts/install_project.ps1.erb
|
|
90
91
|
- lib/mixlib/install/generator/powershell/scripts/platform_detection.ps1
|
|
91
92
|
- lib/mixlib/install/options.rb
|
|
92
93
|
- lib/mixlib/install/product.rb
|
|
94
|
+
- lib/mixlib/install/product_matrix.rb
|
|
93
95
|
- lib/mixlib/install/script_generator.rb
|
|
94
96
|
- lib/mixlib/install/util.rb
|
|
95
97
|
- lib/mixlib/install/version.rb
|