lib/cloudstrap/config.rb in cloudstrap-0.38.5.pre vs lib/cloudstrap/config.rb in cloudstrap-0.38.17.pre
- old
+ new
@@ -50,9 +50,39 @@
def instance_type
lookup(:instance_type) { 't2.micro' }
end
Contract None => String
+ def node_instance_type
+ lookup(:node_instance_type) { 'm4.xlarge' }
+ end
+
+ Contract None => String
+ def master_instance_type
+ lookup(:master_instance_type) { 't2.medium' }
+ end
+
+ Contract None => String
+ def gluster_instance_type
+ lookup(:gluster_instance_type) { 't2.medium' }
+ end
+
+ Contract None => Or[Num, String]
+ def node_count
+ lookup(:node_count) { '3' }.to_s
+ end
+
+ Contract None => Or[Num, String]
+ def master_count
+ lookup(:master_count) { '3' }.to_s
+ end
+
+ Contract None => Or[Num, String]
+ def gluster_count
+ lookup(:gluster_count) { '2' }.to_s
+ end
+
+ Contract None => String
def ssh_dir
lookup(:ssh_dir) { [workdir, '.ssh'].join('/') }
end
Contract None => String