Commit Graph

45 Commits

Author SHA1 Message Date
David Gageot b995a4d65a FIX #2561 SSH pubkey should have username comment
Signed-off-by: David Gageot <david@gageot.net>
2015-12-15 11:12:53 +01:00
David Gageot 82edc1d174 FIX #1432 open all the ports need for google driver
Signed-off-by: David Gageot <david@gageot.net>
2015-12-10 14:20:46 +01:00
David Gageot 58b4cce392 Remove dead code and other cosmetic changes
Signed-off-by: David Gageot <david@gageot.net>
2015-12-10 14:20:46 +01:00
David Gageot ec76843e03 Cosmetics
Signed-off-by: David Gageot <david@gageot.net>
2015-11-30 14:24:58 +01:00
David Gageot fea0dcb3da Simpler error message
Signed-off-by: David Gageot <david@gageot.net>
2015-11-30 14:24:58 +01:00
David Gageot 77b7734404 Simplify code
Signed-off-by: David Gageot <david@gageot.net>
2015-11-30 14:24:58 +01:00
David Gageot 865133aa40 Update Google Driver dependencies
Signed-off-by: David Gageot <david@gageot.net>
2015-11-23 17:47:17 +01:00
root d1712e0cd3 Introduced a new flag for google driver:
--google-use-internal-ip

Signed-off-by: Mariusz Woloszyn <emsi@EmsiOSX.dom.qpqp01.pl>
2015-11-04 09:10:29 +00:00
aperepel 914ccb6968 Fixes #1243 Custom GCE images support
Signed-off-by: Andrew Grande <aprepel@gmail.com>

Signed-off-by: David Gageot <david@gageot.net>
2015-10-29 11:11:32 +01:00
David Gageot 77c2bbcdd2 FIX #2023 and #1061 Use google default authentication
Signed-off-by: David Gageot <david@gageot.net>
2015-10-28 22:16:22 +01:00
David Gageot 264ca68902 Fix #1972 Google drive is broken because of tags
Signed-off-by: David Gageot <david@gageot.net>
2015-10-14 09:25:44 +02:00
Nathan LeClaire b5927f10c4 Make libmachine usable by outside world
- Clear out some cruft tightly coupling libmachine to filestore

- Comment out drivers other than virtualbox for now

- Change way too many things

- Mostly, break out the code to be more modular.

- Destroy all traces of "provider" in its current form.  It will be
brought back as something more sensible, instead of something which
overlaps in function with both Host and Store.

- Fix mis-managed config passthru

- Remove a few instances of state stored in env vars

- This should be explicitly communicated in Go-land, not through the
shell.

- Rename "store" module to "persist"

- This is done mostly to avoid confusion about the fact that a concrete
instance of a "Store" interface is oftentimes referred to as "store" in
the code.

- Rip out repetitive antipattern for getting store

- This replaces the previous repetive idiom for getting the cert info, and
consequently the store, with a much less repetitive idiom.

- Also, some redundant methods in commands.go for accessing hosts have
either been simplified or removed entirely.

- First steps towards fixing up tests

- Test progress continues

- Replace unit tests with integration tests

- MAKE ALL UNIT TESTS PASS YAY

- Add helper test files

- Don't write to disk in libmachine/host

- Heh.. coverage check strikes again

- Fix remove code

- Move cert code around

- Continued progress: simplify Driver

- Fixups and make creation work with new model

- Move drivers module inside of libmachine

- Move ssh module inside of libmachine

- Move state module to libmachine

- Move utils module to libmachine

- Move version module to libmachine

- Move log module to libmachine

- Modify some constructor methods around

- Change Travis build dep structure

- Boring gofmt fix

- Add version module

- Move NewHost to store

- Update some boring cert path infos to make API easier to use

- Fix up some issues around the new model

- Clean up some cert path stuff

- Don't use shady functions to get store path :D

- Continue artifact work

- Fix silly machines dir bug

- Continue fixing silly path issues

- Change up output of vbm a bit

- Continue work to make example go

- Change output a little more

- Last changes needed to make create finish properly

- Fix config.go to use libmachine

- Cut down code duplication and make both methods work with libmachine

- Add pluggable logging implementation

- Return error when machine already in desired state

- Update example to show log method

- Fix file:// bug

- Fix Swarm defaults

- Remove unused TLS settings from Engine and Swarm options

- Remove spurious error

- Correct bug detecting if migration was performed

- Fix compilation errors from tests

- Fix most of remaining test issues

- Fix final silly bug in tests

- Remove extraneous debug code

- Add -race to test command

- Appease the gofmt

- Appease the generate coverage

- Making executive decision to remove Travis coverage check

In the early days I thought this would be a good idea because it would
encourage people to write tests in case they added a new module.  Well,
in fact it has just turned into a giant nuisance and made refactoring
work like this even more difficult.

- Move Get to Load
- Move HostListItem code to CLI

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-09-23 12:30:15 -07:00
Nathan LeClaire 5e698f3d95 Merge pull request #1631 from dgageot/features/startstop
FIX #676 - Support Start/Stop GCE instance
2015-09-15 11:54:51 -07:00
David Gageot 66078be1e5 FIX #1297 - Support additional tags on GCE
Signed-off-by: David Gageot <david@gageot.net>
2015-09-15 06:56:52 +02:00
David Gageot bb45f83319 FIX #676 - Support Start/Stop GCE instance
Signed-off-by: David Gageot <david@gageot.net>
2015-09-15 06:54:53 +02:00
Olivier Gambier 9d60bb7c73 Fmt fixes
Signed-off-by: Olivier Gambier <viapanda@gmail.com>
2015-09-10 18:27:13 -07:00
David Gageot 8aa5e0771a Support static IP by name on GCE
Signed-off-by: David Gageot <david@gageot.net>
2015-07-19 16:31:05 +02:00
David Gageot 8ce161e830 Support Preemptiple instances on GCE
Signed-off-by: David Gageot <david@gageot.net>
2015-07-18 08:18:35 +02:00
David Gageot e5a7059289 Support static IP on GCE
Signed-off-by: David Gageot <david@gageot.net>
2015-07-18 08:17:50 +02:00
Dave Henderson 3d002187fe Refactoring drivers to embed drivers.DefaultDriver
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2015-07-07 11:24:00 -04:00
Nathan LeClaire 2f78b7f92a Move code to use SSH "backends"
Default to shelling out to SSH when available.

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-05-19 15:02:57 -07:00
Nathan LeClaire 142ffadc2c Refactor logging to focus on simple STDOUT/STDERR
This also lays the foundation for the possibility of log drivers in the
future, if it is decided that is a direction to pursue.

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-04-30 12:04:52 -07:00
Evan Hazlett 31b1eb0875 gce: fix for instance not being refreshed on create
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-04-29 09:54:08 -04:00
zhee 5fe9adf881 Update GCE imageName to v20150316
Signed-off-by: Koichi Shiraishi <zcheeee@gmail.com>
2015-04-29 05:34:15 +09:00
zhee 7443980c26 Support "--google-disk-type" flag for google driver
Signed-off-by: Koichi Shiraishi <zcheeee@gmail.com>
2015-04-26 04:38:18 +09:00
Simon Thulbourn 709b0a84e3 Add SSH client
Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2015-04-21 15:37:09 +01:00
Vincent Bernat fbb8898914 drivers/google: don't wait for SSH to be ready
Waiting for SSH is done in libmachine. There are some additional steps
after waiting for SSH but none of them seem to require SSH to be ready
to be executed.

Signed-off-by: Vincent Bernat <Vincent.Bernat@exoscale.ch>
2015-04-21 07:11:41 +02:00
Evan Hazlett ec91959979
google: updated to new driver interface
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-03-09 23:18:18 -04:00
Evan Hazlett 0b4d58d554 google: enable specifying an auth token
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-27 12:31:03 -05:00
Evan Hazlett 66ed197149 Merge pull request #589 from saturnism/google-scopes
Add google-scopes option to specify Compute Engine scopes
2015-02-24 20:45:05 -05:00
Evan Hazlett 54f36078f4 do not show debug for docker install by default; refactor install out of drivers
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-23 17:14:32 -05:00
Ray Tsang 64544bd1c0 Add google-scopes option to specify Compute Engine scopes
Signed-off-by: Ray Tsang <saturnism@gmail.com>
2015-02-21 17:21:12 -05:00
Evan Hazlett a949e12b6e store swarm config in driver; vendor Godeps; generate swarm token
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-20 13:07:21 -08:00
Evan Hazlett 730f0dc68c google: configure firewall if swarm master
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-20 13:07:20 -08:00
Evan Hazlett 557d03a849 tls fixes to support swarm; test updates; improved provisioning logging
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-20 13:07:20 -08:00
Misha Brukman a9e468cf67 Update GCE VM images to latest release versions.
Signed-off-by: Misha Brukman <mbrukman@google.com>
2015-02-16 15:15:34 -05:00
Jamie Furness d1ccb16a5c Need to sudo to install the package as well as perform update.
Signed-off-by: Jamie Furness <jamie@jamierf.co.uk>
2015-02-11 15:35:38 +00:00
Ray Tsang 56d832dd5c Added a Disk Size parameter for Google Compute Engine.
Signed-off-by: Ray Tsang <saturnism@gmail.com>
2015-02-09 13:04:48 -05:00
Evan Hazlett 75f79ed25e use ubuntu 14.04 for remaining drivers
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-23 17:08:29 -05:00
Evan Hazlett 0613df5f70 use 14.04 for google
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-23 17:08:07 -05:00
Evan Hazlett f5ba0dc1d7
save IP to vmwarefusion config; google driver cleanup
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-18 03:29:44 -05:00
Evan Hazlett 090e3328c8 refactor b2d retrieval for fusion/vbox
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-15 22:56:25 -05:00
Evan Hazlett 4a47ce01fe updated google driver; added StartDocker and StopDocker to driver
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-15 22:56:24 -05:00
Simon Thulbourn 861b16dba9 add machine name to VM name and hostname
This work sets the machine name in the Cloud API or Hypervisor. As well
as setting the hostname inside the VM.

I've added the machine name to the NewDriver func to allow for
identification by Cloud APIs and for the driver package.

Each driver will attempt to set the hostname for the VM, except for
Azure, which sets it based on the DNS name.

Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2015-01-12 16:46:00 +00:00
Johan Euphrosine 47004d74d6 drivers: rename googlecomputeengine to google
Signed-off-by: Johan Euphrosine <proppy@google.com>
2014-12-18 11:28:55 -08:00