Commit graph

14084 commits

Author SHA1 Message Date
Fabio Alessandro Locati
cbe3f4e5e1 Make main() calls conditional - system (#3652) 2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
45b31fa514 Make main() calls conditional - source_control (#3651) 2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
007abb5373 Make main() calls conditional - packaging (#3650) 2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
95be8b8276 Make main() calls conditional - network (#3649) 2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
9f7ad2ca3b Conditional main - monitoring (#3648) 2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
e788ce068a Make main() calls conditional - clustering (#3647) 2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
96780cf035 Make main() calls conditional - notifications (#3656) 2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
afa6fa9a89 Make main() calls conditional - cloud (#3657) 2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
11e3ec26ea Make main() calls conditional - files (#3658) 2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
06bf2e1e63 Make main() calls conditional - database (#3659) 2016-12-08 11:35:15 -05:00
Ondra Machacek
103e3341f5 ovirt_vms: Add support to specify template version (#3567) 2016-12-08 11:35:15 -05:00
René Moser
3c48b4a7a1 cloudstack: cs_ip_address: implement VPC support (#3403) 2016-12-08 11:35:15 -05:00
René Moser
93ebe0f7c1 cloudstack: cs_staticnat: implement VPC support (#3409) 2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
7d1a006629 Native YAML, improve quotation (#3643) 2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
8b31d48410 Native YAML - monitoring/sensu_check (#3635) 2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
3b5826b828 Native YAML - monitoring/datadog_event (#3637) 2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
616752c2e3 Correct indentation in examples - files/blockinfile.py (#3630)
* indentation in with_items section is out, correct that.
2016-12-08 11:35:14 -05:00
Matthew Krupcale
a6f0a279a9 FreeIPA module polymorphic restructuring and small fixes. (#3485)
* Moved JSON-RPC client IPAClient class to ansible.module_utils.ipa, which is extended by all ipa modules
* ipa_user: incorporate displayname and userpassword attributes in module_user
* ipa_user: capitalized "I" in comment
* ipa_user: updated get_ssh_key_fingerprint to include possibility of the uploaded SSH key including user@hostname comment, which also appears in the queried fingerprint. This fixes a mismatch in the calculated and queried SSH key fingerprint in the user_diff calculation when the user already exists.
* ipa_hbacrule: ipaenabledflag must be 'TRUE' or 'FALSE', not 'NO'
* ipa_sudorule: ipaenabledflag must be 'TRUE' or 'FALSE', not 'NO'
* Add author to files missing it
2016-12-08 11:35:14 -05:00
Fabian von Feilitzsch
92a53a7182 Check values for vm_id and vm_names instead of keys (#3621) 2016-12-08 11:35:14 -05:00
Jon Hawkesworth
50deb312fe Fix documentation error on read message from file example. 2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
2ea57deb72 Native YAML - cloud/centurylink/clc_loadbalancer.py (#3632) 2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
cc25f24475 Native YAML - system (#3625)
* Native YAML - system

* Remove comment that is not applicable to the code
2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
737c6afb54 Native YAML - database/misc/mongodb_user.py (#3631) 2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
cd54cd973a Native YAML - cloud/amazon/lambda.py (#3628) 2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
723556fc98 Native YAML - notification leftovers (#3626) 2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
2f369dff88 Native YAML - cloud/misc (#3615)
* Native YAML - cloud/misc

* Fix mistake
2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
75f9cb30e1 Add quotes for non-floats decimals (#3609) 2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
d9231d065e Native YAML - cloud/openstack (#3614) 2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
fb2ddac407 Native YAML - database/postgresql/postgresql_ext (#3617) 2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
c284125e66 Native YAML - cloud/serverless (#3618) 2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
d11a5bd492 Native YAML - windows (#3602)
* Native YAML - windows

* Fix baskslash

* Sorry
2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
684045a316 Fix spacing (#3616) 2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
4561c75d1c Normalize YAML - Cloud/VMWare (#3612) 2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
1a7b9090df Native YAML - cloud/cloudstack (#3613) 2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
00eb0d27d9 Cloud lxc (#3611)
* Native YAML - cloud/lxc

* debug var uses naked vars
2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
1e9333f822 Cloud amazon and azure (#3610)
* Native YAML - cloud/amazon

* Native YAML - cloud/azure
2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
06a8f1d79b Use native YAML - Packaging (#3588)
* Fix kibana

* More native YAML

* More native YAML

* More native YAML

* More native YAML. Now only languages/ is missing

* Use native yaml sintax for packaging/languages as well

* Some more and quote fixes

* Fix wrong grouping
2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
d344d7863a Native YAML - files (#3608) 2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
47442b7c22 Native YAML - databases/pgsql (#3606) 2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
51798cba0e Native YAML - Databases/mysql (#3605) 2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
13b970d04b Native YAML - Databases/MsSQL (#3604) 2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
7ac053576e Native YAML - Database/musc (#3603) 2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
fb50f129ea Native YAML - remote_management (#3601) 2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
8a6df38cc5 Native YAML - messaging (#3599) 2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
5209969a7c Native YAML - Web infrastructure (#3594)
* Native YAML

* YAML for jira as well

* Native YAML for Jboss

* Fix missing spaces
2016-12-08 11:35:12 -05:00
Dag Wieers
367a0c5d99 Bugfix for newer policycoreutils-python (eg. RHEL7) (#3569)
The policycoreutils python API for RHEL6 and RHEL7 are sufficiently
different, requiring some additional definitions and specific conversion
that works on old and new implementations.

It also implements a fix for non-ascii error messages (like when using a
French locale configuration).

This fixes #3551.
2016-12-08 11:35:12 -05:00
Shinichi TAMURA
335a28443d timezone: Fix TypeError
closes #3337
2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
75563d5325 Native YAML - notifications (#3598) 2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
951b87492a Native YAML (#3596) 2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
f4a4492992 bigpanda: Use delegate_to (over local_action) (#3586)
* Fix YAML, naed variables

* Fix spaces
2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
f8f0893922 Native YAML (#3583) 2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
cb1b8edfa9 Native YAML - Network (#3587)
* Fix citrix native yaml

* Fix snmp native yaml and connectio

* Fix more native syntax

* More native syntax

* Fix openvswitch native syntax

* More YAML code !

* More fixes

* Improve nmcli
2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
d092d53198 Native YAML (#3584) 2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
b6cf2e422d Native YAML + add comments (#3582) 2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
c40bb574c6 Native YAML (#3581) 2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
f85fd14242 Native YAML (#3580) 2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
c2474b8a3f Native YAML (#3579) 2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
23cfa31a7b Native YAML (#3578) 2016-12-08 11:35:12 -05:00
John R Barker
1684792efa nagios - Better comment: example (#3595) 2016-12-08 11:35:12 -05:00
Fabio Alessandro Locati
45c55607f1 Native YAML (#3577) 2016-12-08 11:35:11 -05:00
Fabio Alessandro Locati
79e1e01e4c Native YAML (#3576) 2016-12-08 11:35:11 -05:00
Fabio Alessandro Locati
9a399d9945 Native YAML (#3575) 2016-12-08 11:35:11 -05:00
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