Commit Graph

1187 Commits

Author SHA1 Message Date
Guillaume Giamarchi
552b0af201 Add FWaaS rule resource 2015-03-31 09:54:49 -06:00
Joe Topjian
102848525f Added CheckDelete to handle bad Gets. Also removed unneeded Get
from Delete.
2015-03-31 09:54:49 -06:00
Joe Topjian
b7091414fe Volume Safe Delete
This commit ensures that a volume is detached from all instances
before it is deleted.

It also adds in an `attachment` exported parameter that shows details
of the volume's attachment(s).
2015-03-31 09:54:49 -06:00
Joe Topjian
c3c4840baf openstack_compute_floatingip_v2
This commit adds a resource that allows the user to allocate,
deallocate, associate, and disassociate floating IPs through the
nova api.
2015-03-31 09:54:49 -06:00
Eric Bellemon
d03b420e62 Replace perigee.UnexpectedResponseCodeError with gophercloud.UnexpectedResponseCodeError 2015-03-31 09:54:49 -06:00
Long Nguyen
42fb14f19a Added self option to security groups 2015-03-31 09:54:49 -06:00
Joe Topjian
79e5c419c3 Fixing rule/rules and re-arranged order for schema consistency 2015-03-31 09:54:49 -06:00
Joe Topjian
4c9a44b69f Added access_ip_v6 support
This commit populates access_ip_v6 by either the AccessIPv6 attribute
or by finding the first available IPv6 address.

This commit retains the original feature of setting the default ssh
connection to the IPv4 address unless one is not found. IPv6 access
can still be enabled by explicitly setting it in the resource paramters.

This commit also removes d.Set("host") in favor of SetConnInfo
2015-03-31 09:54:49 -06:00
Jon Perritt
633e98dffe security group rule fix; still not exporting rule ID 2015-03-31 09:54:49 -06:00
Joe Topjian
4df32aebed Changing how security groups are read for compute instances 2015-03-31 09:54:49 -06:00
Jon Perritt
64d53009a0 typeset->typelist 2015-03-31 09:54:49 -06:00
Jon Perritt
bb6969a4c5 resize server on flavor_id or flavor_name change 2015-03-31 09:54:49 -06:00
Jon Perritt
49b01a4f0a update compute instance security group Read operation 2015-03-31 09:54:49 -06:00
Joe Topjian
e5f2315bfe Instance volume attach
This commit adds the ability for instances to attach volumes from within their resource.
2015-03-31 09:54:48 -06:00
Joe Topjian
16ea14e8c9 Grammar fix 2015-03-31 09:54:48 -06:00
Joe Topjian
b3438d07d6 This commit enables both the image_id and the image_name to be
computed, so that specifying one will populate the other.
2015-03-31 09:54:48 -06:00
Joe Topjian
768292c069 Support for flavor_name
This commit renames flavor_ref to flavor_id and adds the flavor_name
parameter. Users can now specify either a flavor ID or name when launching
instances.
2015-03-31 09:54:48 -06:00
Joe Topjian
74482abc5b Refactoring multiple results 2015-03-31 09:54:48 -06:00
Joe Topjian
bad2c9f18d Accounting for multiple results of an image name
If multiple results are found, an error will be returned to the user.
2015-03-31 09:54:48 -06:00
Joe Topjian
f51a53000f Support for image_name
This commit renames image_ref to image_id and adds the image_name
parameter. Users can now specify either an image UUID or image name
when launching instances.

image_name is preferrable as deployers/sysadmins generally regularly
deprecate/remove outdated and insecure images. Using a consistent
naming scheme allows end-users to always retrieve a working image.
2015-03-31 09:54:48 -06:00
Jon Perritt
fafa946871 handle 404 (Not Found) in Get operations 2015-03-31 09:54:48 -06:00
Eric Bellemon
9b30ef4eb2 Remove region properties on acceptance tests 2015-03-31 09:54:48 -06:00
Eric Bellemon
e9abf04e4b Add router interface resource 2015-03-31 09:54:48 -06:00
Eric Bellemon
32d0e36709 Add router resource 2015-03-31 09:54:48 -06:00
Julien Vey
132d5acb33 Make pool name configurable in tests 2015-03-31 09:54:48 -06:00
Julien Vey
760e03856e Manage floating IP in compute instances 2015-03-31 09:54:48 -06:00
Julien Vey
9aa9c90248 Add floating IP resource 2015-03-31 09:54:48 -06:00
Julien Vey
aae87816f6 add ACTIVE as pending state when deleting instance 2015-03-31 09:54:48 -06:00
Julien Vey
8e9c6787dd Just try the first IP available if none found before
Some cloud don't implement correctly IP addresses.
Instead of failing during the provisionning, we just take the
first IP available and try with this one.
2015-03-31 09:54:48 -06:00
Jon Perritt
ccd51ae3ab added ok codes to gophercloud -> update ServerV2StateRefreshFunc 2015-03-31 09:54:48 -06:00
Jon Perritt
e2634562a4 define block_device schema 2015-03-31 09:54:48 -06:00
Jon Perritt
436ef9e53b boot from volume ops and docs 2015-03-31 09:54:48 -06:00
Jon Perritt
761d58df2f add container and volume resources 2015-03-31 09:54:48 -06:00
Jon Perritt
a85067062d object storage v1 acceptance tests 2015-03-31 09:54:47 -06:00
Jon Perritt
d2169e0e96 block storage v1 acceptance tests 2015-03-31 09:54:47 -06:00
Jon Perritt
acd5a033f0 fix typo in client variable name 2015-03-31 09:54:47 -06:00
Jon Perritt
f1ac6dbfec block storage volume v1 ops 2015-03-31 09:54:47 -06:00
Jon Perritt
a5147f472b update metadata before actual Update op 2015-03-31 09:54:47 -06:00
Jon Perritt
43564d1c5c object storage container v1 ops 2015-03-31 09:54:47 -06:00
Jon Perritt
08672e697e networking subnets acceptance tests 2015-03-31 09:54:47 -06:00
Jon Perritt
e040934077 networking networks acceptance tests 2015-03-31 09:54:47 -06:00
Jon Perritt
d46d9a6540 lb vips acceptance tests 2015-03-31 09:54:47 -06:00
Jon Perritt
e7a69d0a6c lb pools acceptance tests 2015-03-31 09:54:47 -06:00
Jon Perritt
e08e97304f lb monitors acceptance tests 2015-03-31 09:54:47 -06:00
Jon Perritt
66129632b3 security groups acceptance tests 2015-03-31 09:54:47 -06:00
Jon Perritt
fa15d41d45 UpdateOpts not optional 2015-03-31 09:54:47 -06:00
Jon Perritt
b9395b36d2 update client methods 2015-03-31 09:54:47 -06:00
Jon Perritt
6b2f2df042 'rules' -> 'rule' 2015-03-31 09:54:47 -06:00
Jon Perritt
33d62bbdbf 'networks' -> 'network' 2015-03-31 09:54:47 -06:00
Jon Perritt
777c34cf7c move lb member ops into lb pool file 2015-03-31 09:54:47 -06:00
Jon Perritt
1aba665ad7 refactor service clients to *Config 2015-03-31 09:54:47 -06:00
Jon Perritt
3627368fc0 remove security group rule option from provider 2015-03-31 09:54:47 -06:00
Jon Perritt
a2d2f92741 remove security group rule file 2015-03-31 09:54:47 -06:00
Jon Perritt
c233c7f7f0 fix typo in comment 2015-03-31 09:54:47 -06:00
Jon Perritt
ea7c075273 add security group rules ops to security groups file 2015-03-31 09:54:47 -06:00
Jon Perritt
3a6107d0ab keypairs v2 acceptance tests 2015-03-31 09:54:47 -06:00
Jon Perritt
17b137c972 go fmt 2015-03-31 09:54:47 -06:00
Jon Perritt
a707f8414c compute instance v2 acceptance tests 2015-03-31 09:54:46 -06:00
Jon Perritt
e278f852b3 add image_ref and flavor_ref checks 2015-03-31 09:54:46 -06:00
Jon Perritt
59b5efc25a add defaultFuncs; fix bug with server createOpts 2015-03-31 09:54:46 -06:00
Jon Perritt
e6f3a19284 add defaultFunc for 'tenant_name' 2015-03-31 09:54:46 -06:00
Jon Perritt
d86cb6be1c fix diff bug in 'Read' functions 2015-03-31 09:54:46 -06:00
Jon Perritt
5d2fe153c0 go fmt 2015-03-31 09:54:46 -06:00
Jon Perritt
d51ee3111e always need both name and description when updating 2015-03-31 09:54:46 -06:00
Jon Perritt
2214331b3c export 'region' from 'Read' operations 2015-03-31 09:54:46 -06:00
Jon Perritt
46a7949c9d fix bug in SessionPersistence logic 2015-03-31 09:54:46 -06:00
Jon Perritt
9b54c569cc use 'Default' to forgo prompt 2015-03-31 09:54:46 -06:00
Jon Perritt
dc99dd1f05 add versioning to files 2015-03-31 09:54:46 -06:00
Jon Perritt
8579c8693a make 'region' resource-specific; create new client for each crud operation 2015-03-31 09:54:46 -06:00
Jon Perritt
bfe492d407 add options for openstack identity v3 2015-03-31 09:54:46 -06:00
Jon Perritt
b0e8cd5dd3 a more general way of generating provider clients 2015-03-31 09:54:46 -06:00
Jon Perritt
b1b693e461 region is resource-specific; doesn't belong with auth 2015-03-31 09:54:46 -06:00
Jon Perritt
cc1445d760 if update func called, there's something to update 2015-03-31 09:54:46 -06:00
Jon Perritt
dd4155fa80 set host in read function 2015-03-31 09:54:46 -06:00
Jon Perritt
8e6e7909cb neutron subnet operations 2015-03-31 09:54:46 -06:00
Jon Perritt
ef3ee11045 neutron network operations 2015-03-31 09:54:46 -06:00
Jon Perritt
c2230a8aaa lb vip operations 2015-03-31 09:54:46 -06:00
Jon Perritt
7132b02a84 lb pool operations 2015-03-31 09:54:45 -06:00
Jon Perritt
966c8420d1 lb monitor operations 2015-03-31 09:54:45 -06:00
Jon Perritt
9077b66045 lb member operations 2015-03-31 09:54:45 -06:00
Jon Perritt
ac79c76b13 add lb resources 2015-03-31 09:54:45 -06:00
Jon Perritt
4424828d25 crud for neutron subnets 2015-03-31 09:54:45 -06:00
Jon Perritt
4761075790 crud for neutron networks 2015-03-31 09:54:45 -06:00
Jon Perritt
45c4868f90 fix comment 2015-03-31 09:54:45 -06:00
Jon Perritt
457bbe661a resource_compute_secgroup -> resource_openstack_compute_secgroup 2015-03-31 09:54:45 -06:00
Jon Perritt
d7560de2dd remove errant comment 2015-03-31 09:54:45 -06:00
Jon Perritt
23d425072c add/delete security groups and rules 2015-03-31 09:54:45 -06:00
Jon Perritt
01e41646d3 add/get/delete keypairs 2015-03-31 09:54:45 -06:00
Jon Perritt
47955b1d44 remove unneeded variables during server creation 2015-03-31 09:54:45 -06:00
Jon Perritt
edc280a8dc add/update admin pass on server; change key pair format from map to string 2015-03-31 09:54:45 -06:00
Jon Perritt
04a9d47bca add/update/remove sec groups from server 2015-03-31 09:54:45 -06:00
Jon Perritt
f17649e9dc server resizing 2015-03-31 09:54:45 -06:00
Jon Perritt
0bb0dad58c provider test 2015-03-31 09:54:45 -06:00
Jon Perritt
48e92f8173 OS_REGION -> OS_REGION_NAME (thank you @hartzell) 2015-03-31 09:54:45 -06:00
Jon Perritt
3112103acf server keypair 2015-03-31 09:54:45 -06:00
Jon Perritt
cc9ee787ac update openstack server metadata 2015-03-31 09:54:45 -06:00
Jon Perritt
f9fa748024 crud for openstack servers v2 2015-03-31 09:54:45 -06:00
Clint Shryock
e485767694 provider/aws: Add non-destructive updates to AWS RDS
This introduces non-destructive, in-place upgrades to MultiAZ and Engine Version
attributes of AWS RDS instances.
2015-03-31 09:41:37 -05:00
Clint Shryock
a897b5208e Merge branch 'f-aws-rds-tags' into f-rds-update
* f-aws-rds-tags:
  fix index out of range error
  fix formatting
  upgrade VPC Ids and DB Subnet to be optionally computed
  fix typo
  provider/aws: Introduce IAM connection
2015-03-30 15:19:35 -05:00
Clint Shryock
755f8d0f44 provider/aws: Fix acceptance test checks for AWS Security Group 2015-03-30 14:54:03 -05:00
Paul Hinze
f2968b045c Merge pull request #1316 from hashicorp/b-empty-instancestate-state-migrate-crash
providers/aws: handle empty instancestate in state migration
2015-03-29 08:53:04 -05:00
Mitchell Hashimoto
118a5b9dfd providers/docker: ping docker server on startup 2015-03-28 19:06:48 -07:00
Mitchell Hashimoto
a7a5d2e564 providers/docker: make container test better 2015-03-28 18:45:36 -07:00
Mitchell Hashimoto
09333e5e76 providres/docker: cache client 2015-03-28 18:37:20 -07:00
Mitchell Hashimoto
7c253155c1 providers/docker: container acceptance tests 2015-03-27 15:33:17 -07:00
Mitchell Hashimoto
3601e9f5ee providers/docker: docker_image acceptance test 2015-03-27 15:22:33 -07:00
Mitchell Hashimoto
d6303c91ad providers/docker: support DOCKER_CERT_PATH 2015-03-27 15:18:52 -07:00
Clint Shryock
ce8ec26d08 cleanups 2015-03-27 16:05:54 -05:00
Mitchell Hashimoto
b7c88f0038 Merge branch 'master' of https://github.com/jefferai/terraform into jefferai-master 2015-03-27 13:44:40 -07:00
Clint Shryock
12585b1963 provider/aws: Finish Tag support for Route 53 zone 2015-03-27 15:41:42 -05:00
Mitchell Hashimoto
7d846cb97e Merge pull request #1315 from hashicorp/b-heroku-config-vars-2
providers/heroku: empty config vars block shouldn't panic [GH-1211]
2015-03-27 12:17:27 -07:00
Clint Shryock
3ce5b6cd70 Merge branch 'master' into f-aws-route53zone-tags
* master:
  provider/aws: Fix dependency violation when deleting Internet Gateways
  command/remote-config: failing tests
  update CHANGELOG
  command/remote-config: do a pull with `terraform remote config`
  command/remote-{pull,push}: colorize and show success output
  command/remote-config: lowercase the type so that Atlas works, for example
  command/remote-config: show flag parse errors
  command/remote-config: remove weird error case that shows no error message
  command: when setting up state, only write back if local is newer
2015-03-27 13:57:33 -05:00
Clint Shryock
38c386487b Merge branch 'master' into f-aws-rds-tags
* master: (66 commits)
  provider/aws: Fix dependency violation when deleting Internet Gateways
  command/remote-config: failing tests
  update CHANGELOG
  command/remote-config: do a pull with `terraform remote config`
  command/remote-{pull,push}: colorize and show success output
  command/remote-config: lowercase the type so that Atlas works, for example
  command/remote-config: show flag parse errors
  command/remote-config: remove weird error case that shows no error message
  command: when setting up state, only write back if local is newer
  minor code cleanups to get acceptance tests passing
  update CHANGELOG
  providers/digitalocean: add dot in GET response
  providers/digitalocean: force fqdn in dns rr value
  update CHANGELOG
  small code cleanup
  Add proper reading/updating of tags for S3
  provider/aws: Add tags to S3
  Documentation for ASG Tags added
  Tags support added for AWS ASG
  command/output: don't panic if no root module in state [GH-1263]
  ...
2015-03-27 13:49:05 -05:00
Clint Shryock
043a4848ee provider/aws: Fix dependency violation when deleting Internet Gateways 2015-03-27 11:39:07 -05:00
Clint Shryock
b64a919d83 provider/aws: Add tags to Route53 hosted zones 2015-03-26 16:45:23 -05:00
Clint
340863b6cc Merge pull request #1312 from hashicorp/f-aws-s3-tags
provider/aws: Add tags to S3
2015-03-26 15:15:54 -05:00
Clint
1b22f206fb Merge pull request #1279 from hashicorp/b-route53-record-fixes
provider/aws: Cleanup Route 53 subdomain name handling
2015-03-26 15:15:31 -05:00
Clint Shryock
deda59b50e minor code cleanups to get acceptance tests passing 2015-03-26 14:49:15 -05:00
Clint Shryock
877eb902a0 Merge branch 'master' into time-asg-tags-support
* master:
  update CHANGELOG
  providers/digitalocean: add dot in GET response
  providers/digitalocean: force fqdn in dns rr value
  update CHANGELOG
  Add disk size to google_compute_instance disk blocks.
  'project' should be set to the project's ID, not its name.
  Don't error when enabling DNS hostnames in a VPC
  Correct AWS VPC or route table read functions
  Updates to GCE Instances and Instance Templates to allow for false values to be set for the auto_delete setting.
  Update GCE Instance Template tests now that existing disk must exist prior to template creation.
  Update Google API import to point to the new location.
  add network field to the network_interface
2015-03-26 13:47:46 -05:00
Paul Hinze
f51fb5e127 providers/aws: handle empty instancestate in state migration
fixes #1309
2015-03-26 13:07:04 -05:00
Anton Tereshchenkov
6f76340192 providers/digitalocean: add dot in GET response
Added tests for relative and external CNAME values.
2015-03-26 10:57:46 -07:00
Anton Tereshchenkov
3565ae034e providers/digitalocean: force fqdn in dns rr value
Fixes a bug that forces DNS record to be recreated when dealing with
records that have domain values (CNAME, MX, NS, etc.)
2015-03-26 10:57:46 -07:00
Mitchell Hashimoto
5e7007e38f Merge pull request #1239 from BashtonLtd/gce_fix_false_bools
providers/google: Updates to GCE Instances and Instance Templates to allow for false bools.
2015-03-26 10:20:52 -07:00
Mitchell Hashimoto
591376f88d Merge pull request #1238 from BashtonLtd/gce_update_instance_template_disk_tests
providers/google: Update GCE Instance Template tests now that existing disk must exist first.
2015-03-26 10:20:29 -07:00
Mitchell Hashimoto
266670c1a1 Merge pull request #1154 from stuntgoat/gce-add-network
providers/google: add network field to the network_interface
2015-03-26 10:19:00 -07:00
Mitchell Hashimoto
944ff16d4e Merge branch 'vpc_missing' of https://github.com/bitglue/terraform into bitglue-vpc_missing
Conflicts:
	builtin/providers/aws/resource_aws_vpc.go
2015-03-26 10:17:14 -07:00
Mitchell Hashimoto
d21c112593 Merge pull request #1236 from BashtonLtd/gce_update_imports
Update Google API import to point to the new location.
2015-03-26 10:14:33 -07:00
Mitchell Hashimoto
deb5052454 Merge pull request #1284 from ndarilek/add-size-to-instance-disk
Add size option to disk blocks under google_compute_instance
2015-03-26 10:13:11 -07:00
Clint Shryock
1b699aae7d small code cleanup 2015-03-26 11:58:20 -05:00
Mitchell Hashimoto
e5a375ae58 providers/heroku: empty config vars block shouldn't panic [GH-1211] 2015-03-26 09:45:37 -07:00
Clint Shryock
be60d39b24 Add proper reading/updating of tags for S3 2015-03-26 11:45:16 -05:00
Clint Shryock
c6d832333b provider/aws: Add tags to S3 2015-03-26 11:19:42 -05:00
Radek Simko
fff05e2aad Tags support added for AWS ASG 2015-03-26 07:35:15 +00:00
Sander van Harmelen
26fa9b6daa Merge pull request #1305 from svanharmelen/b-provider/cloudstack-template
provider/cloudstack: some small fixes, needed to work with bigger templates
2015-03-25 22:56:37 +01:00
Sander van Harmelen
041cce36b4 Some small fixes, needed to work with bigger templates 2015-03-25 22:48:44 +01:00
Paul Hinze
396b082c20 Merge pull request #1304 from hashicorp/b-aws-vpc-modify-attr-req
providers/aws: fix DNS options on VPC
2015-03-25 16:24:13 -05:00
Paul Hinze
cddb057f40 providers/aws: fix DNS options on VPC
One typo on a `d.Get` and reuse of the request object was making it sad.

Now it is happy!

fixes #1301
2015-03-25 15:15:32 -05:00
Paul Hinze
6b02cfb700 Merge pull request #1277 from hashicorp/f-aws-derive-root-device-name
providers/aws: derive instance root_block_device name
2015-03-25 15:15:05 -05:00
Clint Shryock
89854b0af5 fix index out of range error 2015-03-25 11:10:12 -05:00
Clint Shryock
398f4564c4 fix formatting 2015-03-25 10:32:54 -05:00
Clint Shryock
65ff5b327d upgrade VPC Ids and DB Subnet to be optionally computed 2015-03-25 10:14:45 -05:00
Clint Shryock
676f3c5bab fix typo 2015-03-25 10:05:15 -05:00
Clint Shryock
87907e24ba provider/aws: Introduce IAM connection 2015-03-24 15:47:22 -05:00
Clint Shryock
ef094e2cfe provider/aws: Add tag support to ELB 2015-03-24 13:37:42 -05:00
Nolan Darilek
9d75fa72ab Add disk size to google_compute_instance disk blocks. 2015-03-24 11:45:20 -05:00
Clint Shryock
32eebf4e15 provider/aws: Cleanup Route 53 subdomain name handling 2015-03-23 15:01:53 -05:00
Paul Hinze
a4e80b6313 providers/aws: derive instance root_block_device name
I was working on building a validation to check the user-provided
"device_name" for "root_block_device" on AWS Instances, when I realized
that if I can check it, I might as well just derive it automatically!

So that's what we do here - when you customize the details of the root
block device, device name is just comes from the selected AMI.
2015-03-23 11:58:45 -05:00
Clint
55d682482a Merge pull request #1274 from TimeIncOSS/modifiers-fix
Fix fmt modifiers for bool to be actually bool, not integer
2015-03-23 10:56:23 -05:00
Radek Simko
bbda2d6733 Fix fmt modifiers for bool to be actually bool, not integer 2015-03-22 13:33:17 +00:00
Phil Frost
b49fba6b61 Don't error when enabling DNS hostnames in a VPC
The AWS API call ModifyVpcAttribute will allow only one attribute to be
modified at a time. Modifying both results in the error:

    Fields for multiple attribute types specified: enableDnsHostnames, enableDnsSupport

Retructure the provider to honor this restriction.

Also, enable DNS support before attempting to enable DNS hostnames,
since the former is a prerequisite of the latter.

Additionally, fix what must have been a copy&paste error, setting
enable_dns_support to the value of enable_dns_hostnames.
2015-03-20 14:49:50 -04:00