1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Commit graph

40768 commits

Author SHA1 Message Date
Andrew Herrington
43bbc505a1 Add threading to slack notification module (#47333)
* Add threading to slack notification module

* Fix sanity check

* Change thread_ts to thread_id
2018-11-06 12:04:07 -05:00
Matt Martz
9949629e5a
Add toml inventory plugin (#41593)
* First pass at a toml inventory

* Make EXAMPLES yaml

* Remove unnecessary comment

* Small formatting changes

* Add ansible-inventory option to list as TOML

* TOML inventory improvements, to allow a more simple inventory, specifically related to children

* changelog

* Simplify logic

* Dedupe _expand_hostpattern, making it available to all inventory plugins

* Don't make the TOML inventory dependent on the YAML inventory

* Quote IP address values

* Add more TOML examples

* Further cleanups

* Enable the toml inventory to run by default

* Create toml specific dumper

* 2.8

* Clean up imports

* No toml pygments lexer

* Don't raise an exception early when toml isn't present, and move toml to the end, since it requires an external dep

* Require toml>=0.10.0

* Further clean up of empty data

* Don't require toml>=0.10.0, but prefer it, add code for fallback in older versions

* Ensure we actually pass an encoder to toml.dumps

* Simplify recursive data converter

* Appease tests, since we haven't limited controller testing to 2.7+

* Update docstring for convert_yaml_objects_to_native

* remove outdated catching of AttributeError

* We don't need to catch ImportError when import ansible.plugins.inventory.toml

* Add note about what self.dump_funcs.update is doing

* Address some things

* A little extra comment

* Fix toml availability check

* Don't create an intermediate list

* Require toml file extension

* Add metadata

* Remove TOML docs from intro_inventory to prevent people from getting the wrong idea

* It's in defaults, remove note

* core supported, indicate very clearly that this is preview status
2018-11-06 10:02:36 -06:00
Martin Nečas
1441c6ad3f add old usages to network cluster (#47185)
* add old usages to network cluster

* set default value to old usages

* rename cluster_network_service to cluster_network_entity
2018-11-06 10:36:27 -05:00
Felix Fontein
602d02be5f Add docker_container_facts module. (#48062) 2018-11-06 15:08:28 +00:00
Konstantin Shalygin
8c9070ec05 mail: fixed STARTTLS module working with python 3.7.0 (#47412) 2018-11-06 09:54:51 -05:00
Dave Bendit
d7686e1bc0 [docker_network] Add handling for Python booleans in driver_options (#48105)
Fixes #26708
2018-11-06 14:39:45 +00:00
Martin Nečas
0d9c923464 ovirt require storage_domain if state is registred (#47423) 2018-11-06 08:48:45 -05:00
Mariusz Mazur
a5c8e952e8 k8s_facts: fix handling of unknown resource types (#47857) 2018-11-06 14:43:55 +01:00
Monty Taylor
c5b303fa52 Test host in inventory by name in remove_host (#45639)
The host argument is a Host object, and is used as such by
group.remove_host. However, self.hosts is a dictionary of host name to
Host object. Thus, the existing code is checking to see if the Host
object is one of the keys.

Use host.name to interact with the keys of the dictionary.
2018-11-06 08:19:58 -05:00
Abhijeet Kasurde
d4bb67cac0 ansible-doc: list types of plugin available (#47055)
This fix allows user to view types of plugin available in
ansible-doc command.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2018-11-06 13:18:59 +00:00
Lars
b6b238ae43 facts: suse: fix SLES4SAP12 detection (#44388) 2018-11-06 08:12:38 -05:00
Andrea Tartaglia
d5a4a401ea Added nonstring='passthru' when calling to_native to avoid passing a 'None' string to the ipa client (#48157) 2018-11-06 12:17:07 +00:00
Samy Coenen
1104387164 Added gitlab_runner module (#47727)
* Added gitlab_runner module
2018-11-06 12:09:17 +00:00
Deepak Agrawal
d2c7665be9
cleanp net_put temp file (#48148) 2018-11-06 12:02:01 +05:30
Jordan Borean
8a9d7b3695
win_uri: stop output from mixing with module result (#48140) 2018-11-06 11:10:03 +10:00
Jordan Borean
8787c65b65
powershell: add ability to ignore specific warnings in C# Add-Type (#47643) 2018-11-06 10:48:31 +10:00
Matt Clay
150cdd7931 Pin openshift version for k8s test.
This will avoid spontaneous test failure for new releases of openshift on PyPI.
2018-11-05 15:59:57 -08:00
Matt Clay
6a351c9c86 Add Makefile to simplify upstream releases. 2018-11-05 15:38:44 -08:00
Toshio Kuratomi
1156014d9c Fix regression in synchronize when using ssh passwords
The change to add sshpass support for rsync broke synchronize when
a password was provided at all.  Have to convert an int into a string to
make it work.
2018-11-05 15:06:35 -08:00
Sam Doran
8c49fd2a2c
Adjust pause test (#48125)
Use send() rather than sendlin() calls when testing interactive prompting and echo.
2018-11-05 17:03:41 -05:00
Sam Doran
066af3b6ca
User module - allow bang and exclamation in password field without warning (#46498)
* Allow bang and exclamation without warning

Allow the password field to be ! or * without warning when using this feature to create accounts that are locked.

Add documentation  and tests to cover this.

* Use set() rather than braces for Python 2.6
2018-11-05 16:35:10 -05:00
Adam Miller
1c777976c5 Correct yum and dnf autoremove behavior (#47902)
* Correct yum and dnf autoremove behavior

Sanity check args passed to autoremove

Fixes #47184

Signed-off-by: Adam Miller <admiller@redhat.com>

* fix docs

Signed-off-by: Adam Miller <admiller@redhat.com>
2018-11-05 16:00:42 -05:00
Yauhen Kirylau
14037443de fix(tasks: synchronize): wrap in sshpass if ssh password was provided (#30743)
* fix(tasks: synchronize): wrap in sshpass if ssh password was provided

Closes #16616

* fix(tasks: synchronize): pass rsync password to sshpass via fd

* fix(tasks: synchronize): use fail_json instead of AnsibleError

* fixup! fix(tasks: synchronize): use fail_json instead of AnsibleError

fix python2 handling

* feat(module_utils: basic: run_command): add optional arguments `pass_fds` and `before_communicate_callback`

* fix(tasks: synchronize): use module.run_command instead of subprocess.Popen

* fixup! fix(tasks: synchronize): use module.run_command instead of subprocess.Popen

remove unused import

* fixup! fixup! fix(tasks: synchronize): use module.run_command instead of subprocess.Popen

pass_fds only if they passed to run_command()
2018-11-05 15:00:34 -05:00
Deric Crago
7f3c21f628 bump version of 'vcenter-test-container' to '1.4.0' (govmomi v0.19.0) 2018-11-05 11:57:15 -08:00
Dag Wieers
e21270988c
aci_epg: parameter bd is not required (#47999) 2018-11-05 19:34:15 +01:00
Matt Martz
cb5626cc09
Fix return statement where we short circuit _get_delegated_vars (#48102) 2018-11-05 12:28:34 -06:00
Dag Wieers
df6b0b0e9e aci_aptiplp: Support missing policy_group (#48000)
* aci_aptiplp: Support missing policy_group

* Adapt integration tests to fix

* Add changelog fragment

* Fix

Co-Authored-By: dagwieers <dag@wieers.com>
2018-11-05 18:21:01 +00:00
Dag Wieers
d1f6ff646a aci_iplpg: Support missing aep (#48001)
* aci_iplpg: Support missing aep
2018-11-05 18:20:23 +00:00
Dag Wieers
591b074e43
aci_switch_leaf_selector: Support missing policy_group (#47992)
* aci_switch_leaf_selector: Support empty policy_group

* Reorganize code

* Adapt integration tests to fix
2018-11-05 19:02:06 +01:00
Seebi
ee13bc248b ldap_attr bugfix (#48009) 2018-11-05 17:20:37 +00:00
Gaël Lambert
0c95453a70 Doc: k8s_raw_module fixing typo K8S_AUTH_HOST -> K8S_AUTH_KEY_FILE (#46947)
The current doc of k8s_raw_module contain a copy paste of the env var name :

```
host   :
Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.
key_file  : Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_HOST environment variable.
```
2018-11-05 12:13:57 -05:00
Matt Martz
45ff6df1af Remove Deprecated configs 2.8 (#46825)
* Removed deprecated ANSIBLE_HOSTS

* Bump sudo/su configs to match deprecation version for cli and playbook args

* Bump include configs to match deprecation version for 'include'
2018-11-05 12:08:13 -05:00
Felix Fontein
2728a22f73 Add docker_prune module (#48063)
* Add docker_prune module.

* Fix spelling error.
2018-11-05 17:05:26 +00:00
Miguel Angel Muñoz González
c1385b6073 Initial commit for fortios_ips_sensor (#46081)
* Initial commit for fortios_ips_sensor
2018-11-05 16:59:30 +00:00
Simon Dodsley
26ad33bd8a New Pure Storage FlashArray module to enable/disable Remote Assist (#47592) 2018-11-05 16:58:04 +00:00
Chris Archibald
0cf88809ef Fix argument_spec for modules that are using the old version (#47693)
* Use correct argument spec
2018-11-05 16:56:59 +00:00
Pilou
6f8ffeb6bf tower{job,workflow}_template: use same retries value (#47865) 2018-11-05 16:56:19 +00:00
Chris Archibald
8f3e297d7d NetApp bugfix for na_ontap_snapmirror (#47621)
* Bug fixes for Snapmirror

* Bug fixes for Snapmirror
2018-11-05 16:53:29 +00:00
Dag Wieers
2c0707c034
Add missing MSC support
This was missing from PR #46116
2018-11-05 16:38:37 +01:00
Matthias Fuchs
7e8d9081a7 Make the flatpak module work with Python 3.
Fixes #46994
Fixes #46995
2018-11-05 10:00:42 -05:00
e-taylor
90ea6c8d12 add support for the --be-name option (#43030)
* add support for the --be-name option
2018-11-05 09:27:38 -05:00
Brian Coca
6c987a13f9 updated some callback info 2018-11-05 09:19:41 -05:00
Miguel Angel Muñoz González
3e16eb1cb6 Initial commit for fortios_system_sdn_connector (#46105)
* Initial commit for fortios_system_sdn_connector

* Update fortios_system_sdn_connector.py

* Update fortios_system_sdn_connector.py

* Updated HTTPS handling
2018-11-05 13:23:46 +00:00
Miguel Angel Muñoz González
6e97e53b7f Initial commit for fortios_system_central_management (#46067)
* Initial commit for fortios_system_central_management

* Update Ansible version

* Update fortios_system_central_management.py

* Update fortios_system_central_management.py

* Updated HTTPS handling
2018-11-05 13:20:55 +00:00
Miguel Angel Muñoz González
197d329139 Initial commit for fortios_application_list (#46198)
* Initial commit for fortios_application_list

* Update key for deleting

* Update fortios_application_list.py

* Update fortios_application_list.py

* Updated HTTPS handling
2018-11-05 13:17:03 +00:00
Miguel Angel Muñoz González
b614e1027e Initial commit for fortios_webfilter_content_header (#46393)
* Initial commit for fortios_webfilter_content_header

* Updated HTTPS handling
2018-11-05 13:16:35 +00:00
Miguel Angel Muñoz González
5be9658e22 Initial commit for fortios_webfilter_seach_engine (#46404) 2018-11-05 13:13:06 +00:00
Miguel Angel Muñoz González
d2d5f22140 Initial commit for fortios_webfilter_fortiguard (#46394) 2018-11-05 13:12:39 +00:00
Miguel Angel Muñoz González
0d9639a444 Initial commit for fortios_firewall_address (#46406) 2018-11-05 13:06:42 +00:00
Miguel Angel Muñoz González
476212adad Initial commit for fortios_firewall_addrgrp (#46408) 2018-11-05 13:06:21 +00:00