knife-ec2 2.0.0 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/knife/ec2_ami_list.rb +1 -1
- data/lib/chef/knife/ec2_flavor_list.rb +1 -1
- data/lib/chef/knife/ec2_server_create.rb +3 -4
- data/lib/knife-ec2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0792e566da930105ef238d8d64cb2fe79501895dcace746aa1a255b3e9d4a7f5'
|
4
|
+
data.tar.gz: 9078a6bb126100a28800abc87cd20d0344b33cbe090303795f414a9523e427d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4992729a869dd890f29f7d1d52cf957a4faf4d806f295abd62e760e60e0f9cb2916984c5f06e93538e362e39b71db2b9b56e8f2778661b04dafc6949b681e75d
|
7
|
+
data.tar.gz: a9f75d6fd86635c9cd67dcd50fc52ed5aae503d8004e212f53fc9d87f0b7159936a4f274b996e56a829cf28e04758c08b34e555c63096412553646561ca6142f
|
@@ -27,7 +27,7 @@ class Chef
|
|
27
27
|
# By default owner is aws-marketplace but you can specify following owner with the help of -o or --owner
|
28
28
|
# * self => Displays the list of AMIs created by the user
|
29
29
|
# * aws-marketplace => Displays all AMIs form trusted vendors like Ubuntu, Microsoft, SAP, Zend as well as many open source offering
|
30
|
-
# *
|
30
|
+
# * microsoft => Displays only Microsoft vendor AMIs
|
31
31
|
#
|
32
32
|
# == Platform
|
33
33
|
# By default all platform AMI's will display but you can filter your response
|
@@ -27,7 +27,7 @@ class Chef
|
|
27
27
|
banner "knife ec2 flavor list (options) [DEPRECATED]"
|
28
28
|
|
29
29
|
def run
|
30
|
-
ui.error("knife ec2 flavor list has been deprecated as this functionality is not provided by the AWS API the previous
|
30
|
+
ui.error("knife ec2 flavor list has been deprecated as this functionality is not provided by the AWS API the previous implementation relied upon hardcoded values that were often incorrect. For an up to date list of instance types see https://www.ec2instances.info/")
|
31
31
|
exit 1
|
32
32
|
end
|
33
33
|
end
|
@@ -708,7 +708,7 @@ class Chef
|
|
708
708
|
|
709
709
|
if winrm?
|
710
710
|
reg = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,40}$/
|
711
|
-
unless config[:connection_password]
|
711
|
+
unless config[:connection_password]&.match?(reg)
|
712
712
|
ui.error("Complexity requirements are not met. Password length should be 8-40 characters and include: 1 uppercase, 1 lowercase, 1 digit, and 1 special character")
|
713
713
|
exit 1
|
714
714
|
end
|
@@ -1325,8 +1325,7 @@ class Chef
|
|
1325
1325
|
require "openssl"
|
1326
1326
|
private_key = OpenSSL::PKey::RSA.new(key)
|
1327
1327
|
encrypted_password = Base64.decode64(encoded_password)
|
1328
|
-
|
1329
|
-
password
|
1328
|
+
private_key.private_decrypt(encrypted_password)
|
1330
1329
|
end
|
1331
1330
|
|
1332
1331
|
def check_windows_password_available(server_id)
|
@@ -1347,7 +1346,7 @@ class Chef
|
|
1347
1346
|
data = File.read(config[:ssh_identity_file])
|
1348
1347
|
config[:connection_password] = decrypt_admin_password(response.password_data, data)
|
1349
1348
|
else
|
1350
|
-
print "\n#{ui.color("
|
1349
|
+
print "\n#{ui.color("Fetching instance details: \n", :magenta)}"
|
1351
1350
|
end
|
1352
1351
|
else
|
1353
1352
|
ui.error("Cannot find SSH Identity file, required to fetch dynamically generated password")
|
data/lib/knife-ec2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|