community.general/lib/ansible/modules/cloud
Rémi REY 0461620b2d Terraform: add workspace support for switching and removing workspaces (#43489)
From terraform documentation:
```
The persistent data stored in the backend belongs to a workspace. Initially the backend has only one workspace, called "default", and thus there is only one Terraform state associated with that configuration.

Certain backends support multiple named workspaces, allowing multiple states to be associated with a single configuration. The configuration still has only one backend, but multiple distinct instances of that configuration to be deployed without configuring a new backend or changing authentication credentials.
```

This patch introduces the `workspace` parameter in the terraform module. The module will select
the workspace is it does not exists, or simply select it if it exists.

Fixes #43134

Add 'purge_workspace' parameter and handle the workspace context

The `purge_workspace` parameter allows to remove a workspace when asking for state = absent.
It allows to leave a clean state file without empty workspaces if the parameter is true.

Also adding the support of a workspace context that allows to restore the workspace
when that was active when the module started.
2018-08-02 09:37:26 -04:00
..
amazon Leading dot in efs_facts.mountpoint (#35909) 2018-08-01 06:32:06 -04:00
atomic Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
azure Replaced old sample in lb (#43591) 2018-08-02 15:02:44 +08:00
centurylink More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
cloudscale dictionary changed size during iteration error (#37454) 2018-04-03 06:13:09 -04:00
cloudstack cs_vpc: fix disabled or wrong vpc offering taken (#42465) 2018-07-09 08:31:13 +02:00
digital_ocean Add AnsibleModule signature schema, and fix associated issues (#43512) 2018-07-31 15:04:22 -05:00
dimensiondata Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
docker Correct link to Getting Started with Docker Guide (#42709) 2018-07-26 10:39:01 -05:00
google Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
heroku New module: heroku_collaborator (#39001) 2018-05-22 11:50:53 +02:00
linode Add module support to yamllint sanity test. (#34964) 2018-01-16 15:08:56 -08:00
lxc Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
lxd Bulk autopep8 (modules) 2017-12-07 20:25:55 +00:00
memset New Memset module to request DNS reloads (#40390) 2018-05-25 00:30:25 +02:00
misc Terraform: add workspace support for switching and removing workspaces (#43489) 2018-08-02 09:37:26 -04:00
oneandone More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
opennebula Add AnsibleModule signature schema, and fix associated issues (#43512) 2018-07-31 15:04:22 -05:00
openstack [openstack] add endpoint_type parameter to examples (#41979) 2018-06-27 08:26:03 -04:00
ovh Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
ovirt Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
packet Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
profitbricks More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
pubnub Update metadata to 1.1 2017-08-15 23:12:08 -07:00
rackspace Update Jesse Keating's github id (#39904) 2018-05-11 07:38:15 +02:00
scaleway Added Scaleway volume module (#41667) 2018-07-12 08:43:23 -05:00
smartos Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
softlayer sl_vm: PEP8 compliancy and documentation changes (#32657) 2017-11-15 15:22:32 -05:00
spotinst Add module support to yamllint sanity test. (#34964) 2018-01-16 15:08:56 -08:00
univention Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
vmware Fix all VMware examples to use delegate_to (#43426) 2018-08-01 09:10:57 +05:30
vultr Vultr: Introducing vr_startup_script_facts module (#43004) 2018-07-20 20:32:32 +02:00
webfaction Convert more http links to https. 2018-04-25 23:12:46 -07:00
__init__.py package files 2016-12-08 11:22:22 -05:00