cloud-mu 3.6.9 → 3.6.10
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/cloud-mu.gemspec +1 -1
- data/cookbooks/mu-master/recipes/init.rb +24 -2
- data/modules/mu/providers/aws.rb +16 -14
- data/modules/mu/providers/google.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e73ecd2759df6ccc11710c83b0e3a2733eededf4ac6825bb0a76ab284aaf8887
|
4
|
+
data.tar.gz: 1717164c2388e7e7ba8a7cb66877242399468606524d9ea759e746a6a0fb9c00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a859e81138c136a6b49833ce6e63d6a619fe158d7b3f572b2f1e75466f6dd0e180e2df9c76a19f7e925efa67d3cb28c254531d6af731af7ea0aba1258566ce1
|
7
|
+
data.tar.gz: 8b9faa2e7f5c8408e888a74264f13a8bb679ddabb6fcf761ea2c2d28835be3e26f0eb5129d7ecfe6a6b16ab617d9331cc4e18992b7182e7f04ba578764215d9a
|
data/cloud-mu.gemspec
CHANGED
@@ -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"
|
data/modules/mu/providers/aws.rb
CHANGED
@@ -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
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
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
|