summaryrefslogtreecommitdiff
path: root/omnibus/config/projects
diff options
context:
space:
mode:
authorKartik Null Cating-Subramanian <ksubramanian@chef.io>2016-01-08 13:22:45 -0800
committerKartik Null Cating-Subramanian <ksubramanian@chef.io>2016-01-08 13:22:45 -0800
commit5a0031d962402221b580df270e8802b71d5ea1f0 (patch)
treec57c56e8115c04e14f40ecad2b83c2d8f0f99fcf /omnibus/config/projects
parentc9d7e017de225db3e8b8610dc7e2f41242dbe730 (diff)
parent286c306edfb9c5b90a6c1f382defb9efd1580e96 (diff)
downloadchef-5a0031d962402221b580df270e8802b71d5ea1f0.tar.gz
Import all of omnibus-chef under the omnibus directory
Diffstat (limited to 'omnibus/config/projects')
-rw-r--r--omnibus/config/projects/angrychef.rb41
-rw-r--r--omnibus/config/projects/chef-fips.rb48
-rw-r--r--omnibus/config/projects/chef.rb86
-rw-r--r--omnibus/config/projects/chefdk.rb119
-rw-r--r--omnibus/config/projects/push-jobs-client.rb86
5 files changed, 380 insertions, 0 deletions
diff --git a/omnibus/config/projects/angrychef.rb b/omnibus/config/projects/angrychef.rb
new file mode 100644
index 0000000000..c585c73040
--- /dev/null
+++ b/omnibus/config/projects/angrychef.rb
@@ -0,0 +1,41 @@
+#
+# Copyright 2012-2015 Chef Software, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+#
+# This is a clone of the Chef project that we can install on the Chef build and
+# test machines. As such this project definition is just a thin wrapper around
+# `config/project/chef.rb`.
+#
+chef_project_contents = IO.read(File.expand_path('../chef.rb', __FILE__))
+self.instance_eval chef_project_contents
+
+name "angrychef"
+friendly_name "Angry Chef Client"
+
+if windows?
+ # NOTE: Ruby DevKit fundamentally CANNOT be installed into "Program Files"
+ # Native gems will use gcc which will barf on files with spaces,
+ # which is only fixable if everyone in the world fixes their Makefiles
+ install_dir "#{default_root}/opscode/#{name}"
+ package_name "angrychef"
+else
+ install_dir "#{default_root}/#{name}"
+end
+
+resources_path "#{resources_path}/../chef"
+
+msi_upgrade_code = "D7FDDC1A-7668-404E-AD2F-61F875632A9C"
+project_location_dir = "angrychef"
diff --git a/omnibus/config/projects/chef-fips.rb b/omnibus/config/projects/chef-fips.rb
new file mode 100644
index 0000000000..32bbbc9c48
--- /dev/null
+++ b/omnibus/config/projects/chef-fips.rb
@@ -0,0 +1,48 @@
+#
+# Copyright 2012-2015 Chef Software, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+#
+# This is the chef client build with FIPS mode enabled.
+# It's a stub for now and produces identical results
+#
+chef_project_contents = IO.read(File.expand_path('../chef.rb', __FILE__))
+self.instance_eval chef_project_contents
+
+name "chef-fips"
+friendly_name "Chef Client with FIPS OpenSSL"
+
+if windows?
+ # NOTE: Ruby DevKit fundamentally CANNOT be installed into "Program Files"
+ # Native gems will use gcc which will barf on files with spaces,
+ # which is only fixable if everyone in the world fixes their Makefiles
+ install_dir "#{default_root}/opscode/#{name}"
+ package_name "chef-fips"
+else
+ install_dir "#{default_root}/#{name}"
+end
+
+# Global FIPS override flag.
+override :fips, enabled: true
+override :'ruby-windows', version: "2.0.0-p647"
+
+override :chef, version: "jdm/1.3-fips"
+override :ohai, version: "master"
+
+msi_upgrade_code = "819F5DB3-B818-4358-BB2B-54B8171D0A26"
+project_location_dir = "chef-fips"
+
+# Use chef's scripts for everything.
+resources_path "#{resources_path}/../chef"
diff --git a/omnibus/config/projects/chef.rb b/omnibus/config/projects/chef.rb
new file mode 100644
index 0000000000..c1d1dd2c40
--- /dev/null
+++ b/omnibus/config/projects/chef.rb
@@ -0,0 +1,86 @@
+#
+# Copyright 2012-2014 Chef Software, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name "chef"
+friendly_name "Chef Client"
+maintainer "Chef Software, Inc. <maintainers@chef.io>"
+homepage "https://www.chef.io"
+
+build_iteration 1
+build_version '12.6.0'
+
+if windows?
+ # NOTE: Ruby DevKit fundamentally CANNOT be installed into "Program Files"
+ # Native gems will use gcc which will barf on files with spaces,
+ # which is only fixable if everyone in the world fixes their Makefiles
+ install_dir "#{default_root}/opscode/#{name}"
+ package_name "chef-client"
+else
+ install_dir "#{default_root}/#{name}"
+end
+
+override :bundler, version: "1.10.6"
+override :ruby, version: "2.1.6"
+
+override :'ruby-windows', version: "2.0.0-p645"
+# Leave dev-kit pinned to 4.5 because 4.7 is 20MB larger and we don't want
+# to unnecessarily make the client any fatter.
+if windows_arch_i386?
+ override :'ruby-windows-devkit', version: "4.5.2-20111229-1559"
+end
+
+######
+# This points to jay's patched version for now to avoid a security
+# vulnerability and to allow pry to get installed on windows builds.
+# See the software definition for details.
+if windows?
+ override :rubygems, version: "jdm/2.4.8-patched"
+else
+ override :rubygems, version: "2.4.8"
+end
+
+# Chef Release version pinning
+override :chef, version: 'master'
+override :ohai, version: 'master'
+
+
+dependency "preparation"
+dependency "chef"
+dependency "shebang-cleanup"
+dependency "version-manifest"
+dependency "openssl-customization"
+
+package :rpm do
+ signing_passphrase ENV['OMNIBUS_RPM_SIGNING_PASSPHRASE']
+end
+
+proj_to_work_around_cleanroom = self
+package :pkg do
+ identifier "com.getchef.pkg.#{proj_to_work_around_cleanroom.name}"
+ signing_identity "Developer ID Installer: Chef Software, Inc. (EU3VF8YLX2)"
+end
+compress :dmg
+
+msi_upgrade_code = "D607A85C-BDFA-4F08-83ED-2ECB4DCD6BC5"
+project_location_dir = name
+package :msi do
+ fast_msi true
+ upgrade_code msi_upgrade_code
+ wix_candle_extension 'WixUtilExtension'
+ signing_identity "F74E1A68005E8A9C465C3D2FF7B41F3988F0EA09", machine_store: true
+ parameters ChefLogDllPath: windows_safe_path(gem_path("chef-[0-9]*-mingw32/ext/win32-eventlog/chef-log.dll")),
+ ProjectLocationDir: project_location_dir
+end
diff --git a/omnibus/config/projects/chefdk.rb b/omnibus/config/projects/chefdk.rb
new file mode 100644
index 0000000000..9981773711
--- /dev/null
+++ b/omnibus/config/projects/chefdk.rb
@@ -0,0 +1,119 @@
+#
+# Copyright 2014 Chef Software, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name "chefdk"
+friendly_name "Chef Development Kit"
+maintainer "Chef Software, Inc. <maintainers@chef.io>"
+homepage "https://www.chef.io"
+
+build_iteration 1
+build_version '0.10.0'
+
+if windows?
+ # NOTE: Ruby DevKit fundamentally CANNOT be installed into "Program Files"
+ # Native gems will use gcc which will barf on files with spaces,
+ # which is only fixable if everyone in the world fixes their Makefiles
+ install_dir "#{default_root}/opscode/#{name}"
+else
+ install_dir "#{default_root}/#{name}"
+end
+
+# Uncomment to pin the chef version
+override :chef, version: "master"
+override :ohai, version: "master"
+override :chefdk, version: "master"
+override :inspec, version: "master"
+override :'kitchen-inspec', version: "v0.10.0"
+# We should do a gem release of berkshelf and TK
+# before releasing chefdk.
+override :berkshelf, version: "master"
+override :'test-kitchen', version: "v1.5.0.rc.1"
+
+override :'knife-windows', version: "v1.1.1"
+override :'knife-spork', version: "1.5.0"
+override :fauxhai, version: "v3.0.1"
+override :chefspec, version: "v4.5.0"
+
+override :bundler, version: "1.10.6"
+override :'chef-vault', version: "v2.6.1"
+
+# TODO: Can we bump default versions in omnibus-software?
+override :libedit, version: "20130712-3.1"
+override :libtool, version: "2.4.2"
+override :libxml2, version: "2.9.1"
+override :libxslt, version: "1.1.28"
+
+override :ruby, version: "2.1.6"
+######
+# Ruby 2.1/2.2 has an error on Windows - HTTPS gem downloads aren't working
+# https://bugs.ruby-lang.org/issues/11033
+# Going to leave 2.1.5 for now since there is a workaround
+override :'ruby-windows', version: "2.1.6"
+override :'ruby-windows-devkit', version: "4.7.2-20130224"
+######
+
+######
+# This points to jay's patched version for now to avoid a security
+# vulnerability and to allow pry to get installed on windows builds.
+# See the software definition for details.
+if windows?
+ override :rubygems, version: "jdm/2.4.8-patched"
+else
+ override :rubygems, version: "2.4.8"
+end
+
+override :rubocop, version: "v0.35.1"
+
+override :'kitchen-vagrant', version: "v0.19.0"
+override :'winrm-transport', version: "v1.0.3"
+override :yajl, version: "1.2.1"
+override :zlib, version: "1.2.8"
+
+# NOTE: the base chef-provisioning gem is a dependency of chef-dk (the app).
+# Manage the chef-provisioning version via chef-dk.gemspec.
+override :'chef-provisioning-aws', version: "v1.7.0"
+override :'chef-provisioning-azure', version: "v0.4.0"
+override :'chef-provisioning-fog', version: "v0.15.0"
+override :'chef-provisioning-vagrant', version: "v0.10.0"
+
+dependency "preparation"
+dependency "chefdk"
+dependency "chef-provisioning-aws"
+dependency "chef-provisioning-fog"
+dependency "chef-provisioning-vagrant"
+dependency "chef-provisioning-azure"
+dependency "rubygems-customization"
+dependency "shebang-cleanup"
+dependency "version-manifest"
+dependency "openssl-customization"
+
+package :rpm do
+ signing_passphrase ENV['OMNIBUS_RPM_SIGNING_PASSPHRASE']
+end
+
+package :pkg do
+ identifier "com.getchef.pkg.chefdk"
+ signing_identity "Developer ID Installer: Chef Software, Inc. (EU3VF8YLX2)"
+end
+
+package :msi do
+ fast_msi true
+ upgrade_code "AB1D6FBD-F9DC-4395-BDAD-26C4541168E7"
+ signing_identity "F74E1A68005E8A9C465C3D2FF7B41F3988F0EA09", machine_store: true
+ wix_light_extension "WixUtilExtension"
+end
+
+compress :dmg
diff --git a/omnibus/config/projects/push-jobs-client.rb b/omnibus/config/projects/push-jobs-client.rb
new file mode 100644
index 0000000000..a6606c14b4
--- /dev/null
+++ b/omnibus/config/projects/push-jobs-client.rb
@@ -0,0 +1,86 @@
+#
+# Copyright 2012-2014 Chef Software, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name "push-jobs-client"
+friendly_name "Push Jobs Client"
+maintainer "Chef Software, Inc. <maintainers@chef.io>"
+homepage "https://www.chef.io"
+
+# Ensure we install over the top of the previous package name
+replace "opscode-push-jobs-client"
+conflict "opscode-push-jobs-client"
+
+build_iteration 1
+build_version "2.0.0-alpha.1"
+
+if windows?
+ # NOTE: Ruby DevKit fundamentally CANNOT be installed into "Program Files"
+ # Native gems will use gcc which will barf on files with spaces,
+ # which is only fixable if everyone in the world fixes their Makefiles
+ install_dir "#{default_root}/opscode/#{name}"
+else
+ install_dir "#{default_root}/#{name}"
+end
+
+override :bundler, version: "1.7.12"
+# Uncomment to pin the chef version
+#override :chef, version: "12.2.1"
+override :ruby, version: "2.1.6"
+######
+# Ruby 2.1/2.2 has an error on Windows - HTTPS gem downloads aren't working
+# https://bugs.ruby-lang.org/issues/11033
+# Going to leave 2.1.5 for now since there is a workaround
+override :'ruby-windows', version: "2.1.5"
+override :'ruby-windows-devkit', version: "4.7.2-20130224-1151"
+#override :'ruby-windows', version: "2.0.0-p451"
+######
+
+# Short term fix to keep from breaking old client build process
+override :libzmq, version: "4.0.5"
+
+######
+# rubygems 2.4.5 is not working on windows.
+# See https://github.com/rubygems/rubygems/issues/1120
+# Once this is fixed, we can bump the version
+override :rubygems, version: "2.4.4"
+######
+
+dependency "preparation"
+dependency "opscode-pushy-client"
+dependency "version-manifest"
+
+package :rpm do
+ signing_passphrase ENV['OMNIBUS_RPM_SIGNING_PASSPHRASE']
+end
+
+package :pkg do
+ identifier "com.getchef.pkg.push-jobs-client"
+ signing_identity "Developer ID Installer: Chef Software, Inc. (EU3VF8YLX2)"
+end
+compress :dmg
+
+package :msi do
+ # Upgrade code for Chef MSI
+ upgrade_code "D607A85C-BDFA-4F08-83ED-2ECB4DCD6BC5"
+ signing_identity "F74E1A68005E8A9C465C3D2FF7B41F3988F0EA09", machine_store: true
+
+ parameters(
+ # We are going to use this path in the startup command of chef
+ # service. So we need to change file seperators to make windows
+ # happy.
+ 'PushJobsGemPath' => windows_safe_path(gem_path("opscode-pushy-client-[0-9]*")),
+ )
+end