Sander van Harmelen
55d4e3cda7
Merge branch 'cloudstack-group' of https://github.com/jefflaplante/terraform into f-cloustack-group
2016-04-18 22:32:55 +02:00
Jeff LaPlante
f840f49fbb
Added support to read and update group attribute from existing vm state.
2016-04-11 10:23:19 -07: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
Hany Fahim
3135706d1f
Update to use setProjectid helper function
2016-04-11 08:22:01 -04:00
Hany Fahim
44fc1b5d80
Add project parameter to cloudstack_port_forward.
...
- Add parameter to resource.
- Modify read operation to pass in projectid if defined.
2016-04-09 11:58:57 -04:00
Jeff LaPlante
ba4ec0097a
fixed formatting
2016-04-05 09:21:23 -07:00
Jeff LaPlante
cf607e8a58
Added Group attribute to cloudstack instance resource
2016-04-05 09:12:45 -07:00
Sander van Harmelen
fddf3eccc6
Make the CloudStack provider more inline with the other provider
...
It turns out all other providers use `ip_address` where the CloudStack
provider uses `ipaddress`. To make this more consistent this PR
deprecates `ipaddress` and adds `ip_address` where needed…
2016-04-04 22:16:15 +02:00
Sander van Harmelen
e5fecca7cc
Add `cloudstack_static_nat` resource
2016-04-04 15:48:14 +02:00
Sander van Harmelen
5c1f410ebe
Some minor updates and added a proper test
2016-03-25 16:59:03 +01:00
James Nugent
63008b857f
Make name optional on cloudstack_instance resource
...
This commit matches the behaviour of the cloudstack_instance resource to
the documentation at [1], which indicates that the virtual machine name
is optional. This also changes the update logic to allow it to be
updated as described in [2].
[1] http://cloudstack.apache.org/api/apidocs-4.8/domain_admin/deployVirtualMachine.html
[2] http://cloudstack.apache.org/api/apidocs-4.8/domain_admin/updateVirtualMachine.html
2016-03-11 15:59:40 +00:00
Sander van Harmelen
5525772a74
provider/cloudstack: small doc update
2016-02-26 23:44:53 +01:00
Joakim Sernbrant
7d30423a61
provider/cloudstack: Improve ssh keypair handling
...
- adds support for projects
- adds support for public_key strings as well as filenames
2016-02-26 23:06:16 +01:00
Sander van Harmelen
c0f1962f51
Policing up the new `tags` code from @Carles-Figuerola
...
Just some cosmetics and some cleaning up to make the code fit in a
little better with the existing code. Functionally no changes are made
and the existing tests still pass.
2016-01-22 12:13:26 +01:00
Carles Figuerola
755917db07
Add tests for Network Tags for provider/cloudstack and applied tips from PR#4742
2016-01-21 22:45:51 -06:00
Carles Figuerola
0983ca4c2a
Merge remote-tracking branch 'upstream/master' into add-tags-plus-networktags
2016-01-21 22:37:23 -06:00
Sander van Harmelen
3385100f56
Make the concurrence for applying rules configurable
2016-01-21 21:30:54 +01:00
Sander van Harmelen
e3d530aaa2
Merge pull request #4772 from svanharmelen/b-fix-panic
...
provider/cloudstack: add a check to see if the port value is valid
2016-01-21 17:05:03 +01:00
Carles Figuerola
e2d6f7c5e9
Specify that the vlan attribute in cloudstack is only usable for ROOT admins and stop reading it back
2016-01-21 09:52:27 -06:00
Sander van Harmelen
20901a6478
Add a check to see if the port value is valid
...
Without this additional check it could happen that one of the firewall
resources would panic is given an unexpected port value.
2016-01-21 09:38:14 +01:00
Carles Figuerola
b18afaa5db
Add taging shared module for cloudstack and implement it in resource_network
2016-01-19 11:41:18 -06:00
Carles Figuerola
fab9b16de5
Move tests to ParseCIDR in resource_cloudstack_network and add items in read section
2016-01-15 14:24:18 -06:00
Carles Figuerola
c80ddccc12
Add vlan, startip, endip and gateway for network creation
2016-01-14 22:59:04 -06:00
Sander van Harmelen
b8f3417e79
Change all firewall related resources to take a cidr_list
...
Also some additional tweaks to improve performance and add in a little
concurrency to speed things up a little.
2015-12-03 15:34:53 +01:00
Sander van Harmelen
84645bd8b5
More tweaks to improve performance
2015-12-01 00:36:33 +01:00
Sander van Harmelen
d4ce2b87fb
Modified executable bit
2015-11-27 14:49:28 +01:00
Sander van Harmelen
a3eae45b32
Improve performance all firewall related resources
2015-11-24 18:27:52 +01: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
Panagiotis Moustafellos
e4845f75cc
removed extra parentheses
2015-10-08 15:48:04 +03: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
Sander van Harmelen
d4e3e4cae7
Fix regexp
2015-10-06 14:49:16 +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
Sander van Harmelen
6fb61e3d98
Merge pull request #3324 from vmfarms/master
...
Allow special "unlimited" resource ID and add project param to templates
2015-10-05 13:06:09 +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
Hany Fahim
1e90f986f2
Update conditional to set UnlimitedResourceID for Zonename as well as Zoneid
2015-09-30 14:03:14 -04:00
Hany Fahim
a9b86636c8
Check for proper empty response instead of UnlimitedResourceID
2015-09-28 13:31:08 -04:00
Sander van Harmelen
979c86ec26
Fix styling...
2015-09-27 19:56:44 -07:00
Sander van Harmelen
ccf683b6ea
Add support for network domains
...
Fixes #3248
2015-09-27 19:49:58 -07:00
Hany Fahim
7852248f0e
Moved project block down
2015-09-24 17:04:45 -04:00
Hany Fahim
fc89f576ca
Change IS_GLOBAL_RESOURCE to UnlimitedResourceID to keep terminology in sync with CloudStack
2015-09-24 16:49:21 -04:00
Hany Fahim
7b4bb968d6
Add project parameter to cloudstack_template resource
2015-09-24 16:28:40 -04:00
Hany Fahim
aa950be63b
Use constant for global resources
2015-09-24 16:16:12 -04:00
Hany Fahim
03d7c1fa7d
Allow for -1 for Zone ID, which is valid in CloudStack
2015-09-24 15:57:25 -04:00
Anthony Scalisi
198e1a5186
remove various typos
2015-09-11 11:56:20 -07:00
Sander van Harmelen
ce50f35679
Small refactor of the CloudStack load balancer tests
...
This makes the code a little more generic and inline with the other
code. Functionally the same things are tested.
2015-09-08 11:19:41 +02:00