diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-04-03 17:52:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-03 17:52:12 -0700 |
commit | 9bfad26b198fc2779c0fd7b5dced74839a88426c (patch) | |
tree | 44ed0530be78af78562f4199905187831eacddf5 | |
parent | f780b3661c288b1e75e8ae76e9931e2145ffd756 (diff) | |
parent | b17f59e52ea17359494d89d21368186f779c8b61 (diff) | |
download | chef-9bfad26b198fc2779c0fd7b5dced74839a88426c.tar.gz |
Merge pull request #5998 from chef/lcg/ohai-with-amazon-change
bumping Gemfile.lock to pick up ohai amazon change
-rw-r--r-- | .travis.yml | 19 | ||||
-rw-r--r-- | Gemfile.lock | 18 | ||||
-rw-r--r-- | lib/chef/provider/ifconfig/redhat.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/package/dnf.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/package/yum.rb | 4 | ||||
-rw-r--r-- | lib/chef/provider/service.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/service/insserv.rb | 4 | ||||
-rw-r--r-- | lib/chef/provider/service/redhat.rb | 4 | ||||
-rw-r--r-- | lib/chef/resource/dnf_package.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/yum_package.rb | 2 |
10 files changed, 39 insertions, 20 deletions
diff --git a/.travis.yml b/.travis.yml index 30e0756539..aea79db190 100644 --- a/.travis.yml +++ b/.travis.yml @@ -323,6 +323,25 @@ matrix: - cat /tmp/out.txt - sudo cat /var/log/squid3/cache.log - sudo cat /var/log/squid3/access.log + allow_failures: + - rvm: 2.4.1 + services: docker + sudo: required + gemfile: kitchen-tests/Gemfile + before_install: + - gem update --system $(grep rubygems omnibus_overrides.rb | cut -d'"' -f2) + - gem install bundler -v $(grep bundler omnibus_overrides.rb | cut -d'"' -f2) + bundler_args: --without ci development docgen guard integration maintenance omnibus_package tools aix bsd mac_os_x solaris windows --frozen + before_script: + - sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER ) + - cd kitchen-tests + script: + - travis_wait bundle exec kitchen test webapp-amazonlinux + after_failure: + - cat .kitchen/logs/kitchen.log + env: + - AMAZONLINUX=LATEST + - KITCHEN_YAML=.kitchen.travis.yml notifications: on_change: true diff --git a/Gemfile.lock b/Gemfile.lock index 4cc8805765..5748e98ebb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -37,7 +37,7 @@ GIT GIT remote: https://github.com/chef/ohai.git - revision: 05cf05cb76ae22af9a8466e0226d0092b74c8414 + revision: 58296dc0035e4f94a7b7cdc1db01887a3c3c1e30 specs: ohai (13.0.0) chef-config (>= 12.5.0.alpha.1, < 14) @@ -97,7 +97,7 @@ GIT GIT remote: https://github.com/poise/poise.git - revision: bf1ae70fda2486964397acd04221c968c30dd092 + revision: 47cd0e2296fed918b30b0889ed127c824cc32d30 specs: poise (2.7.3.pre) halite (~> 1.0) @@ -205,13 +205,13 @@ GEM mixlib-cli (~> 1.4) artifactory (2.8.1) ast (2.3.0) - aws-sdk (2.9.1) - aws-sdk-resources (= 2.9.1) - aws-sdk-core (2.9.1) + aws-sdk (2.9.2) + aws-sdk-resources (= 2.9.2) + aws-sdk-core (2.9.2) aws-sigv4 (~> 1.0) jmespath (~> 1.0) - aws-sdk-resources (2.9.1) - aws-sdk-core (= 2.9.1) + aws-sdk-resources (2.9.2) + aws-sdk-core (= 2.9.2) aws-sigv4 (1.0.0) backports (3.7.0) binding_of_caller (0.7.2) @@ -263,7 +263,7 @@ GEM ethon (0.10.1) ffi (>= 1.3.0) excon (0.55.0) - faraday (0.11.0) + faraday (0.12.0.1) multipart-post (>= 1.2, < 3) faraday-http-cache (2.0.0) faraday (~> 0.8) @@ -323,7 +323,7 @@ GEM kitchen-sync (2.1.2) net-sftp test-kitchen (>= 1.0.0) - kitchen-vagrant (1.0.2) + kitchen-vagrant (1.1.0) test-kitchen (~> 1.4) knife-windows (1.9.0) winrm (~> 2.1) diff --git a/lib/chef/provider/ifconfig/redhat.rb b/lib/chef/provider/ifconfig/redhat.rb index 841e725b94..8af9f10f67 100644 --- a/lib/chef/provider/ifconfig/redhat.rb +++ b/lib/chef/provider/ifconfig/redhat.rb @@ -22,7 +22,7 @@ class Chef class Provider class Ifconfig class Redhat < Chef::Provider::Ifconfig - provides :ifconfig, platform_family: %w{fedora rhel} + provides :ifconfig, platform_family: %w{fedora rhel amazon} def initialize(new_resource, run_context) super(new_resource, run_context) diff --git a/lib/chef/provider/package/dnf.rb b/lib/chef/provider/package/dnf.rb index c551ae7cb0..42d679c940 100644 --- a/lib/chef/provider/package/dnf.rb +++ b/lib/chef/provider/package/dnf.rb @@ -35,7 +35,7 @@ class Chef use_multipackage_api use_package_name_for_source - provides :package, platform_family: %w{rhel fedora} do + provides :package, platform_family: %w{rhel fedora amazon} do which("dnf") && shell_out("rpm -q dnf").stdout =~ /^dnf-[1-9]/ end diff --git a/lib/chef/provider/package/yum.rb b/lib/chef/provider/package/yum.rb index d37aa1fb73..f1ba9dd4eb 100644 --- a/lib/chef/provider/package/yum.rb +++ b/lib/chef/provider/package/yum.rb @@ -1,6 +1,6 @@ # Author:: Adam Jacob (<adam@chef.io>) -# Copyright:: Copyright 2008-2017, Chef Software, Inc. +# Copyright:: Copyright 2008-2017, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -29,7 +29,7 @@ class Chef class Yum < Chef::Provider::Package include Chef::Mixin::GetSourceFromPackage - provides :package, platform_family: %w{rhel fedora} + provides :package, platform_family: %w{rhel fedora amazon} provides :yum_package, os: "linux" # Multipackage API diff --git a/lib/chef/provider/service.rb b/lib/chef/provider/service.rb index 9f06e2eb25..34ecf2f0bc 100644 --- a/lib/chef/provider/service.rb +++ b/lib/chef/provider/service.rb @@ -245,7 +245,7 @@ class Chef Chef.set_provider_priority_array :service, [ Systemd, Arch ], platform_family: "arch" Chef.set_provider_priority_array :service, [ Systemd, Gentoo ], platform_family: "gentoo" Chef.set_provider_priority_array :service, [ Systemd, Upstart, Insserv, Debian, Invokercd ], platform_family: "debian" - Chef.set_provider_priority_array :service, [ Systemd, Insserv, Redhat ], platform_family: %w{rhel fedora suse} + Chef.set_provider_priority_array :service, [ Systemd, Insserv, Redhat ], platform_family: %w{rhel fedora suse amazon} end end end diff --git a/lib/chef/provider/service/insserv.rb b/lib/chef/provider/service/insserv.rb index c3dca10495..a8e841f8b3 100644 --- a/lib/chef/provider/service/insserv.rb +++ b/lib/chef/provider/service/insserv.rb @@ -1,6 +1,6 @@ # # Author:: Bryan McLellan <btm@loftninjas.org> -# Copyright:: Copyright 2011-2016, Chef Software Inc. +# Copyright:: Copyright 2011-2017, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,7 +24,7 @@ class Chef class Service class Insserv < Chef::Provider::Service::Init - provides :service, platform_family: %w{debian rhel fedora suse} do |node| + provides :service, platform_family: %w{debian rhel fedora suse amazon} do |node| Chef::Platform::ServiceHelpers.service_resource_providers.include?(:insserv) end diff --git a/lib/chef/provider/service/redhat.rb b/lib/chef/provider/service/redhat.rb index 21ab678706..1da3d7c01a 100644 --- a/lib/chef/provider/service/redhat.rb +++ b/lib/chef/provider/service/redhat.rb @@ -1,6 +1,6 @@ # # Author:: AJ Christensen (<aj@hjksolutions.com>) -# Copyright:: Copyright 2008-2016, Chef Software, Inc. +# Copyright:: Copyright 2008-2017, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -28,7 +28,7 @@ class Chef # @api private attr_accessor :current_run_levels - provides :service, platform_family: %w{rhel fedora suse} do |node| + provides :service, platform_family: %w{rhel fedora suse amazon} do |node| Chef::Platform::ServiceHelpers.service_resource_providers.include?(:redhat) end diff --git a/lib/chef/resource/dnf_package.rb b/lib/chef/resource/dnf_package.rb index f10c282f19..d92dc12ec7 100644 --- a/lib/chef/resource/dnf_package.rb +++ b/lib/chef/resource/dnf_package.rb @@ -29,7 +29,7 @@ class Chef allowed_actions :install, :upgrade, :remove, :purge, :reconfig, :lock, :unlock, :flush_cache - provides :package, platform_family: %w{rhel fedora} do + provides :package, platform_family: %w{rhel fedora amazon} do which("dnf") && shell_out("rpm -q dnf").stdout =~ /^dnf-[1-9]/ end diff --git a/lib/chef/resource/yum_package.rb b/lib/chef/resource/yum_package.rb index 2fc5db5cc3..078725e306 100644 --- a/lib/chef/resource/yum_package.rb +++ b/lib/chef/resource/yum_package.rb @@ -22,7 +22,7 @@ class Chef class Resource class YumPackage < Chef::Resource::Package resource_name :yum_package - provides :package, os: "linux", platform_family: %w{rhel fedora} + provides :package, os: "linux", platform_family: %w{rhel fedora amazon} # XXX: the coercions here are due to the provider promiscuously updating the properties on the # new_resource which causes immutable modification exceptions when passed an immutable node array. |