cloudstrap 0.38.5.pre → 0.38.17.pre
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/lib/cloudstrap/bootstrap_agent.rb +6 -6
- data/lib/cloudstrap/config.rb +30 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d4b381bdb8dd6500760236de3105bee2da803ec
|
4
|
+
data.tar.gz: 9fb538832b1b614c90badb2590b26952ed3c317e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1ce90d3b6f056b0929e20e69d5930fe5657450588fa00571bcd8d7953c95a4fe4bf6f65fbe4cc599da1ff61881d3377318c2f476662934dc8eed22a789cee9a
|
7
|
+
data.tar.gz: 0ce9eb6abf436d78ea4c6391060d3da4b009b24a51b1b8cbf5787f42e0e89215d6c65495b6f56104d31698499e84fae79d02e9894f0d25cb532ced2c2ff24226
|
@@ -392,12 +392,12 @@ module Cloudstrap
|
|
392
392
|
bootstrap_properties
|
393
393
|
.define('Provider', 'AWS')
|
394
394
|
.define('KeepTerraform', 'true')
|
395
|
-
.define('
|
396
|
-
.define('
|
397
|
-
.define('
|
398
|
-
.define('
|
399
|
-
.define('
|
400
|
-
.define('
|
395
|
+
.define('AWS.NodeInstanceType', config.node_instance_type)
|
396
|
+
.define('AWS.MasterInstanceType', config.master_instance_type)
|
397
|
+
.define('AWS.GlusterFSInstanceType', config.gluster_instance_type)
|
398
|
+
.define('NodeCount', config.node_count)
|
399
|
+
.define('MasterCount', config.master_count)
|
400
|
+
.define('GlusterNodeCount', config.gluster_count)
|
401
401
|
.define('AWS.Region', config.region)
|
402
402
|
.define('AWS.AvailabilityZones', public_availability_zone)
|
403
403
|
.define('AWS.PublicSubnetIDsAndAZ', [public_subnet, public_availability_zone].join(':'))
|
data/lib/cloudstrap/config.rb
CHANGED
@@ -51,6 +51,36 @@ module Cloudstrap
|
|
51
51
|
lookup(:instance_type) { 't2.micro' }
|
52
52
|
end
|
53
53
|
|
54
|
+
Contract None => String
|
55
|
+
def node_instance_type
|
56
|
+
lookup(:node_instance_type) { 'm4.xlarge' }
|
57
|
+
end
|
58
|
+
|
59
|
+
Contract None => String
|
60
|
+
def master_instance_type
|
61
|
+
lookup(:master_instance_type) { 't2.medium' }
|
62
|
+
end
|
63
|
+
|
64
|
+
Contract None => String
|
65
|
+
def gluster_instance_type
|
66
|
+
lookup(:gluster_instance_type) { 't2.medium' }
|
67
|
+
end
|
68
|
+
|
69
|
+
Contract None => Or[Num, String]
|
70
|
+
def node_count
|
71
|
+
lookup(:node_count) { '3' }.to_s
|
72
|
+
end
|
73
|
+
|
74
|
+
Contract None => Or[Num, String]
|
75
|
+
def master_count
|
76
|
+
lookup(:master_count) { '3' }.to_s
|
77
|
+
end
|
78
|
+
|
79
|
+
Contract None => Or[Num, String]
|
80
|
+
def gluster_count
|
81
|
+
lookup(:gluster_count) { '2' }.to_s
|
82
|
+
end
|
83
|
+
|
54
84
|
Contract None => String
|
55
85
|
def ssh_dir
|
56
86
|
lookup(:ssh_dir) { [workdir, '.ssh'].join('/') }
|