Commit Graph

126 Commits

Author SHA1 Message Date
Evan Hazlett
97aaf4e05d Merge pull request #427 from ehazlett/remove-azure-name
remove name option from azure driver
2015-01-28 11:10:42 -05:00
Evan Hazlett
b731c0ea28 remove name option from azure driver
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-28 10:45:32 -05:00
Simon Thulbourn
1727123214 Remove $ from regexp
The GetState() func now works on Windows hosts

Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2015-01-28 15:41:47 +00:00
Evan Hazlett
d5a4f2f1c4 Merge pull request #402 from ehazlett/single-tls
Update to TLS Certificates
2015-01-26 18:06:43 -05:00
Evan Hazlett
47bef782fa Merge pull request #401 from ehazlett/ec2-check-existing-keypair
add PreCreateCheck; check for existing ec2 keypair
2015-01-26 12:35:56 -05:00
Evan Hazlett
57810b298d This adds a method to the Driver: PreCreateCheck. This can be used
where you want to run some prerequisite checks before attempting to
create
the machine.  In the case of EC2, this is a check for an existing
keypair.  This can be used in the other drivers in the future as well.

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-26 11:27:12 -05:00
Simon Thulbourn
8482c7201f Adds region defaults
Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2015-01-26 16:17:18 +00:00
Evan Hazlett
9178f518e8 Merge pull request #391 from ehazlett/ec2-use-single-sg
Create / Re-use existing EC2 security group
2015-01-26 11:12:18 -05:00
Evan Hazlett
74f9bcebc7 only create ca and client cert once; create server keys each time; add serverAuth to ext usage
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-23 22:31:53 -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
be4356b7b3 used ubuntu 14.04 for DO
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-23 15:24:24 -05:00
Evan Hazlett
c25592000b update docs
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-23 00:32:27 -05:00
Evan Hazlett
834fa414b4 allow specifying sg; re-use existing sg; fix race conditions with ip assigning and eventual consistency with sgs
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-22 16:47:53 -05:00
Evan Hazlett
85f1cb9725 only authorize ec2 group if needed
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-22 16:47:52 -05:00
Evan Hazlett
ff1e232d83 use single group for ec2
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>

wip: use single sg

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-22 16:47:52 -05:00
Brian Goff
b1d1c80a76 Use TLS stuff instead
Thanks @ehazlett

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2015-01-19 12:32:32 -05:00
Brian Goff
8d8c6fe71d Add softlayer driver
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2015-01-19 12:29:56 -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
0c8ef0abe5 updated tests
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-15 22:56:25 -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
3212d0c509 tls for openstack/rackspace
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-15 22:56:25 -05:00
Evan Hazlett
fbce999d22 updated godeps; fixed cert issue date bug
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-15 22:56:25 -05:00
Evan Hazlett
e2f579d376 TLS for vsphere
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-15 22:56:25 -05:00
Evan Hazlett
35e0351889 tls support for vcloud air
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-15 22:56:24 -05:00
Evan Hazlett
946db8a08d standard tls for azure; fixed connection issue with azure
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-15 22:56:24 -05:00
Evan Hazlett
9664d68889 rebase and updated fusion to work with standard docker b2d 1.4.1
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-15 22:56:24 -05:00
Evan Hazlett
fc2e5f278b configure opts for b2d
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-15 22:56:24 -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
Evan Hazlett
4534944f6a use tls for auth
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-15 22:56:24 -05:00
Evan Hazlett
a226849168 Merge pull request #73 from ggiamarchi/openstack-driver
OpenStack & Rackspace drivers
2015-01-15 09:13:06 -05:00
Simon Thulbourn
1d958f5b63 change sign to ver 4 to support newer regions
Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2015-01-14 23:17:54 +00:00
Guillaume Giamarchi
9d91f458f5 Set machine hostname
Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2015-01-14 23:20:23 +01:00
Ash Wilson
e44b840e3a OpenStack driver enhancements
* Log machine creation.
* Typo in an error message 💅
* Shelve docker install output in /var/log.
* Improve the docker installation error message. Also, keep it from interrupting the host creation, so that you can actually run `machine ssh` or `machine rm` on the host afterward.

Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 23:15:32 +01:00
Guillaume Giamarchi
bb5cf85a7e Assume machine is running Ubuntu when installing docker
Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2015-01-14 23:15:32 +01:00
Ash Wilson
cd97f87f6c Add a Rackspace Docker install option.
Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 23:15:32 +01:00
Ash Wilson
c5c15618e8 Allow derived drivers to enable the Docker install.
Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 23:15:26 +01:00
Ash Wilson
5636679367 Rackspace driver enhancements & fixes
* checkConfig is no longer a thing.
* Change the default Rackspace image to Ubuntu 14.04.
* Remove an unnecessary Network service.
* Show a nicer error when the Region is omitted.

Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 23:13:40 +01:00
Guillaume Giamarchi
2332bcc9d8 Add flag --openstack-docker-install
Boolean flag to indicate if docker have to
be installed on the machine. Useful when
docker is already installed and configured
in the OpenStack image. Default set to `true`

Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2015-01-14 23:13:24 +01:00
Guillaume Giamarchi
a2d64fe5c0 Support floating IP allocation and assignation
Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2015-01-14 23:11:12 +01:00
Guillaume Giamarchi
c16adeb46f Refactor option management to use codegangsta/cli
Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2015-01-14 23:11:06 +01:00
Guillaume Giamarchi
c304288a82 Bugfix on openstack machine ssh
Bypass argument management for sudo if there is not arguments

Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2015-01-14 22:01:32 +01:00
Ash Wilson
9fc0e3d72b Fix syntax and move init calls to the driver.
Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 22:01:32 +01:00
Ash Wilson
2fb9061142 Turn selected logging messages to "debug".
Otherwise, they interfere with the output of `machine url` and `machine ls`. `machine url`
is more important because it breaks the export statement to configure docker if it includes
additional output.

Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 22:01:32 +01:00
Ash Wilson
5f0fe8e704 Override GetInstanceIpAddresses for Rackspace.
Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 22:01:32 +01:00
Ash Wilson
816cc3c491 Fixes on OpenStack and Rackspace drivers
* Use the initialized client
* Fix the endpointType conditional
* Don't die if OS-EXT-IPS is not present
* Only log Openstack creation for Openstack drivers
* There's no option for MachineName, yet

Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 22:01:32 +01:00
Ash Wilson
7c839273c1 Init methods are no-ops when already initialized.
Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 22:01:32 +01:00
Ash Wilson
8466d95fa0 Make service init calls into the driver methods.
Otherwise, because of the way Go does method dispatch, derived versions of
those methods will never be called.

Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 22:01:32 +01:00
Ash Wilson
b046940433 Validate and default Rackspace-specific options.
Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 22:01:32 +01:00
Ash Wilson
c12d3f8ecd Initial cut at a Rackspace driver.
* Wrap openstack.Client in an interface.
* Alternate openstack Driver creation method.
* Register the Rackspace driver in commands.go.

Signed-off-by: Ash Wilson <ash.wilson@rackspace.com>
2015-01-14 22:01:31 +01:00