Commit Graph

22 Commits

Author SHA1 Message Date
Sander van Harmelen d2d27923df provider/cloudstack: fix vpc renaming (#8784)
* fixed vpc rename bug

* Tweak the suggested fix

There was an assertion error in the fix, and after discussing we felt it was better to split the two changes to make them independant.
2016-09-12 10:30:45 +02:00
Sander van Harmelen 29ce2df873 Fix refresing ACL rules when the ACL is deleted 2016-07-12 21:11:22 +02:00
Sander van Harmelen bdb35006cd Fix several bugs in different resources
- Make sure attaching a disk or a NIC is tried a couple of times as this only works after the OS has fully booted;
- Stop using the device name instead of ID as the names differ depending on the hypervisor that you are using;
- VPC’s do not always have a source NAT IP;
2016-07-12 21:11:22 +02:00
Sander van Harmelen 5a65cc9cb6 Use the new functionality offered by the `go-cloudstack` package
The updated functionality offers a new means to work with projects.
This commit uses that new functionality for the `cloudstack_network`
resource.
2016-04-22 12:23:47 +02:00
Sander van Harmelen 815c8840a7 Refactor the use of names vs IDs for parameters referencing other TF resources
We have a curtesy function in place allowing you to specify both a
`name` of `ID`. But in order for the graph to be build correctly when
you recreate or taint stuff that other resources depend on, we need to
reference the `ID` and *not* the `name`.

So in order to enforce this and by that help people to not make this
mistake unknowingly, I deprecated all the parameters this allies to and
changed the logic, docs and tests accordingly.
2016-04-11 17:14:28 +02:00
Sander van Harmelen aa5d02104c Add `computed` flag to the `network_domain` parameter
Without this flag you will get a diff based on the `network_domain`
parameter, if you not specify the parameter.
2015-10-23 09:54:54 +02:00
Sander van Harmelen cc921b0bc7 Small refactor for better readability and updated the docs 2015-10-08 10:09:11 +02:00
Sander van Harmelen b0d9b5666c Merge pull request #3399 from vmfarms/source_nat_ip
Add source NAT IP computed parameter to CloudStack VPC
2015-10-07 22:36:25 +02:00
Hany Fahim b3bbba7767 project was not being referenced 2015-10-05 19:06:50 -04:00
Hany Fahim aa4cf423f7 Fix whitespace 2015-10-05 19:01:14 -04:00
Hany Fahim d212b278a9 Only set projectID if it is set 2015-10-05 18:59:52 -04:00
Sander van Harmelen 350b8e2df2 Small refactor of the UUID/UnlimitedResourceID logic
This makes things a little more generic and robust.
2015-10-05 14:05:21 +02:00
Hany Fahim ea89339a43 Merge remote-tracking branch 'upstream/master' into source_nat_ip 2015-10-02 21:19:43 -04:00
Hany Fahim 910469ddee Add Source NAT IP parameter
When creating a VPC, CloudStack automatically assigns a source NAT IP
from it's pool. It's handy to have this IP available in Terraform, which
can be used in ACLs for example. This commit adds such support.
2015-10-02 20:54:07 -04:00
Sander van Harmelen ccf683b6ea Add support for network domains
Fixes #3248
2015-09-27 19:49:58 -07:00
Anthony Scalisi 198e1a5186 remove various typos 2015-09-11 11:56:20 -07:00
Sander van Harmelen 6b8d37e938 Fix issue #3033 and update tweak several cloudstack resources
- Added a retry loop for attaching disks as this something was tried to
fast when the VM was still booting
- Fix issue #3033
- Update docs for latest updates and done some minor refactoring
(styling)
2015-08-21 16:59:35 +02:00
Hany Fahim 228da7cf27 Add project parameter to VPC and network Cloudstack resources 2015-08-19 17:56:57 -04:00
Avi Nanhkoesingh 1411d4010f Fixes #1: sets the rights values based on isUUID 2015-05-05 12:31:21 +02:00
Sander van Harmelen ab8977eed6 Last tweaks needed to get through all acc tests
Needed to tweak a few things in order get all tests running OK and to
be able to handle the latest changes in master. All is good again now…
2015-01-15 21:46:06 +01:00
Sander van Harmelen 3898098c78 Adding the ability to manage the whole firewall
This goes for the normal firewall, the egress firewall and the network
ACL.

USE WITH CAUTION! When setting `managed = true` in your config, it
means it will delete all firewall rules that are not in your config, so
unknown to TF.

Also adding the new `cloudstack_egress_firewall` resource with this
commit and updating go-cloudstack to the latest API version (v4.4)
2015-01-15 10:04:09 +01:00
Sander van Harmelen 4910423d83 First release of a provider for CloudStack
Of course not all resources are covered by this first release, but
there should be enough resources available to handle most common
operations.

Tests and docs are included.
2014-12-10 22:20:52 +01:00