Commit graph

11620 commits

Author SHA1 Message Date
Matt Martz
98bbadb567 Add py27 compileall to test all modules, specifically for syntax errors 2016-12-08 11:32:36 -05:00
Toshio Kuratomi
a8c12ec097 Add python >= 2.6 to documented deps 2016-12-08 11:32:36 -05:00
Rene Moser
ef277ddf0b cloudstack: add new module cs_account 2016-12-08 11:32:36 -05:00
Jean-Fred Berthelot
ae5fed65f2 Add check_mode support to HipChat module
The HipChat module declares to support check_mode,
but the message is sent in any case.

With this, if executed in check mode, the module will exit
before actually sending the message to HipChat.

It will return changed=False, as per the convention
for notifications modules.
2016-12-08 11:32:36 -05:00
Toshio Kuratomi
43687f1940 Update module documentation if modules have a dep on python2.6+ 2016-12-08 11:32:36 -05:00
Matt Martz
6a5d073b83 Be more explicit with exclusions 2016-12-08 11:32:36 -05:00
Matt Martz
42bca5398b Use try/finally with file opening to close the file 2016-12-08 11:32:36 -05:00
Matt Martz
bdf9623f56 Exclude consul modules from py24 syntax check 2016-12-08 11:32:36 -05:00
Matt Martz
acee6436af Give consul modules a .py extension 2016-12-08 11:32:36 -05:00
Matt Martz
7fae20f112 Give pushover a .py file extension 2016-12-08 11:32:36 -05:00
Matt Martz
8bd5757720 Fix up modules that have python24 syntax error 2016-12-08 11:32:36 -05:00
Paul Bourdel
a03da8d592 Rewriting to use default ansible http libraries. 2016-12-08 11:32:36 -05:00
Paul Bourdel
ca28acd07a Changing from v1 to v2 hipchat api format. 2016-12-08 11:32:36 -05:00
Matt Martz
9ccc869180 Add compileall testing via travis to validate modules are python24 compatible 2016-12-08 11:32:36 -05:00
Jeff Rizzo
81a646ddaf Support both new and old pkgin versions by testing if '-p' flag exists. 2016-12-08 11:32:36 -05:00
Rene Moser
d73aa9d428 cloudstack: new module cs_instancegroup 2016-12-08 11:32:36 -05:00
Will
f6de67e17f Allow sending direct messages with slack module 2016-12-08 11:32:35 -05:00
Julien Vey
c5eb378677 Be consistent in the documentation
The documentation for the `state` field is not very clear.

It says possible values are "installed, uninstalled" and default value is "present"
The examples below alow uses `present` and `absent`.

This patch uses "absent" and "present" instead of "installed" and "uninstalled"

Moreover, this is consistent with other packaging modules, like homebrew itself
2016-12-08 11:32:35 -05:00
Rene Moser
36c74c5798 cloudstack: fix missing doc fragment in cs_securitygroup_rule 2016-12-08 11:32:35 -05:00
Rene Moser
89704a7e38 cloudstack: fix missing doc fragments 2016-12-08 11:32:35 -05:00
Sterling Windmill
0eaee21d81 Allow for specifying name instead of host as per the documentation at http://docs.ansible.com/known_hosts_module.html 2016-12-08 11:32:35 -05:00
Rene Moser
fdac186d85 cloudstack: fix misssing doc about vm param 2016-12-08 11:32:35 -05:00
Rene Moser
b9b0c5c006 cloudstack: fix missing zone param used in get_vm() in utils 2016-12-08 11:32:35 -05:00
Rene Moser
5a2a5b16d5 cloudstack: add new module cs_instance
Manages instances and virtual machines
2016-12-08 11:32:35 -05:00
Joe Ray
a91c8caee0 Import boto.ec2 in sns to allow boto profiles to be used 2016-12-08 11:32:35 -05:00
Roland Ramthun
c3ce2eb169 disable ask on sync action 2016-12-08 11:32:35 -05:00
Robert Osowiecki
523ba0820b Using get_bin_path to find rmmod and modprobe 2016-12-08 11:32:35 -05:00
Toshio Kuratomi
c90509dc9f doc formatting 2016-12-08 11:32:35 -05:00
Steve Gargan
366f163495 use module.fail_json to report import errors. document valid duration units 2016-12-08 11:32:35 -05:00
Steve Gargan
e1ff0feb58 documentation tweaks to fix missing arguments and specification of defaults 2016-12-08 11:32:35 -05:00
Steve Gargan
b5faf88494 Properly report exception causes particularly connection exceptions contacting the consul agent 2016-12-08 11:32:35 -05:00
Steve Gargan
e701972186 require a valid duration suffix for interval and ttl values 2016-12-08 11:32:35 -05:00
Steve Gargan
2728dc3fb8 fix logic that tests for change in an existing registered service 2016-12-08 11:32:35 -05:00
Steve Gargan
a04bd291b4 remove debug imports from acl module 2016-12-08 11:32:34 -05:00
Steve Gargan
4b5e73c11c Initial commit of Ansible support for the Consul clustering framework (http://consul.io). Submission includes support for - creating and registering services and checks - reading, writing and lookup for values in consul's kv store - creating and manipulating sessions for distributed locking on values in the kv - creating and manipulating ACLs for restricting access to the kv store - inventory support that reads the Consul catalog and group nodes according to - datacenters - exposed services - service availability - arbitrary groupings from the kv store
This submission makes extensive use of the python-consul library and this is required
as a dependency and can be installed from pip.

The tests were written to target a vagrant cluster which can be setup by following the
instructions here http://github.com/sgargan/consul-vagrant
2016-12-08 11:32:34 -05:00
Matt Jaynes
6662b9ccef Remove mentions of 'msg' alias 2016-12-08 11:32:34 -05:00
Matt Jaynes
94f581b83a Document 'msg' param and fix examples
The 'msg' alias for 'subject' isn't in the documentation, so adding it.

In the gmail example, it uses both the 'subject' and 'msg' params, but 'msg' is an alias of 'subject', so you are essentially declaring the same param twice. If you use this example, then no subject is sent (I tested with gmail). Documentation example is updated to use 'body' as intended.

Also, updated the simple example to use 'subject' instead of the 'msg' alias since it is more explicit.
2016-12-08 11:32:34 -05:00
Brian Coca
948c05ac5e moved new module to proper subdir fixed doc issues minor code adjustments 2016-12-08 11:32:34 -05:00
Joseph Callen
9da7c44a9b New VMware Module to support adding a datacenter 2016-12-08 11:32:34 -05:00
Doug Luce
9211369389 Add the cronvar module.
This manages environment variables in Vixie crontabs.  It includes
addition/removal/replacement of variables and ordering via the
insertbefore/insertafter parameters.
2016-12-08 11:32:34 -05:00
Rene Moser
955292704b cloudstack: add new module cs_vmsnapshot
This module depends on ansible.module_utils.cloudstack.
2016-12-08 11:32:34 -05:00
Rene Moser
7890c129db cloudstack: add new module cs_affinitygroup
This module depends on ansible.module_utils.cloudstack.
2016-12-08 11:32:34 -05:00
Rene Moser
57f5e46e99 cloudstack: add new module cs_securitygroup_rule
This module depends on ansible.module_utils.cloudstack.
2016-12-08 11:32:34 -05:00
Rene Moser
15f24f3021 cloudstack: add new module cs_securitygroup
This module depends on ansible.module_utils.cloudstack.
2016-12-08 11:32:34 -05:00
Brian Coca
48e1f1b0bc fixed 2.4 compatibility 2016-12-08 11:32:34 -05:00
Brian Coca
60df464d1a added aliases docs 2016-12-08 11:32:34 -05:00
RJ Nowling
58e681495f Change 'brick' to 'bricks' and add 'brick' as an alias. Add example with multiple bricks. 2016-12-08 11:32:34 -05:00
RJ Nowling
3bd5631fd1 Improve documentation for gluster_volume brick parameter 2016-12-08 11:32:34 -05:00
RJ Nowling
ef3e5bd296 Issue #403: Add support for multiple bricks to gluster_volume 2016-12-08 11:32:34 -05:00
Jonathan Mainguy
af51a50863 Fixes bug where state=absent did not work 2016-12-08 11:32:33 -05:00
Peter Oliver
c8c4305057 Add an accept_licenses option to pkg5 module
This accepts any software licences required by the package.
2016-12-08 11:32:33 -05:00
Niall Donegan
f7d2f76976 Handle missing module with fail_json 2016-12-08 11:32:33 -05:00
Niall Donegan
9d5669e6b3 sys.exit used, but not imported. 2016-12-08 11:32:33 -05:00
Brian Coca
0ed579ddd7 doc update for zypper 2016-12-08 11:32:33 -05:00
Gregory Haynes
960b0f478f Add type property to zypper
To install patterns and other package types a type parameter needs to be
specified to zypper.
2016-12-08 11:32:33 -05:00
Michael Scherer
298e782ff7 Expand user in path, fix #385 2016-12-08 11:32:33 -05:00
RJ Nowling
0243eec2a6 Make 'module' global. Small whitespace formatting fixes. Closes Issue #397. 2016-12-08 11:32:33 -05:00
Matthew Makai
065b2fe309 updating main for loop based on @abadger code review 2016-12-08 11:32:33 -05:00
Matthew Makai
6db9b2beda fixing typo in documentation 2016-12-08 11:32:33 -05:00
Matthew Makai
dbb50a62ef updating twilio module to optionally support MMS 2016-12-08 11:32:33 -05:00
Matthew Makai
9d1a52e902 updating twilio module docs and making it possible to send to a list of phone numbers 2016-12-08 11:32:33 -05:00
Matthew Makai
1ce89d9f17 updating sendgrid module based on code review by @abadger 2016-12-08 11:32:33 -05:00
Matthew Makai
cbb5689e91 adding sendgrid module to extras 2016-12-08 11:32:33 -05:00
Rene Moser
8f0a2ce50d cloudstack: rename modules to more meaningful name schema 2016-12-08 11:32:33 -05:00
Jeferson Daniel
2f554518a6 Fixes #335 2016-12-08 11:32:33 -05:00
rhorer
927fb145b3 Update twilio.py module name in Examples 2016-12-08 11:32:32 -05:00
Simon Olofsson
334c26ca53 homebrew: Package name is not required.
e.g. `- homebrew: update_homebrew=yes upgrade_all=yes' is a valid task.
2016-12-08 11:32:32 -05:00
mcameron
664f965c8d Revert "system/lvol: Suppress prompts from lvcreate"
This reverts commit f8d04bec1b.
2016-12-08 11:32:32 -05:00
Sébastien Gross
95031a8bea Merge wrapped lines.
Some devices return their description on multiple lines such as:

    lldp.eth0.chassis.descr=cisco CISCO7609-S running on
    Cisco IOS Software, c7600s72033_rp Software (c7600s72033_rp-IPSERVICESK9-M), Version 12.2(33)SRE3, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2011 by Cisco Systems, Inc.
    Compiled Wed 26-Jan-11 06:54 by prod_rel_team

The generated fact will result as:

    "descr": "cisco CISCO7609-S running on"

This patch fixes the line wrapping to return the full description
handling line breaks:

    "descr": "cisco CISCO7609-S running on\nCisco IOS Software, c7600s72033_rp Software (c7600s72033_rp-IPSERVICESK9-M), Version 12.2(33)SRE3, RELEASE SOFTWARE (fc1)\nTechnical Support: http://www.cisco.com/techsupport\nCopyright (c) 1986-2011 by Cisco Systems, Inc.\nCompiled Wed 26-Jan-11 06:54 by prod_rel_team"
2016-12-08 11:32:32 -05:00
Andy Hill
d72734ed47 bigip_facts: Add missing "device" option
The device option was already implemented but omitted from docs and allowed
choices. With the addition of device, a devices failover_state can be
determined.
2016-12-08 11:32:32 -05:00
Brian Coca
fd060d453c now also captrure OSErrors on temp file fixes #360 2016-12-08 11:32:32 -05:00
Rob White
c9f90a2402 Convert symlinks specified in pvs to actual path 2016-12-08 11:32:32 -05:00
Yuri Kunde Schlesner
c3940f16eb crypttab: Fix parameter checking with state=absent
Only the `name` parameter is required when removing an entry, but the module tried to ensure at least one other parameter was set.
2016-12-08 11:32:32 -05:00
Robin Roth
4f0e1c850c fixed tab/space mix 2016-12-08 11:32:32 -05:00
Robin Roth
32310a43ae fix local change 2016-12-08 11:32:32 -05:00
Robin Roth
e33875e382 Allow multiple versions in rpm state
Fix bug in ansible get_package_state and get_current_version that breaks when there are multiple versions of a package installed and there is a list of packages to install.
The previous implementation used 'zip' to match requested names to installed names which fails, because rpm outputs multiple lines per package when there are multiple versions.

Testcase: Install opensuse, install multiple kernel versions (happens by update)
Before patch: calling
zypper: state=present for name={{item}}
with_items:
  - kernel-desktop
  - git

leads to ansible aborting.
After the patch ansible performs as expected and makes sure both packages are present.
Also the last version number is used for further update information in this version (before if only one package name was given the oldest version number was used).
2016-12-08 11:32:32 -05:00
Sébastien Gross
47def27127 Update documentation for src parameter. 2016-12-08 11:32:32 -05:00
Sébastien Gross
5f6121856f Make sure the absolute patch file is passed to the patch command.
According the patch(1) manpage:
The --directory option change to the directory dir immediately, before
doing anything else.

Thus if file is not relative to dir and making file absolute ensure that
patch will find it.
2016-12-08 11:32:32 -05:00
Sébastien Gross
4e24d2cdf7 Make sure patch command is found on remote system. 2016-12-08 11:32:32 -05:00
Brian Coca
bd0c787c37 glusterbin needs to be global 2016-12-08 11:32:32 -05:00
Matthew Vernon
dd9d5cc670 Fix for issue #353 (handle change in ssh-keygen behaviour)
Prior to openssh 6.4, ssh-keygen -F returned 0 (and no output) when no
host was found. After then, it instead returned 1 and no output. This
revised code behaves correctly with either behaviour. There is
currently no other code path that results in exit(1) and no output.
2016-12-08 11:32:32 -05:00
Brian Coca
b90f97442d vertica doc fixes 2016-12-08 11:32:31 -05:00
Brian Coca
346e34ac79 fixed doc issues with cloudstack_fw 2016-12-08 11:32:31 -05:00
Brian Coca
312814c51b fixed doc issues on zabbix_screen 2016-12-08 11:32:31 -05:00
Rene Moser
71a7df8f12 cloudstack_sshkey: cleanup docs 2016-12-08 11:32:31 -05:00
Rene Moser
d4333080c4 cloudstack_ssh: replace ssh public key if fingerprints do not match 2016-12-08 11:32:31 -05:00
Rene Moser
4c35f75597 cloudstack_ssh: update description 2016-12-08 11:32:31 -05:00
Rene Moser
06cfffa35c cloudstack_ssh: register_ssh_key() set public_key as param 2016-12-08 11:32:31 -05:00
Rene Moser
1d0ce5c5ea cloudstack_ssh: fix missing projectid if state=absent 2016-12-08 11:32:31 -05:00
Rene Moser
742d581261 cloudstack: add new module cloudstack_sshkey
This module depends on ansible.module_utils.cloudstack.
2016-12-08 11:32:31 -05:00
Rene Moser
a01cb6464e cloudstack: add new module cloudstack_iso 2016-12-08 11:32:31 -05:00
Rene Moser
c12f841938 cloudstack: add new module cloudstack_fw 2016-12-08 11:32:31 -05:00
Brian Coca
8197922937 fixed missing parens 2016-12-08 11:32:31 -05:00
Brian Coca
0a30663a1e minor fix to method of finding home as previous could 'overmatch' 2016-12-08 11:32:31 -05:00
Brian Coca
bb418095a3 minor fixes to gluster: - removed functions from main scope - renamed rebalance function to disambiguate from variable - updated docs with defaults - added exception handling to command execution 2016-12-08 11:32:31 -05:00
Kevin Carter
2ff3a8d35f Updated lxc_container module to fix option parsing
The option parsing object within the module was performing a split
on an '=' sign and assuming that there would only ever be one '='
in a user provided option. Sadly, the assumption is incorrect and
the list comprehension that is building the options list needs to
be set to split on the first occurrence of an '=' sign in a given
option string. This commit adds the required change to make it
possible for options to contain additional '=' signs and be handled
correctly.
2016-12-08 11:32:31 -05:00
Tyler Kellen
12b2cab5ba correct version_added for known_hosts
It was added in 1.9, not 1.6.
2016-12-08 11:32:31 -05:00
Brian Coca
8d086a2444 removed requirements which was causing crash with dupe from shared doc fragments 2016-12-08 11:32:30 -05:00
Brian Coca
caeeacd4f4 minor documentation fixes 2016-12-08 11:32:30 -05:00
Cove Schneider
0456685726 add zabbix_screen 2016-12-08 11:32:30 -05:00