Commit Graph

81 Commits

Author SHA1 Message Date
Mitchell Hashimoto 84189f7a28 builder/*: properly save interpolation context 2015-06-22 09:22:42 -07:00
Mitchell Hashimoto a95408aa21 Merge pull request #2224 from mitchellh/f-os-userdata
builder/openstack: support user data [GH-1867]
2015-06-15 09:35:49 -07:00
Mitchell Hashimoto 3edff00696 Merge pull request #2223 from mitchellh/b-stop-openstack
builder/openstack: load extensions, stop server if supported
2015-06-15 09:35:36 -07:00
Mitchell Hashimoto d8cc24f86e builder/openstack: no more port 2015-06-15 09:34:35 -07:00
Mitchell Hashimoto 5167c65f87 Merge branch 'b-openstack-privage' 2015-06-15 09:33:58 -07:00
Mitchell Hashimoto 115d583cff helper/communicator: make host more generic 2015-06-13 19:23:33 -04:00
Mitchell Hashimoto f55e2d2c4b builder/openstack: convert to helper/comm 2015-06-13 18:34:37 -04:00
Mitchell Hashimoto b3a9712402 builder/openstack: support user data [GH-1867] 2015-06-12 22:55:39 -04:00
Mitchell Hashimoto b6d6a71c6e builder/openstack: wait for more states 2015-06-12 22:50:59 -04:00
Mitchell Hashimoto 48b674d331 builder/openstack: load extensions, stop server if supported 2015-06-12 18:04:46 -04:00
Mitchell Hashimoto a3863c3495 builder/openstack: update floating IP messaging 2015-06-12 15:23:05 -04:00
Mitchell Hashimoto 2c683c5057 builder/openstack: prioritize ssh interfaces 2015-06-12 14:28:27 -04:00
Mitchell Hashimoto 31abc93f50 builder/openstack: support ssh_interface [GH-2087] 2015-06-12 14:22:32 -04:00
Mitchell Hashimoto 693f04afcc builder/openstack: AZ support 2015-06-12 11:10:10 -04:00
Mitchell Hashimoto 92b6b5c387 builder/openstack: can ref flavor by name 2015-06-12 10:32:31 -04:00
Mitchell Hashimoto ad374e82af builder/openstack: shuffle some fields to note unused fields 2015-06-12 10:05:03 -04:00
Mitchell Hashimoto 5d32a1f6e0 builder/openstack: use IP not FixedIP 2015-06-12 10:02:04 -04:00
Mitchell Hashimoto 590177ea4b builder/openstack: fix unit tests 2015-06-12 00:35:54 -04:00
Mitchell Hashimoto e724b5fe80 builder/openstack: support legacy env vars 2015-06-12 00:33:52 -04:00
Mitchell Hashimoto 50e2eb30e6 builder/openstack: modifications to work with rackspace 2015-06-12 00:28:38 -04:00
Mitchell Hashimoto a0d41fcd14 builder/openstack 2015-06-12 00:16:43 -04:00
Mitchell Hashimoto 23a48d6619 go fmt 2015-06-08 21:34:20 -07:00
Mitchell Hashimoto a8cd2a2223 Merge pull request #2038 from trumant/openstack_access_config_tests_env_clarity
Tests were failing incorrectly when OpenStack environment variables were...
2015-06-08 21:19:47 -07:00
jszwedko b1497b951c code.google.com/p/go.crypto/ssh -> golang.org/x/crypto/ssh
code.google.com/p/go.crypto/ssh is now at golang.org/x/crypto/ssh as of
https://code.google.com/p/go/source/detail?spec=svn.crypto.69e2a90ed92d03812364aeb947b7068dc42e561e&repo=crypto&r=8fec09c61d5d66f460d227fd1df3473d7e015bc6

Using the code.google.com import redirects properly, but runs into
issues if you try to use a subpackage of `ssh`, e.g. `agent` which
refers to golang.org/x/crypto/ssh causing conflicts if your types expect
code.google.com/p/go.crypto/ssh.

This is a precursor to a PR for #1066.
2015-05-28 08:17:49 -07:00
Mitchell Hashimoto 3b29fa5e40 builder/openstack: convert interpolation 2015-05-27 13:02:57 -07:00
Travis Truman 7bd37b1f7a Tests were failing incorrectly when OpenStack environment variables were set in the environment running the tests 2015-04-14 11:14:58 -04:00
Emil Hessman f5782084e5 builder/openstack: address vet reports
Fixes the following vet reports:

builder/openstack/artifact.go:44: arg a.ImageId for printf verb %d of wrong type: string
builder/openstack/step_wait_for_rackconnect.go:24: arg server for printf verb %s of wrong type: *github.com/mitchellh/gophercloud-fork-40444fb.Server
2015-02-25 05:42:19 +01:00
Tom Dooner 6e92e60eef Add Rackconnect support
This adds two config options that we need in order to successfully build
our Rackspace images.

First, a boolean `rackconnect_wait` option which waits for the
RackConnect metadata to appear.

Second, an `ssh_interface` option, for rackconnect users who have more
prohibitive firewalls on the 'public' interface and want to ensure all
traffic to the server goes over the 'private' one.

Finishes #952.
2015-02-17 05:23:21 +00:00
Jen Spinney 40fdb15d03 Support user variables for all OpenStack string config options 2015-01-30 18:02:59 -08:00
Mitchell Hashimoto 0db6cd3533 Merge pull request #1330 from qur/qemu-vagrant
Qemu vagrant
2014-10-28 08:42:17 -07:00
Mitchell Hashimoto b06cceec25 builder/openstack: lock to fork for now to compile [GH-1625] 2014-10-27 16:40:49 -07:00
Julian Phillips 90a57c411f Expand Artifact API to expose build state
In order that something consuming an artifact can have access to extra
builder specific data add the State method which allows the caller to
ask for arbitary values by name.
2014-09-22 11:15:47 +01:00
Mitchell Hashimoto 668bd51fa2 Merge pull request #1410 from msabramo/openstack_builder_blank_keypair_is_error
builder/openstack: error out when gets blank keypair
2014-09-01 21:44:41 -07:00
Marc Abramowitz 9bd33d1e0b Make region required for rackspace but not other providers
Update test to make it pass.
2014-08-15 11:19:04 -07:00
Marc Abramowitz 69500b6943 OpenStack builder: Make region not required
Perhaps "region" is required when using a public provider like
Rackspace? It's not required for my private cloud from Metacloud. I
suspect a lot of private clouds have only a single region and thus don't
need "region" to be specified.
2014-08-15 00:32:53 -07:00
Marc Abramowitz 031c25154f openstack builder error out when gets blank keypair 2014-08-12 08:29:00 -07:00
Ian Delahorne 0da4aa6f24 Replace ListServers hack with update ServerById
[gophercloud#168](https://github.com/rackspace/gophercloud/issues/168) has been
patched to not panic on non-existing server id's. If an error is returned,
check if the error is a 404 first before bailing.
2014-06-30 19:51:48 -05:00
Ian Delahorne 3af14d3dc7 Fix typo 2014-06-29 23:50:01 -05:00
Ian Delahorne 946843982f Workaround for gophercloud.ServerById crashing, fixes #1257
gophercloud.ServerById is broken in v0.1.0 - it will crash if you feed it a
non-existing server ID (see [rackspace/gophercloud #168](https://github.com/rackspace/gophercloud/issues/168))

Instead, list all servers and iterate over them. If the server id isn't found,
return "DELETED" as a state. Not perfect but it works until next version of
gophercloud is released.
2014-06-29 23:45:50 -05:00
Ross Smith II a0caa635fa Merge pull request #1261 from lflux/openstack-networks-support
Add ability to configure networks for openstack
2014-06-16 17:53:44 -07:00
Ian Delahorne c00696992a Add ability to configure networks for openstack
Add configuration option `networks`, a list of network UUIDs, to attach to the
source instance.

In some openstack installs, no default network will be attached or the network
with the ability to attach a public floating IP will need to be specified.
2014-06-15 13:56:19 -05:00
Ian Delahorne 8bf935beb8 Force IPv4 addresses from address pools in Openstack. Fixes #1258
Rackspace defaults to a public IPv4 and IPv6 address. These are returned in
random order, with the sprintf further on generating an incorrect connection
string if on IPv6. Force IPv4 until support for correct connection strings and
a configuration flag for logging in over IPv6 is added.
2014-06-15 02:12:52 -05:00
Mohammed Naser 110c168a68 Update run_config.go 2014-06-07 16:04:29 -04:00
Pierre Riteau 2ee90b29c3 Allow OpenStack builder to skip certificate verification 2014-05-06 12:26:05 +01:00
Mitchell Hashimoto b4729ca7aa Merge pull request #848 from nebula/securityGroups
Support for Security Groups in Openstack
2014-05-01 20:24:42 -07:00
Pierre Riteau 04d1bc67ff Support more user variables in the OpenStack builder 2014-05-01 10:23:43 +01:00
Kgespada f48fc1e2cd Adds security group support
Allows security groups to be specified in the template.
2014-05-01 00:32:55 -07:00
Mitchell Hashimoto 660be5b783 builder/openstack: support a tenant ID 2014-04-30 17:21:32 -07:00
Ben Broderick Phillips fc4b2e1569 Add flexible IP pool/address handling. 2014-04-28 15:20:44 -07:00
Mitchell Hashimoto e84e5e4f2c Merge branch 'update-ssh-package' of github.com:higebu/packer into higebu-update-ssh-package
Conflicts:
	builder/amazon/common/ssh.go
	builder/digitalocean/ssh.go
	builder/googlecompute/ssh.go
	builder/openstack/ssh.go
	communicator/ssh/communicator_test.go
	communicator/ssh/keychain.go
	communicator/ssh/keychain_test.go
2014-04-26 11:12:06 -07:00