capistrano-hivequeen 7.7.1 → 7.7.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af7a43b319d233fe8e1d7ce640d2d03686737690e3c62452900da71e810a0426
|
4
|
+
data.tar.gz: ee0fe0a8e640d18180e208217587b4e8d9705665a4b182490293294c35f26330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '096bb90acc29cb9aefaa1095546aa909be7b526f09893e0642f12e97d16611e9440aabc4d415f5ef391c6684322ee169adf7b7f2d1561c824c6d22e303ebd162'
|
7
|
+
data.tar.gz: ca96fa3953d785f0b3aeca107d86b386deb7f3f4be7a66344c6216e955a0ad6d9fad5bb82c76b7b4e3622effddb66c90de5cecc6bbbd67ef29ce3fb86825a378
|
@@ -4,7 +4,10 @@ class HiveQueen
|
|
4
4
|
end
|
5
5
|
|
6
6
|
def self.ec2_instance_connect_client
|
7
|
-
@ec2_instance_connect_client ||= Aws::EC2InstanceConnect::Client.new
|
7
|
+
@ec2_instance_connect_client ||= Aws::EC2InstanceConnect::Client.new(
|
8
|
+
retry_limit: 5,
|
9
|
+
retry_backoff: -> (c) { sleep(5) },
|
10
|
+
)
|
8
11
|
end
|
9
12
|
|
10
13
|
def self.ec2_instance_connect(*private_dns)
|
@@ -12,12 +15,12 @@ class HiveQueen
|
|
12
15
|
ssh_public_key = File.read(File.expand_path('~/.ssh/ksr_ed25519.pub'))
|
13
16
|
|
14
17
|
# Get SSH bastion instance(s) from Name tag
|
15
|
-
ssh_params = { filters: [{ name: 'tag:Name', values: %w[ssh-bastion] }] }
|
18
|
+
ssh_params = { filters: [{ name: 'tag:Name', values: %w[ssh-bastion] }, {name: 'instance-state-name', values: %w[running]}] }
|
16
19
|
logger.trace("ec2:DescribeInstances #{ssh_params.to_json}")
|
17
20
|
bastions = ec2_client.describe_instances(**ssh_params).reservations.map(&:instances).flatten
|
18
21
|
|
19
22
|
# Get EC2 instances from private DNS name
|
20
|
-
ec2_params = { filters: [{ name: 'network-interface.private-dns-name', values: private_dns }] }
|
23
|
+
ec2_params = { filters: [{ name: 'network-interface.private-dns-name', values: private_dns }, {name: 'instance-state-name', values: %w[running]}] }
|
21
24
|
logger.trace("ec2:DescribeInstances #{ec2_params.to_json}")
|
22
25
|
instances = ec2_client.describe_instances(**ec2_params).reservations.map(&:instances).flatten
|
23
26
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-hivequeen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.7.
|
4
|
+
version: 7.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Suggs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-ec2
|