Jose Rodriguez
14e3febb2c
Prevent utf-8 codec error in py3 ( #44228 )
...
Cannot upload templates in Python 3.x. Gives utf-8 codec error.
Fixes this by opening the template file in binary mode.
2018-08-23 14:33:00 -04:00
Christian Rebischke
66a8711ecb
fixed proxmox_kvm documentation ( #44308 )
...
The documentation defines `cpu` as:
```
default cpu type
default value: kvm64
```
Therefore defining `cpu` with `8` in the `examples` section makes no
sense. So changing to `cores`.
Signed-off-by: Christian Rebischke <Chris.Rebischke@posteo.de>
2018-08-18 05:39:18 -04:00
ssemyonov
7a4517a067
Introduce `force` and `verbose` options in serverless module ( #43947 )
...
* Introduce `force` and `verbose` options in serverless module
* Add "version_added: 2.7" for the new `force` and `verbose` options
2018-08-10 12:30:36 -04:00
Rémi REY
48280463f2
modules/terraform: fix -no-color position in workspace command ( #43644 )
2018-08-03 13:14:14 -04:00
Rémi REY
32c01644d4
modules/terraform: use -no-color option in workspace commands ( #43628 )
2018-08-03 08:24:57 -04:00
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
Petr Ruzicka
4e4ae1508e
Removing required from documentaion of name parameter ( #43530 )
...
* Removing required from documentaion of name parameter
* extra text to make clearer when name is required
2018-08-02 17:37:14 +10:00
bpetit
9bd7bd5d46
[docs] Document requirements for `plan_file` option in terraform module ( #42514 )
...
plan_file is required if state: planned is used. This should be mentionned in the documentation.
+label: docsite_pr
2018-07-09 10:19:29 -04:00
Ryan Brown
52b79a87ee
Terraform: Pass module targets to terraform plan as well as apply ( #40958 )
...
* Pass module targets to terraform plan as well as apply
* Fix undefined variable
* Add target for plan-only operation
2018-05-31 14:35:40 -04:00
René Moser
e7709e169a
new module cloud_init_data_facts ( #37932 )
...
* add new module cloud_init_facts
* rename cloud-init facts
* simplify
* re-add tests
* make test run on ubuntu except 14.04
2018-05-25 07:44:24 +02:00
Robin Lee
d45b044992
Make xenserver_facts actually work ( #35821 )
...
* Get the str value of xmlrpc.client.DateTime
* get_all_records should be used instead of get_all
* Facts returned with 'ansible_facts'
* Remove some redundant code
* Add cheese as maintainer
* Add changelog entry
2018-05-22 13:31:35 -04:00
Ryan S. Brown
9a607283aa
Terraform module: pass `plan_file` argument correctly
...
Per #39611 the `terraform` module wasn't properly building plan-only
files.
2018-05-02 13:45:24 -04:00
John R Barker
7c4b91844d
More validate module fixes ( #39097 )
...
* Fix type bool DOCUMENTATION issues
2018-04-24 18:05:50 +01:00
Ryan Brown
f428108845
[terraform] Disable input prompts during terraform init/plan/apply ( #38842 )
...
Per Hashicorp's [guidelines][1] for automated use of terraform CLI, this PR
adds the `-input=false` option to all the commands executed in the
module. If input is required, this causes a hard failure that will
become a module failure.
[1]: https://www.terraform.io/guides/running-terraform-in-automation.html
2018-04-20 12:28:49 -04:00
Dustin Rue
dbd0272f2e
Update proxmox_kvm.py ( #39045 )
2018-04-20 09:06:53 +02:00
Abhijeet Kasurde
ae7e391dab
Minor fixes in terraform module ( #38438 )
...
This fix adds following -
* Check for None or blank value in project_path
* Make terraform binary path as required
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2018-04-16 08:43:13 -04:00
Stanislav Simovski
a00abcb003
[terraform] Fixed typo in preflight_checks ( #38740 )
...
The function was incorrectly reporting project path when it failed to find binary.
2018-04-13 16:32:41 -04:00
Sascha Marcel Schmidt
50761bef0a
changes description to match module ( #31364 )
2018-04-02 11:24:15 -04:00
Matt Clay
aee01564a9
Clean up non-standard module shebangs.
2018-03-21 11:04:55 -07:00
Dag Wieers
cdd21e2170
Clean up module documentation ( #36909 )
...
* Clean up module documentation
This PR includes:
- Removal of `default: None` (and variations)
- Removal of `required: false`
- Fixing booleans and `type: bool` where required
* Fix remaining (new) validation issues
2018-03-15 22:15:24 +01:00
Mikhail Naletov
3bf6c50fa9
terraform: fixed typo, name error sdtout -> stdout ( #37253 )
2018-03-10 23:44:37 +01:00
Mikhail Naletov
51558f12f4
Added variables to destroy command ( #37028 )
2018-03-05 16:09:03 -05:00
Mikhail Naletov
7d0e1f92f4
[terraform] Support initializing modules and providers at runtime ( #36996 )
...
* Fixes #36994
Added function for force initializing modules and providers
Added type for force_init parameter
2018-03-05 11:01:53 -05:00
Mikhail Naletov
7ade607525
Add variables and variable_file in terraform module ( #36879 )
...
* Fixes #36837
Added terraform variables for validate command
* Fixes #36837
Changed method from append to extend.
2018-03-01 12:50:49 -05:00
kbreit
9018c63e56
Improved language around XML description. ( #36263 )
...
* Improved language around XML description.
* Moved details on second line
2018-02-16 11:15:17 +01:00
Charl van Niekerk
5861d3333c
Corrected the helm module documentation to the correct default state (installed -> present). ( #35950 ) ( #35951 )
2018-02-13 13:34:17 +01:00
Martin Perina
138de603d9
Fix the oVirt high_performance VM type description.
2018-02-06 03:38:12 -05:00
Yaniv Kaul
56ce2773c5
Adds the oVirt High Performance (high_performance) VM type.
2018-02-06 03:38:12 -05:00
Matt Clay
227ff61f9d
Add module support to yamllint sanity test. ( #34964 )
...
* Add module support to yamllint sanity test.
* Fix duplicate keys in module RETURN docs.
* Fix syntax in return_common docs fragment.
* Fix duplicate keys in module EXAMPLES docs.
2018-01-16 15:08:56 -08:00
Ryan Brown
9233520b31
New module: Terraform ( #31214 )
...
* First pass at Terraform module
* Support output variables
* Support idempotent plan checks and external plan files
* Add check mode support
* Support custom statefile location & remove color-coding from shell output
* Docs
* Let missing statefile hard-fail
* Update to support present/planned/absent states
* PEP8
* Add docs & fix python 2.6 incompatibility
* PEP8
* PEP8
2018-01-10 13:52:28 -05:00
Matt Martz
70cafcdef6
First pass at fixing #33064 ( #33636 )
2018-01-08 18:13:22 -05:00
John Barker
c57a7f05e1
Bulk autopep8 (modules)
...
As agreed in 2017-12-07 Core meeting bulk fix pep8 issues
Generated using:
autopep8 1.3.3 (pycodestyle: 2.3.1)
autopep8 -r --max-line-length 160 --in-place --ignore E305,E402,E722,E741 lib/ansible/modules
Manually fix issues that autopep8 has introduced
2017-12-07 20:25:55 +00:00
Abhijeet Kasurde
961c3fcca7
Add missing comma in lists ( #33557 )
...
This fix adds missing comma in different modules.
This removes implicit string concatenation in given list.
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-12-05 15:44:56 +01:00
Ryan S. Brown
b611c92626
Fix incomplete sentence in serverless module docs
2017-11-27 11:40:31 -05:00
Matt Clay
9735a70059
Fix invalid string escape sequences.
2017-11-21 20:59:08 -08:00
Wojciech Knapik
115f6f6732
Added `helm` release updates. Fixes #32545 . ( #32593 )
2017-11-15 14:24:44 -05:00
Satyajit Bulage
1857d11034
ovirt: PEP8 compliancy fixes ( #32316 )
...
* ovirt: PEP8 compliancy fixes
This PR includes:
- PEP8 compliancy fixes
Signed-off-by: Satyajit Bulage <sbulage@redhat.com>
* Improve documentation
* Update documentation
* Update documentation
* Update documentation
* Fix legacy-files.txt
* Update documentation
* Fix PEP8 issue
* Fix PEP8 issue
* Fix another PEP8 issue
* More typo fixes
* Yet another PEP8 typo
2017-11-07 11:50:33 +01:00
Dag Wieers
0ef87c849f
virt: PEP8 compliancy and doc fixes ( #30917 )
...
This PR includes:
- PEP8 compliancy fixes
- Documentation fixes
2017-09-27 22:37:54 -04:00
Matt Clay
7714dcd04e
Enable more pylint rules and fix reported issues. ( #30539 )
...
* Enable pylint unreachable test.
* Enable pylint suppressed-message test.
* Enable pylint redundant-unittest-assert test.
* Enable pylint bad-open-mode test.
* Enable pylint signature-differs test.
* Enable pylint unnecessary-pass test.
* Enable pylint unnecessary-lambda test.
* Enable pylint raising-bad-type test.
* Enable pylint logging-not-lazy test.
* Enable pylint logging-format-interpolation test.
* Enable pylint useless-else-on-loop test.
2017-09-18 23:20:32 -07:00
Toshio Kuratomi
c82cf791dd
Add a code-smell test for smart quotes and remove smart quotes from all files
2017-09-18 16:49:16 -07:00
Toshio Kuratomi
f203ca7907
Update metadata to 1.1
2017-08-15 23:12:08 -07:00
Pierre-Louis Bonicoli
c52f355bcb
serverless: fix broken import
2017-08-12 10:39:10 -07:00
DavidVentura
c85b36d220
Fix Proxmox module crashing if the hostname doesn't exist and there's no vmid ( #21305 )
...
* fail the execution instead of panicking when the hostname is not found and the vmid was not provided
* return an empty vmid list if the hostname doesn't exist
2017-08-02 15:42:05 +01:00
Toshio Kuratomi
8de6cff2b1
more wildcards
2017-07-29 07:02:12 -07:00
Toshio Kuratomi
225fa5d092
Fix undefined variables, basestring usage, and some associated python3 issues
2017-07-25 15:58:23 -07:00
Quentin Dawans
613690bd46
Proxmox set number of cores for vm/ct ( #25901 )
...
* Proxmox set number of cores for vm/ct
Argument to limit the number of assigned core to a vm/ct
* version_added & pep8
* default to 1
2017-07-15 10:51:13 +01:00
Daniel Parker
800de2b0ce
[cloud] Adds custom serverless binary path option to the serverless module ( #26304 )
2017-07-07 11:08:26 -04:00
Ryan S. Brown
2a7e586801
Move helm module to subdirectory
2017-06-21 07:45:41 -04:00
Abhijeet Kasurde
c426481b33
Add command variable in failure message ( #25674 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-06-15 10:45:40 -07:00
Abhijeet Kasurde
01eb70bdee
Remove unwanted params from function call ( #25348 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-06-05 11:04:39 -04:00