stackmate 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -77,7 +77,7 @@ zoneid: b3409835-02b0-4d21-bba4-1f659402117e
77
77
  ```
78
78
 
79
79
  ### CloudStack Samples
80
- CloudStack samples use the CloudStack namespace. These templates typically require the zone id, service offering id and template id as input parameters
80
+ CloudStack samples use the CloudStack namespace. These templates typically require the zone id, service offering id and template id as input parameters. These ids are passed directly to the `stackmate` command instead of being set in the `local.yml` file, see usage below.
81
81
 
82
82
 
83
83
  ## Usage Example
@@ -97,6 +97,12 @@ $ cloudmonkey
97
97
  bin/stackmate MYSTACK01 --template-file=templates/LAMP_Single_Instance.template -p "DBName=cloud;DBUserName=cloud;SSHLocation=75.75.75.0/24;DBUsername=cloud;DBPassword=cloud;DBRootPassword=cloud;KeyName=Foo"
98
98
  ```
99
99
 
100
+ * Create a LAMP stack (CloudStack example)
101
+
102
+ ```bash
103
+ bin/stackmate MYSTACK01 --template-file=templates/CloudStack/LAMP_Single_Instance_CloudStack.template -p "DBName=cloud;DBUserName=cloud;SSHLocation=0.0.0.0/24;DBUsername=cloud;DBPassword=cloud;DBRootPassword=cloud;KeyName=exoscale;zoneid=1128bd56-b4d9-4ac6-a7b9-c715b187ce11;templateid=35a37ccd-5bf6-4c5f-a9a1-1884f99e1fd3;serviceofferingid=b6cd1ff5-3a2f-4e9d-a4d1-8988c1191fe8"
104
+ ```
105
+
100
106
  * If everything is successful, stackmate will hang after deploying the security groups and vms.
101
107
  You should see an output like this:
102
108
 
@@ -46,8 +46,8 @@ module StackMate
46
46
  url = "#{@api_url}?#{data}&signature=#{signature}"
47
47
  uri = URI.parse(url)
48
48
  http = Net::HTTP.new(uri.host, uri.port)
49
- # http.use_ssl = @use_ssl
50
- # http.verify_mode = OpenSSL::SSL::VERIFY_NONE
49
+ http.use_ssl = uri.scheme == 'https'
50
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
51
51
  request = Net::HTTP::Get.new(uri.request_uri)
52
52
 
53
53
  http.request(request)
@@ -77,4 +77,4 @@ module StackMate
77
77
  json[resp_title]
78
78
  end
79
79
  end
80
- end
80
+ end
@@ -80,7 +80,7 @@ module StackMate
80
80
  #resp = @client.send(cmd, args)
81
81
  resp = @client.api_call(cmd,args)
82
82
  jobid = resp['jobid'] if resp
83
- resp = api_poll(jobid, 3, 3) if jobid
83
+ resp = api_poll(jobid, 60, 5) if jobid
84
84
  return resp
85
85
  rescue => e
86
86
  logger.error("Failed to make request #{cmd} to CloudStack server while creating resource #{@name}")
@@ -1,3 +1,3 @@
1
1
  module StackMate
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackmate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-26 00:00:00.000000000 Z
12
+ date: 2013-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json