vagrant-google 0.2.0.rc1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/README.md +25 -14
- data/lib/vagrant-google/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe5f3e44c0d6f385013f598e20b0d3683524606d
|
4
|
+
data.tar.gz: 3b8dbc1296d1eefee8e997dd08d509efc6de6800
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 485a1fe686e3229a44de92a9878c980402f389fcd770f807f61a1a71950d053f6c2d80d8511aa87b41978f03286aae0b687834046ac36ee6d7d97d57918720df
|
7
|
+
data.tar.gz: e64c5ae4d1cdba1671aaaf04a06879bea9425870cb2cf75708689a316e2bb6fb863529c03a422020a03b72357df38a7a9e567ecf0631907322986d5acca73627
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
# 0.
|
1
|
+
# 0.2.0 (July 2015)
|
2
2
|
|
3
3
|
* Added support for service account definitions [tcr]
|
4
4
|
* Added support for preemptible instances [jcdang]
|
5
5
|
* Implemented auto_restart and on_host_maintenance options [jcdang]
|
6
|
+
* Implemented vagrant halt and reload actions [temikus]
|
6
7
|
* Added support for IP address specification by name [temikus]
|
7
8
|
* Instance name now defaults to time + uuid [temikus]
|
8
9
|
* Removed legacy rsync code, switched to Vagrant built-in SyncedFolders [temikus]
|
9
|
-
* Implemented vagrant halt and reload actions [temikus]
|
10
10
|
* Switched to fog-google metagem [temikus]
|
11
11
|
* Added a linter and custom acceptance tests [temikus]
|
12
12
|
* Updated documentation and examples [mbrukman, temikus]
|
data/README.md
CHANGED
@@ -46,8 +46,8 @@ Service Account for API Access.
|
|
46
46
|
If prompted, review and agree to the terms of service.
|
47
47
|
1. While still in the Developers Console, go to `API & AUTH`, `Credentials`
|
48
48
|
section and click the `Create new Client ID` button. In the pop-up dialog,
|
49
|
-
select the `Service Account` radio button and the click the
|
50
|
-
button.
|
49
|
+
select the `Service Account` radio button and the click the
|
50
|
+
`Create Client ID` button.
|
51
51
|
1. Make sure to download the *P12 private key* and save this file in a secure
|
52
52
|
and reliable location. This key file will be used to authorize all API
|
53
53
|
requests to Google Compute Engine.
|
@@ -56,6 +56,10 @@ Service Account for API Access.
|
|
56
56
|
with `@developer.gserviceaccount.com`) associated with the new Service
|
57
57
|
Account you just created. You will need this email address and the
|
58
58
|
location of the private key file to properly configure this Vagrant plugin.
|
59
|
+
1. Add the SSH key you're going to use to GCE Metadata in `Compute` ->
|
60
|
+
`Compute Engine` -> `Metadata` section of the console, `SSH Keys` tab. (Read
|
61
|
+
the [SSH Support](https://github.com/mitchellh/vagrant-google#ssh-support)
|
62
|
+
readme section for more information.)
|
59
63
|
|
60
64
|
## Quick Start
|
61
65
|
|
@@ -92,9 +96,9 @@ end
|
|
92
96
|
And then run `vagrant up --provider=google`.
|
93
97
|
|
94
98
|
This will start a Debian 7 (Wheezy) instance in the `us-central1-f` zone,
|
95
|
-
with an `n1-standard-1` machine, and the `"default"` network within your
|
96
|
-
And assuming your SSH information (see below) was filled in properly
|
97
|
-
your Vagrantfile, SSH and provisioning will work as well.
|
99
|
+
with an `n1-standard-1` machine, and the `"default"` network within your
|
100
|
+
project. And assuming your SSH information (see below) was filled in properly
|
101
|
+
within your Vagrantfile, SSH and provisioning will work as well.
|
98
102
|
|
99
103
|
Note that normally a lot of this boilerplate is encoded within the box file,
|
100
104
|
but the box file used for the quick start, the "google" box, has no
|
@@ -180,8 +184,9 @@ This provider exposes quite a few provider-specific configuration options:
|
|
180
184
|
* `on_host_maintenance` - What to do on host maintenance. Default is "MIGRATE".
|
181
185
|
* `service_accounts` or `scopes` - An array of OAuth2 account scopes for
|
182
186
|
services that the instance will have access to. Those can be both full API
|
183
|
-
scopes
|
184
|
-
|
187
|
+
scopes, just endpoint aliases (the part after `...auth/`), and `gcloud`
|
188
|
+
utility aliases, for example:
|
189
|
+
`['storage-full', 'bigquery', 'https://www.googleapis.com/auth/compute']`.
|
185
190
|
|
186
191
|
These can be set like typical provider-specific configuration:
|
187
192
|
|
@@ -251,7 +256,7 @@ See [Vagrant Synced folders: rsync](https://docs.vagrantup.com/v2/synced-folders
|
|
251
256
|
|
252
257
|
## Development
|
253
258
|
|
254
|
-
To work on the `vagrant-google` plugin, clone this repository
|
259
|
+
To work on the `vagrant-google` plugin, clone this repository, and use
|
255
260
|
[Bundler](http://gembundler.com) to get the dependencies:
|
256
261
|
|
257
262
|
```sh
|
@@ -266,8 +271,8 @@ $ bundle exec rake
|
|
266
271
|
|
267
272
|
If those pass, you're ready to start developing the plugin. You can test
|
268
273
|
the plugin without installing it into your Vagrant environment by just
|
269
|
-
creating a `Vagrantfile` in the top level of this directory (it is
|
270
|
-
|
274
|
+
creating a `Vagrantfile` in the top level of this directory (it is ignored by
|
275
|
+
git), and use bundler to execute Vagrant:
|
271
276
|
|
272
277
|
```sh
|
273
278
|
$ bundle exec vagrant up --provider=google
|
@@ -278,9 +283,8 @@ $ bundle exec vagrant up --provider=google
|
|
278
283
|
**Work-in-progress:** Acceptance tests are based on vagrant-spec library which
|
279
284
|
is currently under active development so they may occasionally break.
|
280
285
|
|
281
|
-
Before you start acceptance tests, you'll need to set the authentication
|
282
|
-
|
283
|
-
Next, export your GCP authentication data:
|
286
|
+
Before you start acceptance tests, you'll need to set the authentication
|
287
|
+
shell variables accordingly:
|
284
288
|
|
285
289
|
```sh
|
286
290
|
export GOOGLE_CLIENT_EMAIL="your-google_service_account_email@developer.gserviceaccount.com"
|
@@ -291,11 +295,18 @@ export GOOGLE_SSH_USER="testuser"
|
|
291
295
|
export GOOGLE_SSH_KEY_LOCATION="/home/testuser/.ssh/id_rsa"
|
292
296
|
```
|
293
297
|
|
294
|
-
After, you can run acceptance tests by running the `run` task in `acceptance`
|
298
|
+
After, you can run acceptance tests by running the `run` task in `acceptance`
|
299
|
+
namespace:
|
295
300
|
```sh
|
296
301
|
$ bundle exec rake acceptance:run
|
297
302
|
```
|
298
303
|
|
304
|
+
**IMPORTANT NOTES**:
|
305
|
+
|
306
|
+
- Since acceptance tests spin up instances on GCE, the whole suite may take
|
307
|
+
20+ minutes to run.
|
308
|
+
- Since those are live instances, **you will be billed** for running them.
|
309
|
+
|
299
310
|
## Changelog
|
300
311
|
* See [CHANGELOG.md](https://github.com/mitchellh/vagrant-google/blob/master/CHANGELOG.md)
|
301
312
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-google
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Johnson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-07-
|
12
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog-google
|
@@ -87,10 +87,8 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- CHANGELOG.md
|
91
90
|
- Gemfile
|
92
91
|
- LICENSE
|
93
|
-
- README.md
|
94
92
|
- Rakefile
|
95
93
|
- example_boxes/README.md
|
96
94
|
- example_boxes/gce-test/Vagrantfile
|
@@ -142,6 +140,8 @@ files:
|
|
142
140
|
- vagrantfile_examples/Vagrantfile.provision_single
|
143
141
|
- vagrantfile_examples/Vagrantfile.simple
|
144
142
|
- vagrantfile_examples/Vagrantfile.zone_config
|
143
|
+
- CHANGELOG.md
|
144
|
+
- README.md
|
145
145
|
- .gitignore
|
146
146
|
- .rubocop.yml
|
147
147
|
- .rubocop_todo.yml
|