cloud-mu 3.6.9 → 3.6.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c1f3ffc314397751b1408cfaa0f11f91c15c0dd5107c3c6795befbdddd73a03
4
- data.tar.gz: 27f456bbb9eb736fa166598b64b1043671b296995bca0dbaf4e37042e06a2c90
3
+ metadata.gz: e73ecd2759df6ccc11710c83b0e3a2733eededf4ac6825bb0a76ab284aaf8887
4
+ data.tar.gz: 1717164c2388e7e7ba8a7cb66877242399468606524d9ea759e746a6a0fb9c00
5
5
  SHA512:
6
- metadata.gz: 8daf8715e676f0d30955c9988f9178d2cda118e5dc13dfed5b4c410dcbd3c4c895a8465eeadd7579a34db945013af1c3a068ba5bbaaebcf0de1d310723a9d11d
7
- data.tar.gz: 430945864829349c9cacc4958ec013ccd7bbebd57586f49fe3b71dafe9b8c99cdf476fc1b6927ba10f8a688a868590e6435c374d91d57b0f400343c08d5f48fd
6
+ metadata.gz: 5a859e81138c136a6b49833ce6e63d6a619fe158d7b3f572b2f1e75466f6dd0e180e2df9c76a19f7e925efa67d3cb28c254531d6af731af7ea0aba1258566ce1
7
+ data.tar.gz: 8b9faa2e7f5c8408e888a74264f13a8bb679ddabb6fcf761ea2c2d28835be3e26f0eb5129d7ecfe6a6b16ab617d9331cc4e18992b7182e7f04ba578764215d9a
data/cloud-mu.gemspec CHANGED
@@ -17,7 +17,7 @@ end
17
17
 
18
18
  Gem::Specification.new do |s|
19
19
  s.name = 'cloud-mu'
20
- s.version = '3.6.9'
20
+ s.version = '3.6.10'
21
21
  s.date = '2024-11-28'
22
22
  s.require_paths = ['modules']
23
23
  s.required_ruby_version = '>= 3'
@@ -30,6 +30,30 @@ chef_gem "cloud-mu" do
30
30
  action :install
31
31
  end
32
32
 
33
+ CHEF_SERVER_VERSION="14.11.31-1"
34
+ CHEF_CLIENT_VERSION="18.5.0"
35
+
36
+ # The versions of these must not bring in a newer version of aws-sdk-core
37
+ # than whatever Chef prefers (aws-sdk-core 3.171.0 as of Chef 18.5.0,
38
+ # roughly spring of 2023)
39
+ awsgems = {
40
+ "aws-sdk-ec2" => "1.380.0",
41
+ # "aws-sdk-lambda" => "1.96.0",
42
+ # "aws-sdk-rds" => "1.179.0",
43
+ # "aws-sdk-route53" => "1.71.0",
44
+ # "aws-sdk-efs" => "1.60.0",
45
+ # "aws-sdk-iam" => "1.77.0"
46
+ }
47
+
48
+ awsgems.each_pair { |g, v|
49
+ chef_gem g do
50
+ gem_binary "/opt/chef/embedded/bin/gem"
51
+ version v
52
+ compile_time true
53
+ action :install
54
+ end
55
+ }
56
+
33
57
  require 'etc'
34
58
  require 'open-uri'
35
59
  require 'socket'
@@ -43,8 +67,6 @@ ENV['PATH'] = ENV['PATH']+":/bin:/opt/opscode/embedded/bin"
43
67
 
44
68
  # XXX We want to be able to override these things when invoked from chef-apply,
45
69
  # but, like, how?
46
- CHEF_SERVER_VERSION="14.11.31-1"
47
- CHEF_CLIENT_VERSION="18.5.0"
48
70
  KNIFE_WINDOWS="1.9.0"
49
71
  KNIFE="env -i HOME=/root PATH=/usr/local/ruby-current/bin:/bin:/usr/bin knife" # it's separate from Chef now, we get it as a gem
50
72
  MU_BASE="/opt/mu"
@@ -1645,21 +1645,23 @@ MU.log "Fetch of http://169.254.169.254/latest/meta-data/instance-id took #{spri
1645
1645
  # rescues for known silly endpoint behavior.
1646
1646
  def method_missing(method_sym, *arguments)
1647
1647
  # make sure error symbols are loaded for our exception handling later
1648
- require "aws-sdk-lambda"
1649
- require "aws-sdk-rds"
1650
1648
  require "aws-sdk-ec2"
1651
- require "aws-sdk-route53"
1652
- require "aws-sdk-iam"
1653
- require "aws-sdk-efs"
1654
- require "aws-sdk-pricing"
1655
- require "aws-sdk-apigateway"
1656
- require "aws-sdk-ecs"
1657
- require "aws-sdk-eks"
1658
- require "aws-sdk-cloudwatchlogs"
1659
- require "aws-sdk-cloudwatchevents"
1660
- require "aws-sdk-elasticloadbalancing"
1661
- require "aws-sdk-elasticloadbalancingv2"
1662
- require "aws-sdk-autoscaling"
1649
+ if @api_name != "EC2"
1650
+ require "aws-sdk-lambda"
1651
+ require "aws-sdk-rds"
1652
+ require "aws-sdk-route53"
1653
+ require "aws-sdk-iam"
1654
+ require "aws-sdk-efs"
1655
+ require "aws-sdk-pricing"
1656
+ require "aws-sdk-apigateway"
1657
+ require "aws-sdk-ecs"
1658
+ require "aws-sdk-eks"
1659
+ require "aws-sdk-cloudwatchlogs"
1660
+ require "aws-sdk-cloudwatchevents"
1661
+ require "aws-sdk-elasticloadbalancing"
1662
+ require "aws-sdk-elasticloadbalancingv2"
1663
+ require "aws-sdk-autoscaling"
1664
+ end
1663
1665
 
1664
1666
  known_concats = {
1665
1667
  "Pricing" => {
@@ -12,7 +12,6 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- require 'googleauth'
16
15
  require "net/http"
17
16
  require 'net/https'
18
17
  require 'multi_json'
@@ -529,6 +528,7 @@ MU.log e.message, MU::WARN, details: e.inspect
529
528
  # for consumption by the various GCP APIs.
530
529
  # @param scopes [Array<String>]: One or more scopes for which to authorizer the caller. Will vary depending on the API you're calling.
531
530
  def self.loadCredentials(scopes = nil, credentials: nil)
531
+ require 'googleauth'
532
532
  if @@authorizers[credentials] and @@authorizers[credentials][scopes.to_s]
533
533
  return @@authorizers[credentials][scopes.to_s]
534
534
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud-mu
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.9
4
+ version: 3.6.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Stange