vagrant-gq 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95b7326e9122dddb90b503a3c8b2d44ae1db5f7b
4
- data.tar.gz: 2b8cbadc9c5fd36d210dcb829c9fea345b897d5a
3
+ metadata.gz: f2a1bd1157bf3ea8feff9f1a7b25b257f23c4ac1
4
+ data.tar.gz: db6cd32f46ae91fd45bbcff96384dfc4839856c2
5
5
  SHA512:
6
- metadata.gz: 04f8922a61965f1718456716d31e79eff96800696acfe5a8e584026fc5f4901c9952e6913e74d73b0e9b2e5681eba50b07601b6478b6c7cd029c2efa3aa9ac89
7
- data.tar.gz: 7119e7d95520fd4f2003c9043e3844e96c0008317599dbb861bb0fa887ce1de88b65aadd7616279dcfeabbf3856790f2cc9502cdbd8b4393f46bb3483bd41c4c
6
+ metadata.gz: c7b71142064c96ec8f91233522b75d7d1fb1ad5054305035599a2362e9256fbe168cd9515a50ad464853d3e9eafbbc611b98978600fcbec269b6af0653b29619
7
+ data.tar.gz: 9ceb560d9cc9bbce9e9501790c35b90e8456689db2d1701eaf2cfb09aa2370e622260d5e8696a2bd8ca38fdd1fc7a1a82af0512414ada8b7b81223b007708686
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Vagrant GQ Provider
1
+ # Vagrant GQ Provider
2
2
 
3
3
  This is a [Vagrant](http://www.vagrantup.com) 1.2+ plugin that adds a [GreenQloud](http://www.greenqloud.com)
4
4
  provider to Vagrant, allowing Vagrant to control and provision machines in GreenQloud.
@@ -27,8 +27,9 @@ $ vagrant up --provider=gq
27
27
  ...
28
28
  ```
29
29
 
30
- Of course prior to doing this, you'll need to obtain an GreenQloud compatible
31
- box file for Vagrant.
30
+ Prior to doing this, you'll need to obtain a GreenQloud compatible
31
+ box file for Vagrant. See the Quick Start below for an example using the
32
+ greenqloud-generic.box.
32
33
 
33
34
  ## Quick Start
34
35
 
@@ -56,9 +57,9 @@ end
56
57
 
57
58
  And then run `vagrant up --provider=gq`.
58
59
 
59
- This will start an Ubuntu 14.04 instance in the within your account.
60
- And assuming your SSH information was filled in properly within your
61
- Vagrantfile, SSH and provisioning will work as well.
60
+ This will start a Ubuntu 14.04 instance within your account. Assuming
61
+ your SSH information was filled in properly, SSH and provisioning will
62
+ work as well.
62
63
 
63
64
  Note that normally a lot of this boilerplate is encoded within the box
64
65
  file, but the box file used for the quick start, the "generic" box, has
@@ -84,8 +85,6 @@ This provider exposes quite a few provider-specific configuration options:
84
85
 
85
86
  * `access_key_id` - The access key for accessing GreenQloud
86
87
  * `qmi` - The QMI id to boot, such as "qmi-12345678"
87
- * `availability_zone` - The availability zone within the region to launch
88
- the instance. If nil, it will use the default set by Amazon.
89
88
  * `instance_ready_timeout` - The number of seconds to wait for the instance
90
89
  to become "ready" in GreenQloud. Defaults to 120 seconds.
91
90
  * `instance_type` - The type of instance, such as "m1.small". The default
@@ -94,7 +93,6 @@ This provider exposes quite a few provider-specific configuration options:
94
93
  which support it.
95
94
  * `secret_access_key` - The secret access key for accessing GreenQloud
96
95
  * `security_groups` - An array of security groups for the instance.
97
- * `tags` - A hash of tags to set on the machine.
98
96
 
99
97
  These can be set like typical provider-specific configuration:
100
98
 
@@ -126,26 +124,7 @@ the remote machine over SSH.
126
124
  This is good enough for all built-in Vagrant provisioners (shell,
127
125
  chef, and puppet) to work!
128
126
 
129
- ## Other Examples
130
-
131
- ### Tags
132
-
133
- To use tags, simply define a hash of key/value for the tags you want to associate to your instance, like:
134
-
135
- ```ruby
136
- Vagrant.configure("2") do |config|
137
- # ... other stuff
138
-
139
- config.vm.provider :gq do |gq|
140
- gq.tags = {
141
- 'Name' => 'Some Name',
142
- 'Some Key' => 'Some Value'
143
- }
144
- end
145
- end
146
- ```
147
-
148
- ### User data
127
+ ## User data
149
128
 
150
129
  You can specify user data for the instance being booted.
151
130
 
data/Vagrantfile.stock ADDED
@@ -0,0 +1,12 @@
1
+ Vagrant.configure("2") do |config|
2
+ config.vm.box = "greenqloud-generic"
3
+ config.vm.box_url = "https://vagrant.s.greenqloud.com/greenqloud-generic.box"
4
+
5
+ config.vm.provider "gq" do |gq|
6
+ gq.qmi = "qmi-60ce3bb8"
7
+ gq.keypair_name = "default"
8
+ config.ssh.username = "ubuntu"
9
+ config.ssh.private_key_path = "/Users/ragnarb/.gq-ragnarb/default_ssh.id"
10
+ end
11
+ end
12
+
@@ -92,7 +92,7 @@ module VagrantPlugins
92
92
  env[:ui].warn(I18n.t("vagrant_gq.warn_ssh_access")) unless allows_ssh_port?(env, security_groups, subnet_id)
93
93
 
94
94
  server = env[:gq_compute].servers.create(options)
95
- rescue Fog::Compute::GQ::NotFound => e
95
+ rescue Fog::Compute::AWS::NotFound => e
96
96
  # Invalid subnet doesn't have its own error so we catch and
97
97
  # check the error message here.
98
98
  if e.message =~ /subnet ID/
@@ -101,7 +101,7 @@ module VagrantPlugins
101
101
  end
102
102
 
103
103
  raise
104
- rescue Fog::Compute::GQ::Error => e
104
+ rescue Fog::Compute::AWS::Error => e
105
105
  raise Errors::FogError, :message => e.message
106
106
  rescue Excon::Errors::HTTPStatusError => e
107
107
  raise Errors::InternalFogError,
@@ -49,7 +49,7 @@ module VagrantPlugins
49
49
  timeout: region_config.instance_ready_timeout
50
50
  end
51
51
  end
52
- rescue Fog::Compute::GQ::Error => e
52
+ rescue Fog::Compute::AWS::Error => e
53
53
  raise Errors::FogError, :message => e.message
54
54
  end
55
55
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GQ
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-gq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GreenQloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-19 00:00:00.000000000 Z
11
+ date: 2014-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog
@@ -86,11 +86,13 @@ executables: []
86
86
  extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
+ - ".Vagrantfile.swp"
89
90
  - ".gitignore"
90
91
  - Gemfile
91
92
  - LICENSE
92
93
  - README.md
93
94
  - Rakefile
95
+ - Vagrantfile.stock
94
96
  - example_box/README.md
95
97
  - example_box/metadata.json
96
98
  - greenqloud-generic.box