cloudstrap 0.29.7.pre → 0.30.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cloudstrap +1 -0
- data/lib/cloudstrap/amazon/ec2.rb +10 -0
- data/lib/cloudstrap/bootstrap_agent.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 173f1853fd9cfdc3072b31418b6cbbcfefe97af3
|
4
|
+
data.tar.gz: a70bd6691c4589011deb9068ca159f9522945803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a081b45bc9b861e7db8e2133d5d6fdb72f6ef7a736cf0c132c0bd59f7f0ba1db9cc216a843069ddde9ddaff612179d1fe0944284ada4aafccdb06df95c79b26
|
7
|
+
data.tar.gz: 23f3fc13ba82567ea96237ad2640f3f98d3dd1930a6860eb4570044ac576709d905e7502cf0a93cf6f1d908415a7f17542a3c7a0923a95cb1f6317e98a67c985
|
data/bin/cloudstrap
CHANGED
@@ -64,6 +64,7 @@ BOOTSTRAP_WITHOUT_HUMAN_OVERSIGHT=#{!agent.requires_human_oversight?}
|
|
64
64
|
# Additional Information
|
65
65
|
# These do not need configuration, and are presented as a debugging checklist
|
66
66
|
|
67
|
+
# DNS Support Enabled for VPC? #{agent.enable_dns_support}
|
67
68
|
# Public IPs Enabled in Public Subnet? #{agent.enable_public_ips}
|
68
69
|
# Gateway Attached to VPC? #{agent.attach_gateway}
|
69
70
|
# Route to Internet via Gateway? #{agent.default_route}
|
@@ -15,6 +15,16 @@ module StackatoLKG
|
|
15
15
|
@vpcs = call_api(:describe_vpcs).vpcs
|
16
16
|
end
|
17
17
|
|
18
|
+
Contract String => Bool
|
19
|
+
def vpc_supports_dns?(vpc_id)
|
20
|
+
call_api(:describe_vpc_attribute, vpc_id: vpc_id, attribute: "enableDnsSupport").enable_dns_support.value
|
21
|
+
end
|
22
|
+
|
23
|
+
Contract String => Bool
|
24
|
+
def enable_dns_support(vpc_id)
|
25
|
+
call_api(:modify_vpc_attribute, vpc_id: vpc_id, enable_dns_support: { value: true }).successful?
|
26
|
+
end
|
27
|
+
|
18
28
|
Contract None => ArrayOf[::Aws::EC2::Types::Subnet]
|
19
29
|
def subnets
|
20
30
|
@subnets ||= subnets!
|
@@ -237,6 +237,11 @@ module StackatoLKG
|
|
237
237
|
find_vpc || create_vpc
|
238
238
|
end
|
239
239
|
|
240
|
+
Contract None => Bool
|
241
|
+
def enable_dns_support
|
242
|
+
ec2.vpc_supports_dns?(vpc) || ec2.enable_dns_support(vpc)
|
243
|
+
end
|
244
|
+
|
240
245
|
Contract None => String
|
241
246
|
def create_jumpbox
|
242
247
|
upload_ssh_key
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.1.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Olstrom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|