Commit Graph

10791 Commits

Author SHA1 Message Date
Chris Marchesi 9ac7fb0276 provider/aws: New data source: aws_ami
This data source allows one to look up the most recent AMI for a specific
set of parameters, much like aws ec2 describe-images in the AWS CLI.

Basically a refresh of hashicorp/terraform#4396, in data source form.
2016-05-29 09:55:12 -07:00
Chris Marchesi 559799599e core: Ensure EvalReadDataApply is called on expanded destroy nodes
During accpeptance tests of some of the first data sources (see
hashicorp/terraform#6881 and hashicorp/terraform#6911),
"unknown resource type" errors have been coming up. Traced it down to
the ResourceCountTransformer, which transforms destroy nodes to a
graphNodeExpandedResourceDestroy node. This node's EvalTree() was still
indiscriminately using EvalApply for all resource types, versus
EvalReadDataApply. This accounts for both cases via EvalIf.
2016-05-28 22:48:28 -07:00
Joe Topjian a3a8b534ed Merge pull request #6920 from jtopjian/openstack-instance-doc-update
provider/openstack: Add delete_on_termination argument to docs
2016-05-28 16:55:32 -06:00
Joe Topjian c083a4f5dc provider/openstack: Add delete_on_termination argument to docs
This commit adds a description of the delete_on_termination argument
to the openstack_compute_instance_v2 documentation.
2016-05-28 22:46:54 +00:00
Joe Topjian 709e0bf9ad Merge pull request #6918 from jtopjian/openstack-devstack-fmt-fixes
provider/openstack: Devstack and fmt fixes
2016-05-28 16:01:34 -06:00
Joe Topjian fd91df2ca2 vendor: Updating Gophercloud for OpenStack provider 2016-05-28 21:53:31 +00:00
Joe Topjian e0d343906d provider/openstack: Add lb_provider argument to lb_pool_v1
This commit adds the lb_provider argument to the lb_pool_v1 resource.
This argument can be used to specify a backend load balancing system.
2016-05-28 21:53:27 +00:00
Joe Topjian c7107e2228 provider/openstack: Devstack and fmt fixes
This commit adds the newly required OS_EXT_GW environment variable to
the devstack acceptance environment build suite. It also fixes some
space formatting in a test.
2016-05-28 21:32:49 +00:00
Joe Topjian 8e52757fc3 Update CHANGELOG.md 2016-05-28 15:30:50 -06:00
Joe Topjian 3aadc19e02 Merge pull request #6837 from carlpett/f-openstack-floatingip-fixed-binding
provider/openstack: Implement fixed_ip on floating ip allocations
2016-05-28 15:30:08 -06:00
Joe Topjian 467ddab4a5 Update CHANGELOG.md 2016-05-28 15:11:07 -06:00
Joe Topjian 6430d790e7 Merge pull request #6844 from jtopjian/openstack-instance-network-fnr
provider/openstack: Rebuild On Network Changes
2016-05-28 15:10:26 -06:00
Sarkis Varozian d71e9bfaec update docs to reflect attribute conflict 2016-05-28 16:10:32 -04:00
Martin Atkins f41fe4879e core: produce diff when data resource config becomes computed
Previously the plan phase would produce a data diff only if no state was
already present. However, this is a faulty approach because a state will
already be present in the case where the data resource depends on a
managed resource that existed in state during refresh but became
computed during plan, due to a "forces new resource" diff.

Now we will produce a data diff regardless of the presence of the state
when the configuration is computed during the plan phase.

This fixes #6824.
2016-05-28 12:39:36 -07:00
James Nugent 10cc8b8c63 Merge pull request #6906 from hashicorp/b-external-plugin-proto
Fix mixing internal and external plugins
2016-05-27 11:57:34 -07:00
Chris Bednarski 8d50238f7a Added TF_PLUGIN_DEV to silence internal plugin warnings 2016-05-27 11:49:09 -07:00
Chris Bednarski 9d6326545a Hide plugin discovery log message when we are running a plugin 2016-05-27 10:51:23 -07:00
Sander van Harmelen e846321663 Update CHANGELOG.md 2016-05-27 09:54:11 +02:00
Sander van Harmelen 22e914a0b9 Merge pull request #6898 from svanharmelen/f-add-affinitygroup
provider/cloudstack: add the option to assign affinity groups to a VM
2016-05-27 09:51:07 +02:00
Sander van Harmelen 23801b5507 Add the option to assign affinity groups to a VM 2016-05-27 09:46:59 +02:00
Sander van Harmelen fcaad20b06 Update CHANGELOG.md 2016-05-27 09:38:21 +02:00
Paul Hinze 6823e60e77 Update CHANGELOG.md 2016-05-26 20:22:17 -05:00
Paul Hinze 24eaf9ac55 Merge pull request #6894 from hashicorp/svanharmelen-f-taint-semantics
core: change taint semantics
2016-05-26 20:20:49 -05:00
Sander van Harmelen 5af1afd64e
Update newly added code to work with the updated taint semantics 2016-05-26 19:56:03 -05:00
Sander van Harmelen d97b24e3c1
Add tests and fix last issues 2016-05-26 19:56:03 -05:00
Sander van Harmelen 8560f50cbc
Change taint behaviour to act as a normal resource
This means it’s shown correctly in a plan and takes into account any
actions that are dependant on the tainted resource and, vice verse, any
actions that the tainted resource depends on.

So this changes the behaviour from saying this resource is tainted so
just forget about it and make sure it gets deleted in the background,
to saying I want that resource to be recreated (taking into account the
existing resource and it’s place in the graph).
2016-05-26 19:55:26 -05:00
Clint 3355c1528d provider/aws: Fix typo in ELB import test (#6886) 2016-05-26 03:38:39 -05:00
clint shryock 6f04c36a1a provider/aws: Ranomize LB names so tests can run at the same time 2016-05-26 03:37:54 -05:00
David Adams 8a4fdc3dd5 Update docs for lookup() interpolation function
Add specifics about using the optional third argument for providing a
default value.
2016-05-25 19:35:09 -05:00
David Adams b5d1279107 Allow specifying a default value to lookup()
Fixes #4474, where lookup() calls fail out the entire interpolation when
the provided key value is not found in the map. This will allow using
coalesce() along with lookup() to greatly improve module flexibility.
2016-05-25 19:25:15 -05:00
clint shryock 7be7e395cc update from godep save ./... 2016-05-25 16:59:41 -05:00
clint shryock 2539096e34 run godep update go-datadog-api 2016-05-25 16:58:39 -05:00
Clint a8de40090a Update aws.erb
fix missing `>`
2016-05-25 11:48:40 -05:00
Clint dfd4885c7b Update CHANGELOG.md 2016-05-25 11:05:15 -05:00
Clint 983b6710a5 provider/aws: Add per user, role and group policy attachment (supersedes #5816) (#6858)
* Add per user, role and group policy attachment

* Add docs for new IAM policy attachment resources.

* Make policy attachment resources manage only 1 entity<->policy attachment

* provider/aws: Tidy up IAM Group/User/Role attachments
2016-05-25 11:03:43 -05:00
Clint 03ad32860a Update CHANGELOG.md 2016-05-25 11:00:08 -05:00
David Glasser b3425447e5 provider/aws: fix aws_security_group_rule refresh (#6730)
When two rules differ only in source security group, EC2 APIs return
them as a single rule, but Terraform requires separate
aws_security_group_rule resources.

6bdab07174 changed Read to set source_security_group_id (and
cidr_blocks) from the rule returned from EC2 and chose the first
source_security_group_id arbitrarily, which is wrong.

Makes TestAccAWSSecurityGroupRule_PartialMatching_Source pass again.

Also adds a comment noting that there is a bug in the new resource
importing feature.

Fixes #6728.
2016-05-25 10:59:41 -05:00
amangoel f891ab81f4 Update variables.html.md (#6869) 2016-05-25 16:38:32 +01:00
Calle Pettersson 00be33eb40 Implement fixed_ip on floating ip allocations 2016-05-25 13:50:32 +02:00
Paul Stack 8cc00d6848 Update CHANGELOG.md 2016-05-25 11:24:42 +01:00
Joe Topjian 9f53f77ad9 provider/openstack: Ensure CIDRs Are Lower Case (#6864)
This commit ensures that CIDR arguments are converted into lower
case values, specifically for IPv6 addresses.
2016-05-25 11:24:07 +01:00
Paul Stack 00e6e0e6df Update CHANGELOG.md 2016-05-25 11:21:56 +01:00
dkalleg a47ad103e2 Adding volume resource creation to vSphere provider (#6273)
Allows the user to create a vmdk in vSphere to the given path. In the
future this could support updates for rename and move.
2016-05-25 11:21:16 +01:00
Linda Xu 38ac748b88 support aurora instance's parameter group and modifyinstance 2016-05-24 21:46:00 -07:00
Joe Topjian 322c885ea6 Update CHANGELOG.md 2016-05-24 20:05:41 -06:00
Joe Topjian f3eae849da Merge pull request #6454 from cristicalin/neutron_floatingip_tenant_id
provider/openstack allow floating ip to target a specific tenant
2016-05-24 20:04:24 -06:00
Paul Hinze 05b9f6768c Update CHANGELOG.md 2016-05-24 18:35:08 -05:00
Paul Hinze f570d13a08 Merge pull request #6811 from hashicorp/f-no-plan-state-persist
core: Do not persist state after plans
2016-05-24 18:25:44 -05:00
Paul Hinze aee1520ac5
core: Make refresh message explicitly point out lack of state persist
Helps make clear to users that refresh only occurs in-memory during plan

per @jen20's recommendation
2016-05-24 18:07:56 -05:00
Paul Stack 38c69b70d6 Update CHANGELOG.md 2016-05-24 23:02:11 +01:00