cloudstrap 0.38.5.pre → 0.38.17.pre

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
  SHA1:
3
- metadata.gz: e84956e46d1746ebc9f0661f4e6ae10f7451c3dc
4
- data.tar.gz: 945284d7835c69dae42b8494081a69494b028ccb
3
+ metadata.gz: 6d4b381bdb8dd6500760236de3105bee2da803ec
4
+ data.tar.gz: 9fb538832b1b614c90badb2590b26952ed3c317e
5
5
  SHA512:
6
- metadata.gz: 0c10824b505e98b796d0cd52286306603268a3378caee9e8d2955b0f387783d67c396656e77c7351beb24dbac1582c82fe824c1081cc90d306d84023128a5b6c
7
- data.tar.gz: 31e4e8417fdfb3103713034fac0238d3f9fef2803fdf4b79f43c25cf2b2ab2deeab92e8e617c14d97a6decd3c169d2001c9e22e4777f19eb8342fd638902eeb2
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('NodeCount', '3')
396
- .define('MasterCount', '1')
397
- .define('GlusterNodeCount', '2')
398
- .define('AWS.NodeInstanceType', 'm4.xlarge')
399
- .define('AWS.MasterInstanceType', 't2.medium')
400
- .define('AWS.GlusterFSInstanceType', 't2.medium')
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(':'))
@@ -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('/') }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.5.pre
4
+ version: 0.38.17.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom