Commit graph

14372 commits

Author SHA1 Message Date
Fabio Alessandro Locati
ccb9cb38d9 Native YAML (#3574) 2016-12-08 11:35:11 -05:00
Fabio Alessandro Locati
53448af053 Native YAML (#3573) 2016-12-08 11:35:11 -05:00
Fabio Alessandro Locati
dfb6861a94 Native YAML (#3593) 2016-12-08 11:35:11 -05:00
Fabio Alessandro Locati
34a504ea10 Native YAML (#3585)
* Native YAML

* Fix YAML lists
2016-12-08 11:35:11 -05:00
dimid
0c320e1c17 Fix name/package parameter convert when passed list of values using with_items. (#3556) 2016-12-08 11:35:11 -05:00
René Moser
c3c2427cbb cloudstack: new module cs_region (#3568) 2016-12-08 11:35:11 -05:00
Fabio Alessandro Locati
aef588f3a3 Use native YAML (#3440)
* Use native YAML

* Add comment on quotes and column
2016-12-08 11:35:11 -05:00
Dorian Dietzel
1f32d68310 Added new option to select the active a10 partition (#2628)
* Added new option to select the active a10 partition

* added version_added to the description of the new option

* added RETURN documentation

* fixed indents

* Removed empty cases, removed unneeded aliases

* removed artifacts from merging

* updated version_added to 2.3

* removed host, username and password option

* removed write_config and validate_certs documentation
2016-12-08 11:35:11 -05:00
Aaron Chen
fa4b353da8 elasticsearch-plugin: fix local variable 'name' referenced before assignment (#3431) 2016-12-08 11:35:11 -05:00
Toshio Kuratomi
82475637ef Remove iteritems from portage module for python3 2016-12-08 11:35:11 -05:00
William L. Thomson Jr
e95641f371 Portage module improvements (#3520)
* packaging/os/portage.py: Added portage parameter --keep-going

* packaging/os/portage.py: Added portage parameter --load-avg [FLOAT]

* packaging/os/portage.py: Added portage parameter --jobs[=INT]

* packaging/os/portage.py: Added myself to Authors
2016-12-08 11:35:11 -05:00
Matt Clay
380ce0c3a7 Fix ast parse issue for python 2.6. 2016-12-08 11:35:11 -05:00
Jesse Keating
f6e47e4055 Handle empty datadog_monitor message (#3468)
Since message is not required, it may be of type None, which cannot have
a replace() called on it.
2016-12-08 11:35:10 -05:00
John R Barker
7e6fe97f57 Update version_added, update docs (#3542)
k: v in docs now

Minor tweaks after https://github.com/ansible/ansible-modules-extras/pull/1883
2016-12-08 11:35:10 -05:00
Dorn-
fb610b7d07 Add a new module to handle schema with postgres (#1883) 2016-12-08 11:35:10 -05:00
Eric Chou
c570d533b9 add a10_server_axapi3 module (#3239)
* add a10_server_axapi3 module

* added return documentation

* modified a10_server_axapi3.py per feedback

* fixed line 60 s/action/operation/

* modified a10_server_axapi3.py per feedback

* modified a10_server_axapi3.py per feedback

* corrected YAML format error in documentation

* removed slp_server_ip and slp_server check in code since the arguments are labeled as required, per feedback

* 	modified:   a10_server.py
	modified:   a10_service_group.py
	modified:   a10_virtual_server.py

Changed main() block, restricted import to only functions used.

* removed space for main() to be last line

* removed invalid lines

* Modified Documentations for a10_server.py, a10_service_group.py, a10_virtual_server.py

* Take out alias:[] and choices:[] in Documentation from a10_service_group.py and a10_virtual_server.py since they are now the default

* deleted a10_server.py, a10_service_group.py, a10_virtual_server.py

* deleted 'version_last_modified' line in Documentation across a10_server.py, a10_service_group.py and a10_virtual_server.py as they were added in error, change validate_certs version_added in a10_server.py

* added newline after main()

* added newline after main() for a10_server_axapi3.py
2016-12-08 11:35:10 -05:00
Alexey Kostyuk
d1304eb749 Add ipinfoio_facts module (#3497)
* Add ipinfoio_facts module

* Updated ipinfoio_facts module docs
2016-12-08 11:35:10 -05:00
Andrea Tartaglia
a6c0227a8f py3 - ported ec2_vpc_route_table iterkeys to dict.keys() (#3503)
* ported ec2_vpc_route_table iterkeys to dict.keys() for py3

Addresses ansible/ansible#18507

* Removed '.keys()'
2016-12-08 11:35:10 -05:00
René Moser
5374c7cd09 cloudstack: cs_instance: implement vpc support (#3402)
* cloudstack: cs_instance: implement vpc support

* cloudstack: cs_instance: distinguish VPC and non VPC VMs
2016-12-08 11:35:10 -05:00
René Moser
46e1380532 cs_snapshot_policy: extend volume determination (#3500) 2016-12-08 11:35:10 -05:00
Saravanan K R
b8a93bcfe1 Update the code fragment contents to have correct format (#3342) 2016-12-08 11:35:10 -05:00
René Moser
3b60cb3847 cloudstack: cs_snapshot_policy: ignore intervaltype in has_changed (#3499)
Fixes ValueError: invalid literal for int() with base 10: 'daily'
2016-12-08 11:35:10 -05:00
Ryan Brown
5940c705a3 Create serverless module for handling Serverless Framework deploys (#3352)
* Create `serverless` module for handling deploys on the Serverless Framework

* fix interpreter line

* Successfully exit when a stage is already absent
2016-12-08 11:35:10 -05:00
Jiri Tyr
c7ae273f13 Making yum_repository module compatible with Python 3 (#3487) 2016-12-08 11:35:10 -05:00
Ondra Machacek
36f1ecc5be Add oVirt ovirt_hosts and ovirt_storage_hosts_facts modules (#3225) 2016-12-08 11:35:10 -05:00
Ondra Machacek
b4716df3ef Add oVirt ovirt_host_networks modules (#3227) 2016-12-08 11:35:10 -05:00
Ondra Machacek
7da62366ed Add oVirt ovirt_host_pm module (#3253) 2016-12-08 11:35:10 -05:00
Berislav Lopac
7f351a46e5 replace iteritems with items to ensure python3 compatibility 2016-12-08 11:35:10 -05:00
Andy Dirnberger
3a26a1bfcc Make Homebrew-related modules run on Python 3
Both the `homebrew` and `homebrew_cask` modules iterate over
dictionaries using `iteritems`. This is a Python 2-specific method whose
behavior is similar to `items` in Python 3+. The `iteritems` function in
the six library was designed to make it possible to use the correct
method.
2016-12-08 11:35:09 -05:00
Michael Scherer
64c994c641 Make the 'make' module run on python 3
Traceback:

    Traceback (most recent call last):
      File \"/tmp/ansible_d28_6uwl/ansible_module_make.py\", line 153, in <module>
        main()
      File \"/tmp/ansible_d28_6uwl/ansible_module_make.py\", line 119, in main
        rc, out, err = run_command(base_command + ['--question'], module, check_rc=False)
      File \"/tmp/ansible_d28_6uwl/ansible_module_make.py\", line 79, in run_command
        return rc, sanitize_output(out), sanitize_output(err)
      File \"/tmp/ansible_d28_6uwl/ansible_module_make.py\", line 95, in sanitize_output
        return output.rstrip(b(\"\\r\\n\"))
    TypeError: rstrip arg must be None or str

There is also a six.iteritems issue, fixed using six.
2016-12-08 11:35:09 -05:00
Rene Moser
583944207d redshift: fix version added 2016-12-08 11:35:09 -05:00
Koki Nomura
8ccf166a56 blockinfile: Fixes #1926 by comparing a marker to a whole line instead of a line prefix (#3339) 2016-12-08 11:35:09 -05:00
Marius Gedminas
cffd5601b6 letsencrypt: Locale-independent date parsing (#3314)
Should fix #3155.
2016-12-08 11:35:09 -05:00
Jiri Tyr
9453f6b97a yum_repository: Add diff support (#3460) 2016-12-08 11:35:09 -05:00
Jens Carl
90e0dc2a89 redshift: Fix error with boolean parameters (#3467) 2016-12-08 11:35:09 -05:00
Matthew Krupcale
cb765ce590 gluster_volume: Fixes gluster peer probe / volume creation issue. (#3486)
* gluster_volume: Fixes issue when creating a new volume failing due to peers not being present. The peers which are not 'localhost' should invoke wait_for_peer, but the find method returns -1 (not 0) on non-localhost peers.
2016-12-08 11:35:09 -05:00
Dag Wieers
c8a700834c Performance improvement using in-operator for hash lookups
Just a small cleanup for the existing occurrences.

Using the in-operator for hash lookups is faster than using .has_key()
http://stackoverflow.com/questions/1323410/has-key-or-in
2016-12-08 11:35:09 -05:00
Dag Wieers
a417a4f4b3 Performance improvement using in-operator on dicts
Just a small cleanup for the existing occurrences.

Using the in-operator for hash lookups is faster than using .keys()
http://stackoverflow.com/questions/29314269/why-do-key-in-dict-and-key-in-dict-keys-have-the-same-output
2016-12-08 11:35:09 -05:00
Nijin Ashok
b06003e5d2 Fix issue in adding RAW disk in block storage domain (#3432)
By default, sparse option is true in ovirt. So the raw disk
    creation in a block storage domain will fail with error "Disk
    configuration (RAW Sparse) is incompatible with the storage domain
    type".

    The commit adds sparse option where it is send as False when
    format is raw and True when format is qcow2
2016-12-08 11:35:09 -05:00
Maarten Bezemer
dd51ec94e7 mongodb_user: Allow pymongo version 3.2 in combination with mongodb 3.2 (#3474) 2016-12-08 11:35:09 -05:00
René Moser
ae9bc0cded cloudtack: cs_instance: doc fix for missing tag alias (#3484) 2016-12-08 11:35:09 -05:00
René Moser
a0c8b598ff cloudstack: fix state=absent, ip_address not None but falsy (#3483) 2016-12-08 11:35:09 -05:00
Abdoul Bah
318a06f6d6 New module proxmox_kvm (#3292)
* New module proxmox_kvm

* fixed qxl value vor vga param

> | Name | Type | Format | Description |
> |------|------|--------|-------------|
> | vga | enum | std \| cirrus \| vmware \| qxl \| serial0 \| serial1 \| serial2 \| serial3 \| qxl2 \| qxl3 \| qxl4 | Select the VGA type. If you want to use high resolution modes (>= 1280x1024x16) then you should use the options 'std' or 'vmware'. Default is 'std' for win8/win7/w2k8, and 'cirrus' for other OS types. The 'qxl' option enables the SPICE display sever. For win* OS you can select how many independent displays you want, Linux guests can add displays them self. You can also run without any graphic card, using a serial device as terminal. |

* Fix create_vm() fail on PV 4.3

* Set default for force as null in doc

* proxmox_kvm: revision fixes

* proxmox_kvm: more revision fixes

* Fix indentation

* revision fixes

* Ensure PEP-3110: Catching Exceptions

* KeyError, to KeyError as -- PEP-3110: Catching Exceptions

* Fix Yaml document syntax; Notes: => Notes -

* Refix documentation issue

* Fix Documentation

* Remove Notes: in description

* Add current state and it return value

* Update documentation

* fixed local variable 'results' referenced before assignment

* Fix fixed local variable 'results' referenced before assignment

* minor fixes in error messages

* merge upstream/devel int devel

* minor fixes in error messages

* Fix indentation and documentation

* Update validate_certs description
2016-12-08 11:35:09 -05:00
Brian Haggard
84e79770b3 Required and default are mutually exclusive (#3475) 2016-12-08 11:35:09 -05:00
René Moser
72eb8c7be9 ipify_facts: implement timeout (#3369) 2016-12-08 11:35:08 -05:00
jctanner
d2bb9c1298 vmware_guest: Fix the esxi_hostname docstring to match the arg dict's required= (#3479)
Fixes #3476
2016-12-08 11:35:08 -05:00
Davis Phillips
c2dcf62aee removed tabs and fixed formatting 2016-12-08 11:35:08 -05:00
Davis Phillips
24e8428a7b mend 2016-12-08 11:35:08 -05:00
Davis Phillips
e51f6c18eb added vDS support for config spec and note/annotation support 2016-12-08 11:35:08 -05:00
Toshio Kuratomi
4d3fec908b Remove need for translate/maketrans due to py3 differences
* translate() has a different api for text vs byte strings
* maketrans must be imported from a different location on py2 vs py3

Since this is such a small string outside of a loop we don't have to
worry too much about speed so it's better to have a single piece of code
that works on both py2 and py3
2016-12-08 11:35:08 -05:00
Abdul-Anshad-A
c2f4e7c852 Initial effort for pyVmomi snapshot ops
Make description optional during snapshot create
2016-12-08 11:35:08 -05:00
Davis Phillips
ce7c7b6804 Removed list value from description in dns_servers 2016-12-08 11:35:08 -05:00
Davis Phillips
bb017c4af8 updated version_added to 2.3 2016-12-08 11:35:08 -05:00
Davis Phillips
ae9aa2390f Added version_added to all the new params 2016-12-08 11:35:08 -05:00
Davis Phillips
ebdd9cf1a5 remove commented code and fixed formatting 2016-12-08 11:35:08 -05:00
Davis Phillips
995cc2cd2d closes 3305 adds customize support 2016-12-08 11:35:08 -05:00
Rene Moser
e1d79f341e cloudstack: new module cs_vpc 2016-12-08 11:35:08 -05:00
René Moser
8873263894 cloudstack: add new module cs_nic (#3392) 2016-12-08 11:35:08 -05:00
Fabio Alessandro Locati
9a1b5b5e18 Use native YAML (#3435) 2016-12-08 11:35:08 -05:00
Tristan Bessoussa
f68a45ca9a Fixed wrong variable name in the let's encrypt doc (#3398)
It could lead to unwanted error when dummy-paste to try this module.
2016-12-08 11:35:07 -05:00
James Hart
276c3410a5 consul: Pass through service_id if specified on a check (#3295)
Fixes #3249
The python-consul library already supports this, so it is just a simple
case of enablement.
This does not break the current logic in `add` of parsing as a check,
then parsing as a service if that fails… because service_name is
mandatory on a service registration and is invalid on a check
registration.
2016-12-08 11:35:07 -05:00
Fabio Alessandro Locati
39f4e17838 Improve yaml code and add an if to make the import more standard (#3424) 2016-12-08 11:35:07 -05:00
Fabio Alessandro Locati
7af000bdb1 Use native YAML (#3436) 2016-12-08 11:35:07 -05:00
Fabio Alessandro Locati
1e00adefd5 Use native YAML in the examples (#3441) 2016-12-08 11:35:07 -05:00
Matthieu Dolci
8822021132 ec2_customer_gateway: state present expect bgp_arn instead of bgp_asn (#3366) 2016-12-08 11:35:07 -05:00
Fabio Alessandro Locati
69fa44b6d1 Use native YAML (#3437) 2016-12-08 11:35:07 -05:00
Fabio Alessandro Locati
616c86529f Use native YAML (#3438) 2016-12-08 11:35:07 -05:00
Fabio Alessandro Locati
be834293ed Use native YAML (#3439) 2016-12-08 11:35:07 -05:00
Fabio Alessandro Locati
0a338a11c2 Normalize yaml example (#3426) 2016-12-08 11:35:07 -05:00
Fabio Alessandro Locati
df6200accc Normalize yaml example (#3425) 2016-12-08 11:35:07 -05:00
Fabio Alessandro Locati
07d96b62b5 Use native YAML (#3434) 2016-12-08 11:35:07 -05:00
Fabio Alessandro Locati
47297bb19c Use native YAML (#3433) 2016-12-08 11:35:07 -05:00
mattwwarren
727e533bfc ec2_elb_facts: fix errors with no names input (#3381)
* None being passed around results in a Bad Time (tm)

* need to return the full set of elbs for an empty list

* logic is hard
2016-12-08 11:35:07 -05:00
Jose Armesto
14fee8d5f7 ec2_lc_find: Set default value for AssociatePublicIpAddress, since is missing when is false (#3417) 2016-12-08 11:35:07 -05:00
Thomas Krahn
9814136d3e Ipa bugfixes (#3421)
* ipa_group: Fix: 'list' object has no attribute 'get'

* ipa_hbacrule: Fix: 'list' object has no attribute 'get'

* ipa_host: Fix: 'list' object has no attribute 'get'

* ipa_hostgroup: Fix: 'list' object has no attribute 'get'

* ipa_role: Fix: 'list' object has no attribute 'get'

* ipa_sudocmd: Fix: 'list' object has no attribute 'get'

* ipa_sudocmdgroup: Fix: 'list' object has no attribute 'get'

* ipa_sudorule: Fix: 'list' object has no attribute 'get'

* ipa_user: Fix: 'list' object has no attribute 'get'

* ipa_sudorule: Fix: invalid 'cn': Only one value is allowed

* ipa_hostgroup: module returns changed if assigned hosts or hostgroups are not in lowercase
2016-12-08 11:35:06 -05:00
Jason Ritchie
0f6aa07d88 Detect and correct PowerShell mishandling nssm Unicode output as UTF8 (#2867)
* extra detail on which step triggered 'change', detect and handle powershell mishandling nssm's unicode as utf8

* Simpler handling of nssm output encoding

Thanks @nitzmahone for a cleaner way to control PowerShell's behavior
2016-12-08 11:35:06 -05:00
Henrique Rodrigues
54c5ebf697 New ec2_group_facts module to be able to get facts from EC2 security groups (#2591)
Add `ec2_group_facts` module to gather facts from EC2 security groups
2016-12-08 11:35:06 -05:00
Andrew Gaffney
a8d80f7165 Fix bare variable references in docs 2016-12-08 11:35:06 -05:00
Krzysztof Magosa
c6b08ca623 tempfile: simple module creating temporary files/directories in OS-independent manner (#2991) 2016-12-08 11:35:06 -05:00
René Moser
de3aea7c36 cloudstack: cs_ip_address: fix returns on state=present (#3406)
In case poll_job=false the return must be None
2016-12-08 11:35:06 -05:00
René Moser
0324d7a681 new module nginx_status_facts (#3286)
* new module nginx_status_facts

* nginx_status_facts: remove requirement

* nginx_status_facts: implement timeout param

* nginx_status_facts: update example docs
2016-12-08 11:35:06 -05:00
jctanner
46174588ca Refactor usage of type() (#3412)
Addresses https://github.com/ansible/ansible/issues/18440
2016-12-08 11:35:06 -05:00
Jeremy Olexa
e44362b6f8 consul_kv, consul_acl: fix missing types bool (#3327)
* Specify bool in consul_kv: validate_certs param
* Specify bool in consul_acl: validate_certs param
* Specify bool in consul_kv: retrieve param
2016-12-08 11:35:06 -05:00
Christophe Biocca
55130b960b haproxy: Fix compatibility when map is actually imap. (#3350)
While I still have no idea why or how the `map` call is being swapped out while still running in python 2.7, this change will fix the following error, as well as improve py3 compatibility.
2016-12-08 11:35:06 -05:00
jctanner
b3795322e9 More isinstance fixes (#3405)
* More isinstance fixes
* Use double types
2016-12-08 11:35:06 -05:00
Thomas Krahn
32fef233f2 Add FreeIPA modules (#3247)
* Add FreeIPA modules

* Update version_added from 2.2 to 2.3

* ipa_*: Use Python 2.4 syntax to concatenate strings

* ipa_*: Replace 'except Exception as e' with 'e = get_exception()'

* ipa_*: import simplejson if json can't be imported

* ipa_hbacrule: Fix: 'SyntaxError' on Python 2.4

* ipa_sudorule: Fix: 'SyntaxError' on Python 2.4

* ipa_*: Fix 'SyntaxError' on Python 2.4

* ipa_*: Import get_exception from ansible.module_utils.pycompat24

* Add FreeIPA modules

* Update version_added from 2.2 to 2.3

* ipa_*: Fix 'SyntaxError' on Python 2.4

* ipa_*: Replace Python requests by ansible.module_utils.url

* ipa_*: Replace Python requests by ansible.module_utils.url

* ipa_*: Add option validate_certs

* ipa_*: Remove requests from Ansible module documentation requirements

* ipa_sudorule: Remove unnecessary empty line

* ipa_sudorule: Remove markdown code from example

* ipa_group: Add choices of state option

* ipa_host: Rename options nshostlocation to ns_host_location, nshardwareplatform to ns_hardware_platform, nsosversion to ns_os_version, macaddress to mac_address and usercertificate to user_certificate and add aliases to be backward compatible
2016-12-08 11:35:06 -05:00
Kei Nohguchi
cc95bc4935 openvswitch_bridge: Check VLAN ID only under fake bridge (#3374) 2016-12-08 11:35:06 -05:00
jctanner
6cfb44b4bb replace type() with isinstance() (#3404)
Replace use of type() with isinstance()

Addresses https://github.com/ansible/ansible/issues/18310
2016-12-08 11:35:06 -05:00
Michael Scherer
81286b8912 Fix chdir argument to be 'path' 2016-12-08 11:35:06 -05:00
René Moser
e1c0d2dd09 cloudstack: cs_network: cleanup dublicate VPC code (#3393)
Code has been moved to module utils, also see fe05c5e35a
2016-12-08 11:35:06 -05:00
Rene Moser
e93bdb80d3 cloudstack: fix VPC doc 2016-12-08 11:35:05 -05:00
Jens Carl
a79386f2f5 Add support for current Redshift node types (#3328) 2016-12-08 11:35:05 -05:00
Steve Gargan
687aaa197b consul_kv: remove default token (#3373)
changes default token from "anonymous" to None. Fixes #792
2016-12-08 11:35:05 -05:00
Steve Gargan
314f1ea15a allow services to be removed by name as well as id (#3372) 2016-12-08 11:35:05 -05:00
Eric
081719cc67 Return actual queue attributes with result from sqs_queue creation/update (#1362)
* Return actual queue attributes with result

Previously this was only returning the desired queue attributes, and not even returning the QueueARN for use elsewhere.  Now it will return "results.attributes" that is retrieved with boto's get_queue_attributes().

* update return structure to reflect current SQS config; add documentation of return values

* Remove redundancy from if/else statement
2016-12-08 11:35:05 -05:00
Ryan Morlok
7095959a55 Enhanced ecs_taskdefinition module.
Added support to explicitly manage task definitions be revision. If the
revision expectations of the ansible task cannot be met, an error is
thrown.

If revision is not explicitly specified, enhanced module to be
idempotent with respect to task definitions. It will search for an
active revision of the task definition that matches the containers and
volumes specified. If none can be found, a new revision will be created.
2016-12-08 11:35:05 -05:00
Nijin Ashok
b55c973444 Fix issue in activating the VM disk while attaching disk
Currently <active> tag is passed within the disk element which is
incorrect. As a result, disk will remain inactive even though the
default option is true.
2016-12-08 11:35:05 -05:00
Travis Truman
80f622a075 Add support for filtering flavors on ephemeral storage 2016-12-08 11:35:05 -05:00
Brian Coca
7de77be7b2 corrected version added 2016-12-08 11:35:05 -05:00
Fabian Krämer
2e2f24447a Add require_full_window option for Datadog monitors (#2653) 2016-12-08 11:35:05 -05:00
Loïc
405c6820b0 Add parameter hash_host (#3204)
* Add parameter hash_host

* Fix version_added

* Remove spurious whitespace
2016-12-08 11:35:05 -05:00
Brian Coca
bd29252ee7 corrected versionadded 2016-12-08 11:35:05 -05:00
Jason Cormie
78e8709085 Allow setting the visible name of a host in zabbix (#2919)
In Zabbix, the visible name defaults to the hostname.  This is not very
useful if you try to manage vmware VMs as the so called host_name within
zabbix must be set to the vcenter UUID.

This patch allows you to provide an alias which will be shown with
zabbix.  If its not supplied it will default to host_name.
2016-12-08 11:35:05 -05:00
Brian Coca
e33303acd5 added version avialable to docs 2016-12-08 11:35:05 -05:00
Trond Hindenes
cc42d7f38c Added support for IIS AppPool identities (#2675) 2016-12-08 11:35:05 -05:00
Iago Garrido
6036bb69d9 Fixes win_uri module ignoring body argument (#2504)
* Fixes win_uri module ignoring body argument

* Added body field of the response to the documentation
2016-12-08 11:35:04 -05:00
Adam Miller
bedf56a7fd provide useful error when invalid service name provided add offline mode to firewalld permanent operations
Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
2016-12-08 11:35:04 -05:00
Tom Paine
9fa6d9eda8 Update letsencrypt.py
Extend `remaining_days` description.
2016-12-08 11:35:04 -05:00
Michael Ansel
52e14bd172 jira: Specify the correct argument type (#3368)
By default, all arguments are considered strings, but the module code expects the `fields` parameter to be a proper Python dictionary.

Fixes #2600
2016-12-08 11:35:04 -05:00
Toshio Kuratomi
138f2cd847 Fix for dnf groupinstall
Previous fix to group install introduced a different bug trying to
strip() group names at the wrong level.  This patch fixes that.

Fixes #3358
2016-12-08 11:35:04 -05:00
Matt Clay
3ec6722a21 Simplify compileall checks. Remove py3 skip list.
Also applied updates to sanity.sh from ansible-modules-core.
2016-12-08 11:35:04 -05:00
Toshio Kuratomi
b82ceae75f Fix python3 syntax for octal numbers 2016-12-08 11:35:04 -05:00
Toshio Kuratomi
58ec3df13d Revert "add support for proxysql (#2917)"
This reverts commit 9d51f82395.

proxysql is breaking docs build.  Reverting until those are fixed
2016-12-08 11:35:04 -05:00
Toshio Kuratomi
5cd11f5e39 Revert "several fixes to doc to avoid breaking doc build"
This reverts commit 6e4a182684.

reverting proxysql modules for owner to fix docs build so reverting this
fix as well.
2016-12-08 11:35:04 -05:00
Brian Coca
15a0cffee0 several fixes to doc to avoid breaking doc build 2016-12-08 11:35:04 -05:00
cameronurnes
ec8bd8ee77 Fix elf and elf_facts documentation formatting (#3348)
* This method breaks the output on the documentation site

* Conflicting quotes

* Conflicting quotes
2016-12-08 11:35:04 -05:00
Toshio Kuratomi
c41c3abb85 Archive is being added in 2.3 rather than 2.2 2016-12-08 11:35:04 -05:00
bmildren
e284af01b1 add support for proxysql (#2917)
* Adding support for proxysql

* Moved and restricted imports, updated exception handling

* Updated version_added, and mysqldb_found constant name

* Removed unnecessary parentheses
2016-12-08 11:35:04 -05:00
Toshio Kuratomi
82d2a4810e Fix installation of environment groups
In dnf, environment groups are separate from groups.  Need to handle
them separately when calling the API.

Fixes #2178

After upstream review, hande dnf-2.0 mandatory packages in groups

If mandatory packages in a group are not installed, a group will report
failure.  Fix this by catching the error and reporting after trying
to install the other packages and groups in the transaction.
2016-12-08 11:35:04 -05:00
Matt Clay
4ada3463ca Removed tests migrated to ansible/ansible repo. (#3330) 2016-12-08 11:35:04 -05:00
Matt Clay
db0ac4936b Skip shard count test in check mode. (#3329)
The shard count is not available in check mode.
2016-12-08 11:35:03 -05:00
Igor Gnatenko
16896194a8 dnf: fix compatibility with DNF 2.0 (#3325)
* dnf: fix compatibility with DNF 2.0

* Reimplement (copy) old dnf.cli.commands.parse_spec_group_file(),
  upstream uses argparse since 2.0.
* add_remote_rpm() has been changed to the add_remote_rpms()

Closes: https://github.com/ansible/ansible-modules-extras/issues/3310
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>

* fixup! dnf: fix compatibility with DNF 2.0
2016-12-08 11:35:03 -05:00
Scott Butler
5cb9bbbd18 Typo fix requested by marketing. 2016-12-08 11:35:03 -05:00
Andrew Gaffney
c238d3070a Minor fixes for openwrt_init for busybox ps and worthless exit codes 2016-12-08 11:35:03 -05:00
Yevgeniy Valeyev
e064fd3256 cloudtrail: Fix error on existing trail without S3 prefix (#2939) 2016-12-08 11:35:03 -05:00
Mike Rostermund
d50e2c654f lxd_container: doc: Correct name and state for example of deleting (#3299) 2016-12-08 11:35:03 -05:00
Thierno IB. BARRY
b09291be2c elasticsearch_plugin: add check mode support (#3043) 2016-12-08 11:35:03 -05:00
Andrew Gaffney
b69fb8a1ca Add openwrt_init module for managing services on OpenWrt (#3312) 2016-12-08 11:35:03 -05:00
Toshio Kuratomi
09c56140cd * Fix for spaces in the package spec. * Fix for python-2.6 compat 2016-12-08 11:35:03 -05:00
Toshio Kuratomi
d558c55cee install dnf python bindings if possible
Fixes #14427
2016-12-08 11:35:03 -05:00
Yanis Guenane
f9a36962bd network: Add new module openssl_privatekey
This module aims to allow a user to manage the lifecycle of OpenSSL
private keys. Internally it relies on the pyOpenSSL python library
to interact with openssl.

A user is able to specify :

  * key size (via `size` parameter)
  * key algorithm (via `type` parameter)
  * key location (via `path` parameter)

The most simple use case is:

```
- name: Generate ansible.com.pem SSL private key
  openssl_privatekey: name=ansible.com.pem
                      path=/etc/ssl/private
```

A user can speficy more settings:

```
- name: Generate ansible.com.pem SSL private key
  openssl_privatekey: name=ansible.com.pem
                      path=/etc/ssl/private
                      size=2048
                      type=DSA
```

A user can also force the regeneration of an SSL key:

```
- name: Generate ansible.com.pem SSL private key
  openssl_privatekey: name=ansible.com.pem
                      path=/etc/ssl/private
                      force=true
```
2016-12-08 11:35:03 -05:00
Hans-Joachim Kliemeck
1b4eea79d8 win_nssm: set application directory on change of application binary (#3267) 2016-12-08 11:35:03 -05:00
Scott Butler
8745feb567 Clarifies description of path parameter. 2016-12-08 11:35:03 -05:00
Grégory
c2a921ab7c Change azure default deployment mode to incremental (#3023)
* Changed default deployment mode to match with azure -cli behaviour. "Complete" mode by default is too dangerous.

* Set incremental as default behaviour for deployment mode.
2016-12-08 11:35:03 -05:00
Michal Klempa
39e3c530c0 maven_artifact: fix download of SBT published snapshot artifact (#3085)
Fixes #1717
2016-12-08 11:35:03 -05:00
Tim Rupp
9efcfaff48 Adds bigip_sys_global module (#3271)
This module can be used to change a variety of system parameters
typically used for bootstrapping.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/bigip_sys_global/tasks/main.yaml

Platforms this was tested on are

12.1.0-hf1
2016-12-08 11:35:02 -05:00
Tim Rupp
10697854e0 Adds route_domain parameter to the selfip module. (#3272)
This patch allows one to specify a route_domain to create the
selfip in.
2016-12-08 11:35:02 -05:00
Tim Rupp
a27de3adcc Adds route advertisement state to the bigip_virtual_server module (#3273) 2016-12-08 11:35:02 -05:00
Ryan Conway
15f32cf3d5 Adds support for setting a virtual server's "source address translation" policy to a specific SNAT pool, in addition to the 'None' or 'Automap' options. (#3158) 2016-12-08 11:35:02 -05:00
Jens Carl
f60e0d88da Fix typo (#3289) 2016-12-08 11:35:02 -05:00
John R Barker
9fa1afc39f a10 - Use docs_fragments (#3281)
Remove duplicated documentation (common options defined in module_utils/a10.py).
Also tidy up formatting.
2016-12-08 11:35:02 -05:00
Tim Rupp
0055360315 Make irules module idempotent (#3175)
The irules module was failing to strip whitespace that is, for some
reason, automatically inserted by BIG-IP. This patch adds necessary
strips
2016-12-08 11:35:02 -05:00
Rene Moser
960f28692e docs: adjust version_added 2016-12-08 11:35:02 -05:00
Thierno IB. BARRY
60a32ba77f openvswitch_bridge: add fake bridge support (#3054)
* openvswitch_bridge: add fake bridge support

* openvswitch_bridge: check if vlan is between 0 and 4095
2016-12-08 11:35:02 -05:00
Andrea Scarpino
9b9ea97706 maven_artifact: Allow to specify a custom timeout (#2526) 2016-12-08 11:35:02 -05:00
Rowan
713b9bbdf3 Added proxied option to cloudflare_dns (#2961) 2016-12-08 11:35:02 -05:00
Pitsanu Swangpheaw
034f7d8b52 support proxmox resource pool (#2859) 2016-12-08 11:35:02 -05:00
Matthew Treinish
cbde91d765 Add TLS encyrption support to MQTT (#2700)
This commit adds module settings for configuring TLS encyption on the
mqtt notification module. Previously there was no way to configure
sending the messages encrpyted to mqtt.
2016-12-08 11:35:02 -05:00
jctanner
94175476b7 Implement a workaround for broken FindByInventoryPath method in pyvmomi (#3243)
* Add initial support for using a cluster instead of an esxi hostname
* FindByInventoryPath doesn't always work, so implement a fallback method to match the path
2016-12-08 11:35:02 -05:00
Michael Scherer
ceec679302 Make blockinfile work with python3
Traceback (most recent call last):
      File \"/tmp/ansible_ueg52c0b/ansible_module_blockinfile.py\", line 319, in <module>
        main()
      File \"/tmp/ansible_ueg52c0b/ansible_module_blockinfile.py\", line 259, in main
        if line.startswith(marker0):
    TypeError: startswith first arg must be bytes or a tuple of bytes, not str

Also clean imports while on it.
2016-12-08 11:35:02 -05:00
John Barker
7b94e3de38 Conditional main()
This is needed to allow the debugger work
2016-12-08 11:35:02 -05:00
Georg
be9fb2aa7d Update to firewalld doc
Missinformation about where available firewalld services are listed
2016-12-08 11:35:01 -05:00
Rene Moser
952add5920 docs: ec2_lc_facts: adjust version_added 2016-12-08 11:35:01 -05:00
Loïc
2e72ec40ae New module ec2_lc_facts (#2325)
New module to gather facts about AWS Autoscaling Launch Configurations
2016-12-08 11:35:01 -05:00
Steve Kuznetsov
c496c1b08e make: Expose std{out,err} of successful make commands (#3074)
When using the `make:` extras module, often the action taken
by the Make target is large. It is useful, therefore, to see
the output that `make` had to std{out,err} during execution
even when the target did not fail.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2016-12-08 11:35:01 -05:00
YAEGASHI Takeshi
8bb9149a10 blockinfile: Add a newline at EOF when the file is newly created (#3174)
Ref: #2687
2016-12-08 11:35:01 -05:00
Brian Coca
9ca2fef23a corrected version 2016-12-08 11:35:01 -05:00
jhawkesworth
4a8fc74288 Win say (#2866)
* Add a text-to-speech module for windows.

* Fix documentation
2016-12-08 11:35:01 -05:00
Kevin Maris
0d8ceefd48 Respect include.* directives by default. 2016-12-08 11:35:01 -05:00
Toshio Kuratomi
ea05c56a41 Fix remaining python3 compile problems 2016-12-08 11:35:01 -05:00
Toshio Kuratomi
3901fe72d3 Fix amazon extras modules to compile under python3 2016-12-08 11:35:01 -05:00
Toshio Kuratomi
46a1f73778 Fix remaining centurylink modules for py3
Also update the imports to take advantage of the Ansiballz imports
2016-12-08 11:35:01 -05:00
Michael Scherer
8fb4fd6736 Fix pkgng on python 3
Fail with:

    Traceback (most recent call last):
      File \"/tmp/ansible_2rsl4fg1/ansible_module_pkgng.py\", line 353, in <module>
        main()
      File \"/tmp/ansible_2rsl4fg1/ansible_module_pkgng.py\", line 330, in main
        _changed, _msg = install_packages(module, pkgng_path, pkgs, p[\"cached\"], p[\"pkgsite\"], dir_arg)
      File \"/tmp/ansible_2rsl4fg1/ansible_module_pkgng.py\", line 161, in install_packages
        old_pkgng = pkgng_older_than(module, pkgng_path, [1, 1, 4])
      File \"/tmp/ansible_2rsl4fg1/ansible_module_pkgng.py\", line 121, in pkgng_older_than
        while compare_version[i] == version[i]:
    TypeError: 'map' object is not subscriptable
2016-12-08 11:35:01 -05:00
Alexandre Garnier
945ac72217 Really fix python 2.4 compatibility
PR #1544 didn't remove the keyword argument 'delete' not existing in `tempfile.NamedTemporaryFile()` in python 2.4
2016-12-08 11:35:01 -05:00
Steyn Huizinga
c21dd8c13b Fix for ansible/ansible-modules-extras#3173 (#3203) 2016-12-08 11:35:01 -05:00
James Kassemi
f4faf9842f Fix issue with multiple pages of results in ec2_lc_find (#3090) 2016-12-08 11:35:00 -05:00
Jeff
d8efe53d7c logicmonitor: Documentation and logging updates based on feedback (#2756) 2016-12-08 11:35:00 -05:00
Nick Piper
491b136f6e doc: Correction for spelling of 'azure_rm_deployment' in example (#3212) 2016-12-08 11:35:00 -05:00
matt colton
93627a1f0f sl_vm: update datacenter, cpu and memory options (#3236) 2016-12-08 11:35:00 -05:00
Michael Scherer
4bbfe36a6e Refactor some code in timezone module 2016-12-08 11:35:00 -05:00
Morgan Jones
be19af02f7 azure_rm_deployment: fix rg issue with _nic_to_public_ips_instance() (#2950)
Fix an issue with _nic_to_public_ips_instance() function. There was an assumption in the code that the Public IP sits in the same resource group, this isn't always the case.
2016-12-08 11:35:00 -05:00
Jonathan Sokolowski
90cc40e105 lvg: Initialise device list (#3141) 2016-12-08 11:35:00 -05:00
Michael Scherer
9bdb567c56 Make netscaler pass python3 sanity check 2016-12-08 11:35:00 -05:00
Michael Scherer
04996c3720 Make nmcli pass py3 sanity check
Cleanup include, do not use '*' for future refactoring.

Since nmcli is not present on EL5, we can safely use python
2.6 syntax only.
2016-12-08 11:35:00 -05:00
John R Barker
32c4190ac8 Remove reference to ansible-validate-modules (#3256)
ansible-validate-modules is now in ansible/ansible

During 2.3 we will be merge the modules into ansible/ansible so this file will go away.

The new testing documentation will refer to `ansible-test` which will wrap up the unit, integration, and ansible-validate-modules. So no need to document here.
2016-12-08 11:35:00 -05:00
John R Barker
3472cc6f3a Run validate-modules from ansible/ansible (#3242)
* Run validate-modules from ansible/ansible

* Update sanity.sh
2016-12-08 11:35:00 -05:00
Tim Rupp
56147c3771 Adds module to manage SNAT pools on a BIG-IP (#3217)
This module adds the ability to manage the lifecycle of SNAT pools on a BIG-IP.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/bigip_snat_pool/tasks/main.yaml

Platforms this was tested on are

12.1.0 HF1
2016-12-08 11:35:00 -05:00
Tim Rupp
7bfb491ba5 Adds the bigip_hostname module (#3216)
This module can be used to change the hostname on a bigip. The
hostname must be set via the tmsh or API methods or else it will
not reflect properly in the config.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/bigip_hostname/tasks/main.yaml

Platforms this was tested on are

12.0.0
12.1.0 HF1
2016-12-08 11:35:00 -05:00
Tim Rupp
5d3dafc02e Adds bigip_gtm_facts module (#3232)
This patch adds support for querying the GTM(DNS) facts from a
BIG-IP. This completes a previous PR that was requested but not
finished.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/bigip_gtm_facts/tasks/main.yaml

Platforms this was tested on are

11.6.0
12.1.0 HF1
2016-12-08 11:35:00 -05:00
Michael Scherer
50b31a2343 Do not import splitter, since we do not use it 2016-12-08 11:35:00 -05:00
Michael Scherer
7f4fdba0c6 Make openvswitch* pass py3 sanity check 2016-12-08 11:35:00 -05:00
Michael Scherer
2a83eefaae Make consul modules pass sanity test for python 3 2016-12-08 11:34:59 -05:00
Michael Scherer
d4157095f3 Make bigpanda module pass python3 sanity check 2016-12-08 11:34:59 -05:00
Michael Scherer
9cac0b54c6 Make jabber module compile on python 3 2016-12-08 11:34:59 -05:00
Michael Scherer
60b6cb8305 Make mail compile on python 3 2016-12-08 11:34:59 -05:00
Michael Scherer
95929fb79f Make postgresql module in extras compile on py3 2016-12-08 11:34:59 -05:00
Michael Scherer
6963cd8ae7 Make mongodb modules compile on python 3 2016-12-08 11:34:59 -05:00
Michael Scherer
1bca0847a4 Make rax_clb_ssl module pass sanity check for py3 2016-12-08 11:34:59 -05:00
Michael Scherer
2ceb672016 Fix dnsmadeeasy module to pass py3 sanity check 2016-12-08 11:34:59 -05:00
Michael Scherer
b902ea297f Make mqtt pass python3 sanity tests 2016-12-08 11:34:59 -05:00
Toshio Kuratomi
3c1dea1933 Add python-2.6 requirement to the proxmox module 2016-12-08 11:34:59 -05:00
Michael Scherer
573958bd53 Do not leak login_password when using verbose, with no_log 2016-12-08 11:34:59 -05:00
Alex
88e940a3e1 zypper: fix for checking result is None (#3143) 2016-12-08 11:34:59 -05:00
Michael Scherer
1948bcb9e7 Make zabbix modules compile on python 3
Since the module is not compatible with python 2.4, we
do not need to use the get_exception trick
2016-12-08 11:34:59 -05:00
Michael Scherer
c1f7fa2f3b ovirt_auth: fix type and password leak (#3119)
Do not leak the password in log, and verify the path of ca_file
2016-12-08 11:34:59 -05:00
Ville Reijonen
e5688c709a win_scheduled_task: fix days_of_week var command typo (#3198) 2016-12-08 11:34:59 -05:00
Michael Scherer
adc62226d4 Make dnssimple compile on python 3 2016-12-08 11:34:58 -05:00
hyperized
d815890aa6 Update irc.py (#3144)
Proposal to update the example to YAML syntax.
2016-12-08 11:34:58 -05:00
Benjamin Copeland
2796370b57 statusio_maintenance: Fix minor typo (#3137) 2016-12-08 11:34:58 -05:00
Jasper Lievisse Adriaanse
83a6032b7a Remove incorrect statement, uri module doesn't require httplib2 anymore 2016-12-08 11:34:58 -05:00
Michael Scherer
8676924da5 Fix proxmox for python 3
Since it doesn't work on python 2.4, we can use the native
exception handling way for python 3
2016-12-08 11:34:58 -05:00
Michael Scherer
37b62a1db3 Remove gce from the blacklist for python 3 tests, forgot in #3179 2016-12-08 11:34:58 -05:00
Toshio Kuratomi
f77aa869b8 Few more places where gce modules need python3 compat exceptions 2016-12-08 11:34:58 -05:00
Michael Scherer
7ba630eda2 Make xenserver_facts compile on python 3
Since the xenapi is not needed on python 2.4, we can use the
regular exception handling code
2016-12-08 11:34:58 -05:00
Michael Scherer
9f5f85c9f0 Port ovirt to python 3
Since ovirt sdk is not running on python 2.4, we can use python 2.6
syntax directly for exceptions.
2016-12-08 11:34:58 -05:00
Michael Scherer
715b88a8a5 Make redis run on python 3 2016-12-08 11:34:58 -05:00
Michael Scherer
11d88bc1a8 Fix gce module to compile on python 3 (#3179) 2016-12-08 11:34:58 -05:00
Michael Scherer
da6851bdf4 Make expect module compile on python 3 2016-12-08 11:34:58 -05:00
Michael Scherer
415c2d4591 Make sensu_check compile on python 3 (#3177) 2016-12-08 11:34:58 -05:00
Eric D Helms
151c6d2f88 Fix broken entities reference in Katello module (#3136) 2016-12-08 11:34:58 -05:00
Patrik Lundin
896dec44a6 openbsd_pkg: Use correct part of name in match. (#3151)
* openbsd_pkg: Use correct part of name in match.

Previously this part of the code could assume that the name was a stem
with nothing else attached (like "autoconf"). With the introduction of the
branch syntax ("autoconf%2.13") this is no longer true.

Check if the package name was identified as using a "branch" style name,
and base the match on the leading part of the name if that is the case.

While here remove unnecessary "pass" and tidy up debug log message.

Problem reported by @jasperla.

* openbsd_pkg: Add missing "." in comment.
2016-12-08 11:34:58 -05:00
Ryan Currah
00adb6e5d4 Fix mongodb_user.py version detection logic (#3162)
Fix mongodb_user.py version detection logic for mongo srv 2.6 and mongo driver 2.7. The wrong variable was used for detecting the mongo driver version. This fix resolves the error "(Note: you must use pymongo 2.7+ with MongoDB 2.6.. 2.6.11)" no matter what version of pymongo you had installed for mongodb 2.6.
2016-12-08 11:34:57 -05:00
Ryan Brown
bbe8e1f53b Fix archive truncating archived file names based on prefix length (#3124)
When archiving multiple files, the full length of the calculated
`arcroot` would be removed from the beginning of all file names. If
there was no arcroot, the first two characters of all files would be
removed, so `file.txt` would become `le.txt`.

This patch uses the regular expressions substitution anchored to the
start of the string, so the arcroot is only removed if it is actually
present.
2016-12-08 11:34:57 -05:00
Ryan Brown
25da992785 Fix failure to apply bucket policy when creating a bucket from scratch (#3091) 2016-12-08 11:34:57 -05:00
Michael Scherer
9aec480f59 Make irc.py compile on python3 2016-12-08 11:34:57 -05:00
Michael Scherer
1f406d4530 Port virt to python3 (#3167) 2016-12-08 11:34:57 -05:00
Michael Scherer
9be3e67e21 Make sure that the token is not printed in log (#3115) 2016-12-08 11:34:57 -05:00
Michael Scherer
138aaa4ff3 Fix crypttab (#3121)
* Fix error in crypttab doc

* Use path type for file argument

This permit to make sure that $HOME and '~' are properly
expanded, even if in the case of crypttab, this might not make
a lot of sense
2016-12-08 11:34:57 -05:00
Ivan Bojer
3c06e2585a PanOS module for admin password change using PanOS API as the transport (#2930)
* PanOS module that allows admin password change.

* fixed a typo

* empty __init__.py

* added require ansible Python extension .py

* added version string

* added return docstring

* changed version to 2.2

* - changes to the format and module as requested by @privateip

* changed version back to 2.2 as 2.3 was failing automated tests

* Revert "changed version back to 2.2 as 2.3 was failing automated tests"

reverting version info

This reverts commit 71d520f3b4b69eb017c2b9f287a74cb77fae9d1c.
2016-12-08 11:34:57 -05:00
Toshio Kuratomi
badce91e80 Fix a couple undefined variables
One was a typo and one needed to have the variable defined in that scope
2016-12-08 11:34:57 -05:00
Tim Rupp
79895061b4 Fixes broken documentation in two modules (#3150)
The modules listed in this PR were using YAML that resulted in
blockquote tages being inserted into the generated RestructedText.

This PR fixes that so that the documentation once again looks correct
2016-12-08 11:34:57 -05:00
Aleksey Gavrilov
951f1d280c proxmox add exaples static ip (#3092) 2016-12-08 11:34:57 -05:00
Michael Scherer
b52d0f65d6 Fix wrong variable name 2016-12-08 11:34:57 -05:00
Michael Scherer
6769bbf1a6 Do not leak the solaris root password in the log 2016-12-08 11:34:57 -05:00
afunix
60d84aca07 gluster_volume adds replica and stripe arguments when adding bricks [#2754] (#2812) 2016-12-08 11:34:57 -05:00
Michael Scherer
343134bd0f Do not leak the channel token in log (#3117) 2016-12-08 11:34:57 -05:00
Michael Scherer
c50ac02b30 Add verification for the arguments of opendj_backendprop (#3116) 2016-12-08 11:34:56 -05:00
Eric D Helms
f4d83486a9 New module: Manage Foreman and Katello entities (#2450) 2016-12-08 11:34:56 -05:00
Michael Scherer
9ba5218631 Do not leak the newrelic token in log (#3118) 2016-12-08 11:34:56 -05:00
Michael Scherer
b03e95418e Do not leak the password of gitlab_user in log (#3122) 2016-12-08 11:34:56 -05:00
Ryan S. Brown
001cf5cfc5 lambda correct documentation of return output
The returns are actually nested under `configuration` keys, so the docs
need to reflect that. Also add the automatic return of the function
version, so it can be used to feed the `lambda_alias` module.
2016-12-08 11:34:56 -05:00
Ryan S. Brown
b7ca9d6567 lambda Support using the role name
Instead of needing the full role ARN, allow users to specify a role name
as long as the role exists in the same account.
2016-12-08 11:34:56 -05:00
Adam Miller
3ac2a498ae add offline mode to firewalld
Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
2016-12-08 11:34:56 -05:00
Peter Sprygada
00cc7c03fa Revert "update mask_passwords argument to be more descriptive in asa_config (#3109)" (#3110)
This reverts commit 271e300745.
2016-12-08 11:34:56 -05:00
Peter Sprygada
1b6a424375 update mask_passwords argument to be more descriptive in asa_config (#3109)
This changes the passwords argument to mask_passwords to make the
argument more descriptive of its intended function
2016-12-08 11:34:56 -05:00
René Moser
9518290454 cloudstack: cs_portforward: fix rule not found if domain is not account's domain. (#3093)
cs_portforward will not find the rule and tries to create it resulting in an API error.

Thanks to @mostkopf for reporting.
2016-12-08 11:34:56 -05:00
Peter Sprygada
d698a9b5f7 fixes asa_config to allow config to include passwords, defaults or none (#3102)
The fix allows the asa_config module to request the config to contain
all default statements or password information necessary for vpn
tunnel endpoints
2016-12-08 11:34:56 -05:00
Peter Sprygada
817881d64f fixes problem where wrong ACL could be selected (#3099)
This fixes a bug where the wrong acl name could be matched in the running
config if the desired acl name is a starting subset.
2016-12-08 11:34:56 -05:00
Tim Rupp
6f0477a780 Fixes the enabled_vlans argument (#3061)
This argument had a couple of issues with it. First, as it was
being interpreted in the code, it did not check for idempotency.

Second, the model of having the parameters be "all_*" is going to
hinder the ability to "undo", so-to-speak, what the user did while
maintaining legibility.

Consider if the user specified "all_enabled_vlans='net1'" and then
decided they wanted to backout of this decision. What is the proper
argument to fulfill this wish? "all_enabled_vlans='...?'

This patch changes the all_enabled_vlans argument to be "enabled_vlans",
ensures that idempotency works, and also provides for a way to "undo" a
change to the enabled VLANs by allowing the user to specify the special
case VLAN named "ALL" (all capitals).

This makes the parameter more intuitive because the users will specify
which vlans they want to make the virtual available on

  * enabled_vlans="net1"

but also allows them to "undo" what they did by setting it back with
the case of all

  * enabled_vlans="ALL"
2016-12-08 11:34:56 -05:00
Tim Rupp
223d5cc7ee Adds copyright line for F5 contributed modules (#3081)
I was asked to do this as part of the contribution effort in house
2016-12-08 11:34:56 -05:00
Tim Rupp
de08965ab3 Corrects the required SDK version (#3095)
The SDK version that was mentioned originally was incorrect
2016-12-08 11:34:56 -05:00
Pieter Hollants
c2992fbb81 zypper_repository: Prepend --gpg-auto-import-keys before refresh command (#3088)
Fixes #3086.
2016-12-08 11:34:55 -05:00
Robin Roth
48ee364950 Add documention for enabled option in zypper_repository (#3083) 2016-12-08 11:34:55 -05:00
René Moser
d2eeabf129 slack: fix handling of html entities and escaping (#3032)
for < > & ' and "
2016-12-08 11:34:55 -05:00
Jonathan Mainguy
d4b94ec6bb fix timezone for centos6 (#3078) 2016-12-08 11:34:55 -05:00
John R Barker
66eaa464ee Typos in doc's strings (#3071) 2016-12-08 11:34:55 -05:00
Toshio Kuratomi
d52fc0f8a6 Update shippable config (#3063) 2016-12-08 11:34:55 -05:00
THEBAULT Julien
bfb1ad6690 Fix mongodb user compatibility check (#2731)
- Check the compatibility asap
2016-12-08 11:34:55 -05:00
Bryan Hundven
50092ed629 Fix the comment in the example. (#3050)
Fix the typo: `Crate` -> `Create`. Make a complete sentence.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-12-08 11:34:55 -05:00
Ryan Brown
cdd874e61d Fix owner on gce_img 2016-12-08 11:34:55 -05:00
Rob
20cfe15e56 If parameters for policy, tags or versioning are not supplied, do not change the existing values defined for the bucket (#2938) 2016-12-08 11:34:55 -05:00
John R Barker
3a3612f57b asa_template is now deprecated (#2992)
* asa_template is now deprecated

* Delete asa_template

Since asa_template was added during 2.2 development, rather than
deprecate them
2016-12-08 11:34:55 -05:00
John R Barker
94bd3a70e5 Correct typos (#3055) 2016-12-08 11:34:55 -05:00
Ondra Machacek
7f51ec8bab ovirt_vms: wait for VM to be created for states stopped/suspended (#3044) 2016-12-08 11:34:55 -05:00
Thierno IB. BARRY
c0cfd1db45 elasticsearch_plugin: rewrite module to not use unsupported parameters (#2839)
* elasticsearch_plugin: rewrite module to not use unsupported parameters (#1785)

Avoid using parameters when they are not needed (#1785)

* elasticsearch_plugin: add version only during plugin installation and parse plugin name for its removal

* elasticsearch_plugin: join command args before running it
2016-12-08 11:34:55 -05:00
Tim Rupp
781dd9c459 Distinguish between untagged and tagged vlans
We were incorrectly making VLANS always be untagged when they could
be either tagged or untagged. This change corrects the arguments to
the vlan module to allow for specifying either untagged or tagged
interfaces. The arguments are mutually exclusive
2016-12-08 11:34:55 -05:00
Michael Scherer
9ec65db778 Use 'path' type for file arguments 2016-12-08 11:34:55 -05:00
Michael Scherer
c8bfab9c08 Add missing deps, since we use openssl to verify the date 2016-12-08 11:34:54 -05:00
Ryan Saunders
b48e1e9b65 Fix documentation typos and broken URL (#3039) 2016-12-08 11:34:54 -05:00
René Moser
91277fc0c7 twilio: fix false negative failure - sms was sent successfully (#3033) 2016-12-08 11:34:54 -05:00
Lujeni
e226211c5b Fix mongodb_user ssl_cert_reqs param (#2963) (#2965) 2016-12-08 11:34:54 -05:00
Michael Scherer
ead83cd148 Fix error in description of acme_directory (#3034) 2016-12-08 11:34:54 -05:00
Matt Clay
10ac3ba617 Revert "Set PRIVILEGED=true for Linux integration tests. (#3031)"
This reverts commit 7df7b52a5e.
2016-12-08 11:34:54 -05:00
steve-dave
587636b525 ec2_win_password.py - handle missing or unparseable key file more intuitively (#2729) 2016-12-08 11:34:54 -05:00
shane-walker
f108f8ef72 Fixes #1375, will check for new and outdated packages when running. (#3020) 2016-12-08 11:34:54 -05:00
Matt Clay
eedca027ee Set PRIVILEGED=true for Linux integration tests. (#3031)
This should allow test_mount tests to run on Shippable.
2016-12-08 11:34:54 -05:00
Matt Clay
841ec9ef1b Fix handling of ansible-doc errors. (#3030) 2016-12-08 11:34:54 -05:00
Lujeni
477d174fbc Fix mongodb_user default role value when update_password is set (#2997) 2016-12-08 11:34:54 -05:00
jctanner
981d1d3f96 vmware_guest: set the cpu and memory settings on clone (#3027)
Fixes #3026
2016-12-08 11:34:54 -05:00
Ryan S. Brown
bdec3a7cbb Fix ec2_asg_facts when name parameter is None
Closes #3021
2016-12-08 11:34:54 -05:00
Tim Rupp
15df1c84ad Fixes the bigip_selfip module to respect traffic groups (#3009)
The code for traffic groups was not being tested and therefore
had errors associated with it. It is now covered in coverage tests
and bugs that were found in it have been fixed.

See this issue for details
https://github.com/F5Networks/f5-ansible/issues/28
2016-12-08 11:34:54 -05:00
nitzmahone
4ff086c1a8 Fix win_chocolatey version comparison
fixes #2995
2016-12-08 11:34:54 -05:00
Matt Clay
b2b3d99839 Add shellcheck to sanity checks. (#3013)
Also disable deprecation warnings during module validation.
2016-12-08 11:34:54 -05:00
Tim Rupp
5abc8a1927 Corrects an implied map() usage as list (#3010)
In the six package, the map() function returns an iterator instead
of a list. This code was continuing to use the map() return value
as if it were a list and this broke the address_class facts.

This patch changes the code to use the list() method on the return
value of map().
2016-12-08 11:34:53 -05:00
Tom Melendez
fd92b66332 Change 'values' to 'record_data' for gcdns module. (#3003)
Using values caused problems while creating an integration playbook as it is a reserved word.  Seeing as this module is not yet released, it's prudent to make this change now.  'record_data' is more descriptive and uses the _data convention that we've established for instances.

No functionality in the module has changed.
2016-12-08 11:34:53 -05:00
Ondra Machacek
e7afabf060 Fix example in ovirt_auth module (#3001)
This patch fix missing quotes in ovirt_auth revoke token example
2016-12-08 11:34:53 -05:00
Robin Roth
a9cd8abb75 List python-xml in requirements for zypper* (#2937) 2016-12-08 11:34:53 -05:00
René Moser
59e6203a17 composer: update docs about issues on macOS if installed by homebrew (#2987) 2016-12-08 11:34:53 -05:00
Ondra Machacek
999a6488cf Ovirt auth/vms/disks modules (#2836)
* Add oVirt module to manage VMs

This patch add oVirt module to manage Virtual Machines

* Add oVirt module to manage authentication

This patch add oVirt module to manage authentication

* Add oVirt module to manage disks

* Added VM state management and fixups
2016-12-08 11:34:53 -05:00
perbly
ec05027c7e added enabled vlan functionality for f5 vip (#2988)
* added vlan functionality for f5 vip

* line 91, : was missing after description
2016-12-08 11:34:53 -05:00
Matt Clay
2152291960 Remove script previously used by Travis. 2016-12-08 11:34:53 -05:00
Lujeni
aa6aedf26c Improve mongodb_user exception (#2962)
- Better error message
2016-12-08 11:34:53 -05:00
Matt Clay
46d0b4dc16 Test module docs on Shippable. (#2976) 2016-12-08 11:34:53 -05:00
Matt Clay
5d78239f07 Combined notes to avoid duplicate key warning. (#2980) 2016-12-08 11:34:53 -05:00
Rob
e07c71dd99 Modification of describe_gateways key so that it is consistent with w… (#2936)
* Modification of describe_gateways key so that it is consistent with what create_gateway returns.
Also added AnsibleModule spec to require bgp_ip on state=present as defined in the doc

* Don't remove CustomerGateways key to preserve backward compatibility
2016-12-08 11:34:53 -05:00
jctanner
4cb3e87ca4 vmware_guest: do not assume disk params contain a datastore (#2974)
* vmware_guest: do not assume disk params contain a datastore
* Fix missed line during connection refactor
2016-12-08 11:34:53 -05:00
Matt Clay
f3e2f5d002 Remove Travis config since we only use Shippable. (#2975) 2016-12-08 11:34:53 -05:00
Matt Clay
a88dae905d Enable python 3 sanity tests for more modules. (#2973) 2016-12-08 11:34:52 -05:00
Michael Scherer
5f0017d99d Remove duplicate key from the doc (#2970) 2016-12-08 11:34:52 -05:00
Michael Scherer
6b5b90c4b8 Merge duplicated notes, fix warning returned by ansible-doc (#2969) 2016-12-08 11:34:52 -05:00
Adrian Likins
f4943bcf4c Fix 'netapp_e_lun_mapping ... documentation error' (#2966)
The 'short_description' in netapp_e_lun_mapping was a
list instead of txt.

This fixes errors on 'ansible-doc -l' of form:

        ERROR! module netapp_e_lun_mapping has a documentation
        error formatting or is missing documentation

Fixes: #17634 (ansible/ansible)
2016-12-08 11:34:52 -05:00
Adrian Likins
50dcce185f Remove redundant doc keys for netapp_e_ modules (#2968)
Fixes #2967
2016-12-08 11:34:52 -05:00
jctanner
10e50652b2 vmware_guest: small refactor (#2955)
* use connecion method from module_utils
* use resource group related to host system

Addresses #2911
2016-12-08 11:34:52 -05:00
Michael Scherer
1702937ab3 Do not import xenapi without checking, so we can avoid (#1953)
backtrace
2016-12-08 11:34:52 -05:00
Michael Scherer
6967a32ce4 Fix the mysql_replication argument (#2111)
Login_password and master_password are password, should not
be logged. And config_file is a path t be expanded, so tagged as
such.
2016-12-08 11:34:52 -05:00
Hans-Joachim Kliemeck
443dba148c Fix mongodb user idempotence with 2.4 version (#2725) (#2920) 2016-12-08 11:34:52 -05:00
Alexandre Garnier
f06e2e7a0b Fix mixed type comparison resulting in wrong changed (#2772)
When using `use_max` or `use_min` in `pam_limits`, the new value is an integer compared with the actual_value which is a string, so they are always different and the module reports a changed but none occurred.
2016-12-08 11:34:52 -05:00
Matt Clay
839adc208f Update CI badge. 2016-12-08 11:34:52 -05:00
Matt Clay
d1ba765ba0 Cosmetic fix to test PR and merge hooks. (#2949) 2016-12-08 11:34:52 -05:00
Matt Clay
3e86ad1a3a Run same tests on Shippable as on Travis. (#2948)
Run the same tests as used on Travis.
2016-12-08 11:34:52 -05:00
Ryan S. Brown
dc6fd4ee8a Add lambda_event module 2016-12-08 11:34:52 -05:00
Ryan Sydnor
3c6ae0063b Add Amazon Elastic File System Facts (efs_facts) module
Also switch EFS module to using boto3_conn from boto3.Session
2016-12-08 11:34:52 -05:00
Ryan Sydnor
dfec3d3c4c Add Amazon Elastic File System (efs) module 2016-12-08 11:34:51 -05:00
Ryan Brown
d92c3c6fa8 Import Lambda alias module from https://github.com/pjodouin/ansible-lambda (#2829) 2016-12-08 11:34:51 -05:00
Ryan S. Brown
ce72e52c50 Fix redshift module Python 3.5 syntax 2016-12-08 11:34:51 -05:00
Ryan Brown
559093f1a3 Fix exception syntax for Python 3.x (#2940)
since boto already precludes python2.4, no need to use a common 2.4/3 syntax
2016-12-08 11:34:51 -05:00
Steyn Huizinga
4240d2a511 Add AWS Lambda module (#1270) 2016-12-08 11:34:51 -05:00
Jim Dalton
cee898f73a Add module for managing CloudWatch Event rules and targets (#2101) 2016-12-08 11:34:51 -05:00
Jens Carl
9f2b1abbc3 New ansible module for aws Redshift and Redshift subnet group (#185) 2016-12-08 11:34:51 -05:00
Adrian Likins
68823a4e2d Add modules for NetApp SANtricity storage platform (#2929)
The modules prefixed with netapp_e* are built to support the
SANtricity storage platform.

The modules provide idempotent provisioning for volume groups, disk
pools, standard volumes, thin volumes, LUN mapping, hosts, host groups
(clusters), volume snapshots, consistency groups, and asynchronous
mirroring.

They require the SANtricity WebServices Proxy.
The WebServices Proxy is free software available at
the NetApp Software Download site:

   http://mysupport.netapp.com/NOW/download/software/eseries_webservices/1.40.X000.0009/

Starting with the E2800 platform (11.30 OS), the modules will work
directly with the storage array.  Starting with this platform, REST API
requests are handled directly on the box.  This array can still be
managed by proxy for large scale deployments.
2016-12-08 11:34:51 -05:00
jctanner
3dedecd81e vmware_guest improve and fix some of the errors (#2926)
* Add more comments and fix issue with unit conversion
2016-12-08 11:34:51 -05:00
Marcin Kawa
dde76066d3 Fix undefined info error and accept HTTP 201 response code (#2643)
Prevent referenced before assignment error when `notify` argument is not specified and accept HTTP 201 (created) code.
2016-12-08 11:34:51 -05:00
jctanner
d9b5d9e551 vmware_guest: use the disk argument to modify disk size and type (#2918)
Fixes #2706
2016-12-08 11:34:51 -05:00
Rene Moser
bbf60e36eb zabbix_host: fix typos in arg spec of login_user
Credits to @JasonCormie
2016-12-08 11:34:51 -05:00
Ryan Brown
dae2daf692 New module: lambda_facts (#2874) 2016-12-08 11:34:51 -05:00
David Stygstra
3539238ec7 Use modprobe -r instead of rmmod in modprobe module (#2669)
If any modules that the module being removed depends on are unused, they
will also be removed. Fixes #2140.
2016-12-08 11:34:51 -05:00
Michael Grüner
3dd0752746 letsencrypt: Improve error handling (#2868)
* letsencrypt: improve error handling

Use the new "body" field of the info dict in case of a HTTPError.

* letsencrypt: HTTP 202 is a valid status while polling
2016-12-08 11:34:51 -05:00
Steve Gargan
b57b74e40b remove duration from lock delay as seconds are the only granularity supported. (#2877)
add utf header to file so that it loads correctly
2016-12-08 11:34:51 -05:00
René Moser
c203283889 jenkins_job fix: NameError: global name 'module' is not defined (#2910) 2016-12-08 11:34:50 -05:00
Tim Rupp
4e8566739e Fixes domains method not defined (#2907)
The domains method was not defined, and therefore when specifying
a parent domain during route domain creation, the process would
fail.

Tests have been added to detect this going forward
2016-12-08 11:34:50 -05:00
jctanner
b6fd074bd0 vmware_guest implement clonevm for multi-dc environments (#2909)
* Fix bug in processing of null return
* Fix multi-dc folder location by enhancing the foldermap and using it to search
* Remove unused functions
* Refactor finding vm by folder

Fixes #2900
2016-12-08 11:34:50 -05:00
Cougar
7dbdadb396 vmware_guest Fix: remove 'nic' and 'disk' requirements for facts (#2844) 2016-12-08 11:34:50 -05:00
Benjamin Doherty
ac72df08dd Updates to archive module based on code review (#2699)
* Use common file arguments on destination file
* Rename 'compression' to 'format' h/t @abadger
* Add support for plain 'tar' format
* Ensure check_mode is respected
2016-12-08 11:34:50 -05:00
Peter Sprygada
4932df69bc updates to asa_config module for Ansible 2.2
* clean up functions and remove unneeded code
* config difference now includes keyword argument
* module reports changed when save argument is yes with or without check_mode
* updated fail_json return with exc kwargs
* fixed up import statements
2016-12-08 11:34:50 -05:00
Peter Sprygada
dc52d3627a fixes a number of nagging issues in asa_acl due to refactoring
* fixes issues with import error
* removes need for filter attribute in Cli instance
* now filters config either from device or provided via config argument

ref: #2890
2016-12-08 11:34:50 -05:00
Rene Moser
edb24dac2d jenkins_job: refactoring 2016-12-08 11:34:50 -05:00
Rene Moser
3c04ed977d jenkins_job: implement diff support 2016-12-08 11:34:50 -05:00
Rene Moser
171b71cfa0 jenkins_job: rename enable to enabled and mutually exclusive with config
Jenkins stores the information about the state (disabled/enabled) in the config, which result in a race condition between `config` and `enabled` and we loose idempotency. It makes sense to define them mutually exclusive.

Renamed `enable` to `enabled`. Ansible uses the name `enabled` in many modules, e.g. service as it indicates a state not an action.
2016-12-08 11:34:50 -05:00
Rene Moser
bd4c935fd7 jenkins_job: default state to present 2016-12-08 11:34:50 -05:00
Will Thames
3eeda4f844 firewalld should fail nicely when service is stopped (#2871)
Ensure the HAVE_FIREWALLD checks check only for the
presence of the python dependencies, and not the age
of the library or the state of the service, which
are checked later.
2016-12-08 11:34:50 -05:00
Peter Sprygada
7ce98f52cf bug fix in asa_acl module for missing candidate config
This bug was introduced accidentally when refactoring to 2.2.  The instance
of the candidate config was deleted.  This adds the candidate config
instance back

fixes #2890
2016-12-08 11:34:50 -05:00
Tobias Wolf
62575fdf48 Fix one character typo in my previous PR for debconf module (#2899)
Small oops in the previous PR #2530 commit.

Instead of `diff_dict` it slipped through as `diffdict`.

Please merge and sorry.
2016-12-08 11:34:50 -05:00
Alex
e2795d1401 Start zypper in non-interactive mode (#2854) 2016-12-08 11:34:50 -05:00
sgujic
d34f3b4c05 Create temporary file in a secure manner. (#2887) 2016-12-08 11:34:49 -05:00
Nils Pascal Illenseer
acadc2ac9c Delete lxd container in state stopped (#2885)
If a lxd container is stopped, do not stop it before deleting it.
2016-12-08 11:34:49 -05:00
Gilles Gagniard
05c8630b48 GCE : Fix image family handling with libcloud > 0.20.1 (#2289)
* fix image family handling with libcloud > 0.20.1

* add missing import
2016-12-08 11:34:49 -05:00
Robyn Bergeron
7c27f57052 Updating GUIDELINES.md
Updating info on how issues are routed via bot.
2016-12-08 11:34:49 -05:00
Greg DeKoenigsberg
39c1c14a08 Update MAINTAINERS.md
We could have deleted this, but just in case there are links to it from elsewhere, providing a redirect to the now authoritative GUIDELINES.md.
2016-12-08 11:34:49 -05:00
Greg DeKoenigsberg
41d7066a58 Point to GUIDELINES.md 2016-12-08 11:34:49 -05:00
johanwiren
e98eb785df Fix share aliases logic (#2862) (#2875)
Fixes #2862
2016-12-08 11:34:49 -05:00
John R Barker
3f1c3a0532 Document a10_server new options (#2876)
* Document write_config and validate_certs
2016-12-08 11:34:49 -05:00
Steve Gargan
7cd3da9b58 correctly iterate and return results of any service checks. (#2878)
current implementation was breaking making the module unusable, changing to the list comprehension fixes this. Also default to seconds instead of throwing a exception when no duration units are supplied as this causes tests to fail
2016-12-08 11:34:49 -05:00
Matt Clay
d00e941a0e Remove stderr=False from calls to exit_json. (#2879) 2016-12-08 11:34:49 -05:00
Tim Rupp
7e36f4f302 Adds bigip_ssl_certificate module (#2831)
Adds bigip_ssl_certificate module

This module is another in the ongoing "bootstrapping saga" that is
being undertaken. With this module you can manage the lifecycle of
the SSL certificates on a BIG-IP. This includes those used for
SSL offloading.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/__bigip_ssl_certificate/tasks/main.yaml

Platforms this was tested on are

12.0.0
12.1.0
2016-12-08 11:34:49 -05:00
Ryan S. Brown
a96261a391 Normalize variable naming in cloudformation_facts module using camel2snake 2016-12-08 11:34:49 -05:00
Ryan S. Brown
215a591771 cloudformation_facts: Connect boto3 using the module_utils AWS connection instead of calling boto3 directly 2016-12-08 11:34:49 -05:00
jmenga
0d6073aa47 New module cloudformation_facts (#2329) 2016-12-08 11:34:49 -05:00
Michael Scherer
f8b7ab1e10 Do not crash if the system do not have required modules (#2852) 2016-12-08 11:34:49 -05:00
Tobias Wolf
e969010cf9 Add diff mode output to debconf module (#2530)
Support diff such that the previous and current settings are visible
without debug output and just with `--diff` if requested.
2016-12-08 11:34:49 -05:00
sermilrod
03b1844150 adding jenkins_job module (#2521) 2016-12-08 11:34:48 -05:00
Werner Dijkerman
800e1c7bc0 Added new module opendj_backendprop for updating backend settings opendj (#2855)
Add opendj_backendprop
2016-12-08 11:34:48 -05:00
Peter Sprygada
32bbddee23 update asa_config module
* removes get_module() factory method for NetworkModule
* add src argument to provide path to config file
* add new choice to match used to ignore current running config
* add update argument with choices merge or check
* add backup argument to backup current running config to control host
* add defaults argument to control collection of config with or withoutdefaults
* add save argument to save current running config to startup config
2016-12-08 11:34:48 -05:00
Peter Sprygada
e2e0029fab roll up of updates to asa_template
This updates the asa_template module with updates for Ansible 2.2.

* removes get_module() in favor of NetworkModule
* fixes up import statements
2016-12-08 11:34:48 -05:00
Peter Sprygada
283cc51fdb added new functionality to asa_command
* commands argument now accepts a dict arguments
* only show commands are allowd when check mode is specified
* config mode is no longer allowed in the command stack
* add argument match with valid values any, all
2016-12-08 11:34:48 -05:00
Peter Sprygada
8e45ec9734 roll up updates to asa_acl module
* remove get_module() in favor of NetworkModule
* fix up import statements
* roll up fixes for NetworkConfig object handling
2016-12-08 11:34:48 -05:00
Filipe Niero Felisbino
9ba2f0f266 Fix attachment issue ( thanks @gunzy83 ) 2016-12-08 11:34:48 -05:00
Filipe Niero Felisbino
f4ace1e9cc Change attached parameter default to None 2016-12-08 11:34:48 -05:00
Filipe Niero Felisbino
f41900920f Add "version_added" to attached attribute 2016-12-08 11:34:48 -05:00
Filipe Niero Felisbino
1c1a17bfd2 Add attached parameter to ec2_eni module 2016-12-08 11:34:48 -05:00
Filipe Niero Felisbino
94d03b6b55 Add RETURN docs 2016-12-08 11:34:48 -05:00
Filipe Niero Felisbino
7ae8693bda Fix docs 2016-12-08 11:34:48 -05:00
Filipe Niero Felisbino
f8314c3e61 Fix the AMI creation/modification logic thus making it idempotent 2016-12-08 11:34:48 -05:00
Thierno IB. BARRY
bc55db2ff0 elasticsearch_plugin: Fix bug when using proxy (#2603) (#2838) 2016-12-08 11:34:48 -05:00
Nadir
5de3dbbf6d Added redrive policy options (#2245) 2016-12-08 11:34:47 -05:00
Robin Roth
6c9c4e7482 Zypper repo autoimport keys (#2132)
* zypper_repository add auto_import_keys options

* also give more output on failure (rc, stdout, stderr)

* be more specific in the doc for auto_import_keys

* add runrefresh option to zypper_repository

* this comes out of ansible/ansible-modules-extras#2411, where AnderEnder adds refresh to the zypper module
* adds a way to force zypper to refresh a repository
* can be used to refresh independently of auto_import_keys
* add option to run name=* runrefresh=yes
* name runrefresh to not break existing use to refresh (now alias to autorefresh)
* add version_added flag to autorefresh

* remove wrong version_added comment
2016-12-08 11:34:47 -05:00
EarlAbides
961c076e72 Fix ec2_asg_facts module when using name parameter (#2840) (#2841) 2016-12-08 11:34:47 -05:00
Tim Rupp
f48791e8bc Bugfix bigip_facts that was trying to check the length of an iterator (#2842)
Recently, a user reported that the bigip_facts module was failing with the error

    received exception: object of type 'itertools.imap' has no len()

This reported was occurring at line 1657 of the bigip_facts module

bug report is here

https://github.com/F5Networks/f5-ansible/issues/25

Upon further investigation, the map function for returning the specified
includes was returning an iterator, and calling len() on an iterator does
not work.

I believe this problem was caused by part of the Python 3.x effort insofar
as the inclusion of this line

https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py#L143

seems to affect our usage of map(), probably for the better anyway, and we need
to change our expectations in our module's code to no longer assume a list, but
instead assume an iterator.

After trawling through the module_utils/basic code, I think a list
comprehension is more appropriate here anyway, so I'm changing it to be
that. The affected user reported it works this way, and my own testing
on 2.2.0 supports that.
2016-12-08 11:34:47 -05:00
Kevin Hulquest
e47a5674fb Add facts and storage system modules. (#2748)
* Add facts and storage system modules.

* Update version metadata.

* Add facts and storage system modules.

Update version metadata.

Add init files.

* Fixes for review comments.

* Fixes for review comments.

* Update document fragments for api_* options to indicate they are required.

* Correct bad string concatenation.

* Add option description for validate_certs since basic_auth arg_spec is no longer extended.

* Add default value for validate_certs in docstring.

* Rename directory name so it applies to netapp and not simply eseries platform.

* Rename modules to differentiate other netapp modules.
2016-12-08 11:34:47 -05:00
Robin Roth
fb49e0401e Ensure the return value for changed is bool (#2830)
fixes #2827
2016-12-08 11:34:47 -05:00
Michael Grandjean
70e8bb3092 Fix typo in EXAMPLE section (#2833) 2016-12-08 11:34:47 -05:00
John R Barker
b7afa14f64 Minor tidyup (#2828) 2016-12-08 11:34:47 -05:00
Matt Clay
7e3af74fae Add python3 testing for module PRs. (#2825) 2016-12-08 11:34:47 -05:00
Ryan Brown
2858d24acb New module: execute_lambda (AWS) (#2558)
First version of execute_lambda module

Supports:
- Synchronous or asynchronous invocation
- Tailing log of execution (sync execution only)
- check mode
2016-12-08 11:34:47 -05:00
Monty Taylor
510e1140ce Error if shade is too old for domain_id on os_project (#2806)
* Error if shade is too old for domain_id on os_project

os_project's domain_id parameter requires shade >= 1.8.1 to work. Be
explicit.

Fixes #2805 os_project requires python-shade 1.8.1 or higher

* What I really meant was 1.8.0
2016-12-08 11:34:47 -05:00
Matt Martz
91abacfca7 Make sure we don't catch rc=0 as a timeout (#2823) 2016-12-08 11:34:47 -05:00
Toshio Kuratomi
3cb7e4bd0e Style cleanups:
* Don't use iterkeys
* Don't use wildcard imports
2016-12-08 11:34:47 -05:00
Michael Scherer
b255ac4ea6 Use six for iteration, to make it run on python3 (#2800) 2016-12-08 11:34:47 -05:00
Tim Rupp
acdbe5cb3f Adds allow_service parameter to bigip_selfip (#2808)
This parameter can be used to open up access to (among other things)
the mgmt address of a BIG-IP. It is necessary for configuring bigips
in an HA configuration.
2016-12-08 11:34:47 -05:00
Tobias Rueetschi
c0ad8b030e udm_user: change overridePWHistory and overridePWLength to snake_case 2016-12-08 11:34:47 -05:00
Tobias Rueetschi
e4dd122ab7 univention udm_user: override password history. 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
10a2eb9304 udm_user: change code to fit documentation with snake_case instead of camelCase 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
34445d515d udm_user: change camelCase to snake_case in documentation 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
3d563324dd univention udm_user: pep8 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
661cf5d5ea univention udm_share: add aliases as documented 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
3709fb651d univention udm_share: change documentation, use camel_case for parameters, old parameter names as alias 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
de34fdf681 univention udm_share: pep8 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
8eb496989e univention udm_share: add example 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
ea72534151 univention udm_share: change some parameters to type bool 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
1cc3afdbdd univention udm_share: reorder documentation parameters 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
7dd96079f0 univention udm_share: add documenation 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
db4aca4621 univention udm_share: import only AnsibleModule from ansible.module_utils.basic 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
6e4da8987e univention udm_share: add license information 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
b38979321d univention udm_share: add required_if to the API 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
bba8cdf0af univention udm_share: fix shebang 2016-12-08 11:34:46 -05:00
Tobias Rueetschi
afccc72d41 univention udm_share: adapt to library univention_umc 2016-12-08 11:34:46 -05:00
Tobias Rüetschi
a973d8e9c4 UCS udm_share: fix creating of new shares 2016-12-08 11:34:45 -05:00
Tobias Rüetschi
66380d6b7f UCS udm_share: added 2016-12-08 11:34:45 -05:00
Ethan Devenport
dcd7544b26 Added parameter choices for bus. 2016-12-08 11:34:45 -05:00
Ethan Devenport
403c1ddf7b Set variable types, defined choices, and cleaned up whitespace. 2016-12-08 11:34:45 -05:00
Ethan Devenport
f9e0830b44 Reverting recent commits back to initial PR and will move the new profitbricks_firewall_rule module and other recent changes to a new branch.
Revert "Added support for firewall rules, consolidated resource UUID retrieval methods for server and NIC modules, and set LAN type to int."

This reverts commit 464cbb89f2.
2016-12-08 11:34:45 -05:00
Ethan Devenport
e1960d2488 Added RETURN documentation. 2016-12-08 11:34:45 -05:00
Ethan Devenport
a3200fc98e Some further documentation updates including version. 2016-12-08 11:34:45 -05:00
Ethan Devenport
93a237f604 Minor documentation corrections. 2016-12-08 11:34:45 -05:00
Ethan Devenport
4b7a4e4495 Added support for firewall rules, consolidated resource UUID retrieval methods for server and NIC modules, and set LAN type to int. 2016-12-08 11:34:45 -05:00
Ethan Devenport
e2c8fec8d9 Included version_added for new options. 2016-12-08 11:34:45 -05:00
Ethan Devenport
267052d7a5 Removed us/lasdev datacenter which the cloud provider no longer maintains. 2016-12-08 11:34:45 -05:00
Ethan Devenport
6d8e3eac7b Additional provider features added and fixed some bugs. * Added support for SSH keys, image passwords, SSD disk type, and CPU family. * Adjusted server create so that IP address is returned in response. * Restructured remove server method(s) to handle change status properly, gracefully handle missing servers, and improve overall performance. * Prevent duplicate server names from being provisioned so removals can be handled appropriately. * Fixed a bug in the count increment being a string rather than an integer. * Fixed issue with create_volume returning invalid response. * Fixed type bug in volume instance_ids for volume removal and improved volume management. * Fixed type bug in instance_ids for proper server removal and moved boot volume creation into composite server build request. * General clean up. 2016-12-08 11:34:45 -05:00
Wong Hoi Sing Edison
d9a1b04e40 Fix ansible/ansible-modules-extras#1682: add dispersed volume support for gluster_volume (#2708) 2016-12-08 11:34:45 -05:00
afunix
32574aa358 gluster_volume module parses out additional hostnames provided by "gluster peer status" command [#1405] (#2811) 2016-12-08 11:34:45 -05:00
René Moser
4017be741a ec2_vpc_dhcp_options_facts: fix exception handling, fixes build (#2819) 2016-12-08 11:34:45 -05:00
Fabio Alessandro Locati
4af6033469 Require domain in rocketchat (#2803)
* Set the domain as required

* Add domain in the examples as well
2016-12-08 11:34:44 -05:00
Joe Smith
09776a9e52 Set explicit type for timeout (#2809)
vmware_maintenancemode.py needs explicit type for timeout, otherwise it reads timeout as string and breaks.
2016-12-08 11:34:44 -05:00
John R Barker
abaf6afc0a ec2_vpc_dhcp_options_facts.py no py3
Old PR was merged that hadn't been updated since we added the py3 checks
2016-12-08 11:34:44 -05:00
Tobias Rüetschi
e318c9b008 Feature udm dns zone (#2382)
* UCS udm_dns_zone: added

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_dns_zone: updated, add supports check mode

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_dns_zone: updated, add support to modify dns zones

* UCS udm_dns_zone: change string formating

* UCS udm_dns_zone: add a function to convert the time to the biggest unit

* UCS udm_dns_zone: add type definitions to the argument specification

* UCS udm_dns_zone: update function convert_time

* UCS udm_dns_zone: only modify object if it has changed

* UCS udm_dns_zone: add documentation

* UCS udm_dns_zone: fix checks

* UCS udm_dns_zone: if dns zone not exists, changed is always true

* UCS udm_dns_zone: documentation, add version_added

* UCS udm_dns_zone: add license and fix travis for python 3

* UCS udm_dns_zone: import common code for univention from ansible.module_utils.univention

* univention udm_dns_zone: adapt to library univention_umc

* univention udm_dns_zone: lint

* univention udm_dns_zone: add requirement python >= 2.6 to documentation

* univention udm_dns_zone: dont import time, its unused
2016-12-08 11:34:44 -05:00
Adam Števko
d56c34ea9e Add modules to configure Solaris/illumos networking (1st batch) (#2416)
* Add modules to configure Solaris/illumos networking (1st batch)

* Add choices to temporary flags
2016-12-08 11:34:44 -05:00
Olivier Boukili
f43eb7c79e new module: apache2_mod_proxy (#2148)
* module apache2_mod_proxy

* Moved state notes to state description.
2016-12-08 11:34:44 -05:00
TimothyVandenbrande
0b135aa6da This is an ansible module to control/create/adapt/remove VMs on a RHEV/oVirt environment. (#2202) 2016-12-08 11:34:44 -05:00
René Moser
d7b68e0e80 new modules for managing exoscale DNS (#2788) 2016-12-08 11:34:44 -05:00
Tobias Rüetschi
16464d5021 Feature udm group (#2396)
* UCS udm_group: added

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_group: updated

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_group: add key description

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* python styling

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_group: updated, add supports check mode

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_group: updated, add support to modify groups

* UCS udm_group: change string formating

* UCS udm_group: add type definitions to the argument specification

* UCS udm_group: import common code for univention from ansible.module_utils.univention

* univention udm_group: add documentation

* UCS udm_group: add requirement python >= 2.6

* univention udm_group: add more examples
2016-12-08 11:34:44 -05:00
Tobias Rüetschi
7506ea3a37 Feature udm dns record (#2394)
* UCS udm_dns: added

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_dns_record: fix multiple entries in different zones

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_dns -> udm_dns_record: renamed

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_dns_record: updated, add supports check mode

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_dns_record: updated, add support to modify dns records

* UCS udm_dns_record: change string formating

* UCS udm_dns_record: add type definitions to the argument specification

* UCS udm_dns_record: import common code for univention from ansible.module_utils.univention_umc

* UCS udm_dns_record: add documentation

* UCS udm_dns_record: update documenation

* univention udm_dns_record: pylint

* univention udm_dns_record: fix reverse zone entries
2016-12-08 11:34:44 -05:00
naslanidis
cbd2025223 new AWS module for ec2 dhcp option facts (#2001)
new ec2 dhcp option facts module
2016-12-08 11:34:44 -05:00
James Higgins
f7ac1f7f90 Just use netloc to identify bucket name for s3 locations (#2713) 2016-12-08 11:34:44 -05:00
René Moser
43ea275856 vmware_local_user_manager: fix global name 'module' is not defined (#2818) 2016-12-08 11:34:44 -05:00
alxsey
0bfaf34286 Implement template storage selection (#2755) 2016-12-08 11:34:44 -05:00
Mike Liu
73cf1f2755 Iptables enhancements (#2789)
* Add the flush parameter.

When specified the flush parameter indicates that this module should remove all
rules from the specified table. If no table parameter is specified then the
default filter table is flushed.

* Add support for setting chain policies.

The module supports setting the policy of a given chain and table to the
following target values, ACCEPT, DROP, QUEUE, and RETURN. This parameter ignores
all other unrelated parameters.

* Fix pep8 issues.

* Fix missing quotation.

* Make 'flush' and 'policy' parameters mutually exclusive.

This combination is not supported by the wrapped iptables command. 'flush' and
'policy' however, can both take the 'chain' argument.
2016-12-08 11:34:44 -05:00
bbooysen
41713d0819 typo fix (#2816)
Changed 'memroy' to 'memory'.
2016-12-08 11:34:43 -05:00
Tim Rupp
e4ddd4358c Fixes documentation bugs in bigip_irule (#2797)
The return docs were incorrect for this module. This patch fixes them
and adds some additional return values
2016-12-08 11:34:43 -05:00
Toshio Kuratomi
53e7fee617 We've decided that python-3.5 is our minimum pyhton3 version (#2798) 2016-12-08 11:34:43 -05:00
Tobias Rüetschi
3d1474bbd1 Feature udm user (#2406)
* Creating directory univention

* UCS udm_user: added

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_user: updating, added support to modify user groups

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_user: add key homedrive

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_user: add key userexpiry

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* python styling

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_user: updated, add supports check mode

Signed-off-by: Tobias Rüetschi <tobias.ruetschi@adfinis-sygroup.ch>

* UCS udm_user: updated, add support to modify users

* UCS udm_user: change string formating

* UCS udm_user: add type definitions to the argument specification

* UCS udm_user: only modify object if it has changed

* UCS udm_user: if user not exists, changed is always true

* UCS udm_user: import common code for univention from ansible.module_utils.univention_umc

* UCS udm_user: add a lot more attributes

* UCS udm_user: add license information

* UCS udm_user: fix API serviceprovider and unixhome

* UCS udm_user: add documentation

* univention udm_user: import only AnsibleModule from ansible.module_utils.basic

* univention udm_user: reorder documentation options

* univention udm_user: fix documentation

* univention udm_user: dont log password

* univention udm_user: add more examples
2016-12-08 11:34:43 -05:00
Massimo Gervasini
c934ab7e8b when write_config is no, we should not try to write any configuration changes 2016-12-08 11:34:43 -05:00
Toshio Kuratomi
66af5335c2 Moved the atomic modules to cloud/atomic. (#2784)
Similar category to docker and lxd
2016-12-08 11:34:43 -05:00
Tim Rupp
97d41d54ab Adds provision info to bigip facts (#2783)
This patch adds provision information to the bigip_facts module
through a "provision" include.
2016-12-08 11:34:43 -05:00
Russell Teague
150a044728 Fix vmware_dvs_portgroup destroy task (#2776)
Fixes #2761
2016-12-08 11:34:43 -05:00
Manuel Sousa
73c39c3aaf rabbitmq_queue - Update requirements to show minimum version of requests (#2786) 2016-12-08 11:34:43 -05:00
Manuel Sousa
d4d83fea2c rabbitmq_binding - Update requirements to show minimum version of requests (#2787) 2016-12-08 11:34:43 -05:00
Manuel Sousa
f7c732ad34 rabbitmq_exchange - Update requirements to show minimum version of requests (#2785) 2016-12-08 11:34:43 -05:00
Lingxian Kong
0446db9afd Add openstack os_server_group module (#2702) 2016-12-08 11:34:43 -05:00
Tim Rupp
e5f629500d New module bigip_irule
This module can be used to maintain the iRules for both LTM and GTM
on a BIG-IP. iRules should be supplied in their string form using
normal strings (unlikely), file lookups (likely), or template
lookups (likely).

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/__bigip_irule/tasks/main.yaml

Platforms this was tested on are

11.6.1
12.0.0
12.1.0
2016-12-08 11:34:43 -05:00
Tim Rupp
d84e3b6ed7 This module can be used as part of the bootstrapping of a BIG-IP. It allows one to configure the various NTP settings that are part of a BIG-IP.
Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/__bigip_device_ntp/tasks/main.yaml

Platforms this was tested on are

11.6.0
12.0.0
12.1.0
12.1.0 HF1
2016-12-08 11:34:43 -05:00
Tim Rupp
57c3ae838d Addition of bigip_device_sshd module
This module can be used as part of the bootstrapping of a BIG-IP. It
allows one to configure the various SSHD settings that are part of
a BIG-IP.

Tests for this module can be found here

https://github.com/F5Networks/f5-ansible/blob/master/roles/__bigip_device_sshd/tasks/main.yaml

Platforms this was tested on are

11.6.0
12.0.0
12.1.0
12.1.0 HF1
2016-12-08 11:34:43 -05:00
Toshio Kuratomi
7a8b080506 Get hipchat, sns, and typetalk notification modules compiling on py3 (#2782) 2016-12-08 11:34:42 -05:00
Kevin Brebanov
4999bb28cd apk: Fix mutual exclusivity (#2768)
* apk: Fix mutual exclusivity

Ensure that 'name' and 'upgrade' are mutually exclusive.
Also add a note to the documentation to say so.

Fixes: #2767

* Fix documentation
2016-12-08 11:34:42 -05:00
Tim Rupp
9ff52723a9 Adds documentation fragment to bigip modules
This patch removes the common documentation bits and replaces them
with a doc fragment that already exists in core
2016-12-08 11:34:42 -05:00
Jiri Tyr
3dc7bfa6b8 Adding jenkins_plugin module (#1730) 2016-12-08 11:34:42 -05:00
Richard Metzler
7fddb83f91 letsencrypt: update URL for agreement pdf (#2696)
The Let's Encrypt Subscriber Agreement changed on Aug 01, 2016
https://letsencrypt.org/repository/
2016-12-08 11:34:42 -05:00
Matt Clay
2224a7b5a7 Enable CI on Shippable for OS X. (#2779) 2016-12-08 11:34:42 -05:00
Brian Coca
64e11d202c updated blacklist 2016-12-08 11:34:42 -05:00
Adrian Likins
9fb53e12ce Add a 'requirements:' field to cloudflare_dns doc (#2631)
cloudflare_dns.py makes use of the python
2.6 features (the string .format() method).
2016-12-08 11:34:42 -05:00
Brian Coca
24b4b1b762 renamed bmc to remote_management to clarify 2016-12-08 11:34:42 -05:00
Kevin Carter
eab15da081 Remove the subsystem lock loop (#2647)
This change removes the loop watching for "/var/lock/subsys/lxc" from
the lxc-container module. This change simply runs the command within
a container using the lxc CLI tools which should be responcible for
locking and unlocking on their own.

Closes-Issue: https://github.com/ansible/ansible-modules-extras/issues/690
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-12-08 11:34:42 -05:00