Commit graph

8269 commits

Author SHA1 Message Date
Robin Roth
bb68df525c refactor zypper module
* refactor zypper module

Cleanup:
* remove mention of old_zypper (no longer supported)
  * requirement goes up to zypper 1.0, SLES 11.0, openSUSE 11.1
  * allows to use newer features (xml output)
  * already done for zypper_repository
* use zypper instead of rpm to get old version information, based on work by @jasonmader
* don't use rpm, zypper can do everything itself
* run zypper only twice, first to determine current state, then to apply changes

New features:
* determine change by parsing zypper xmlout
* determine failure by checking return code
* allow simulataneous installation/removal of packages (using '-' and '+' prefix)
  * allows to swap out alternatives without removing packages depending
    on them
* implement checkmode, using zypper --dry-run
* implement diffmode
* implement 'name=* state=latest' and 'name=* state=latest type=patch'
* add force parameter, handed to zypper to allow downgrade or change of vendor/architecture

Fixes/Replaces:
* fixes #1627, give changed=False on installed patches
* fixes #2094, handling URLs for packages
* fixes #1461, fixes #546, allow state=latest name='*'
* fixes #299, changed=False on second install, actually this was fixed earlier, but it is explicitly tested now
* fixes #1824, add type=application
* fixes #1256, install rpm from path, this is done by passing URLs and paths directly to zypper

* fix typo in package_update_all

* minor fixes

* remove commented code block
* bump version added to 2.2
* deal with zypper return codes 103 and 106
2016-05-04 07:47:47 +02:00
René Moser
f2383fe0ac Merge pull request #2086 from indrajitr/homebrew_cask_install_options
Adding install_options to homebrew_cask (see #544)
2016-05-04 07:39:13 +02:00
Rob
47fddc83be Added doc for new get_ec2_security_group_ids_from_names function in m… 2016-05-04 07:30:30 +02:00
Gonçalo Luiz
336d475746 fixed not resolving latest to snapshot for MD5 check when the file ex… 2016-05-04 07:29:15 +02:00
Adrian Likins
9d705a4208 Expect 204 status when using hipchat v2 api.
When posting to the room notication api with hipchat
v2 api, the expected return code is 204, as per:
https://www.hipchat.com/docs/apiv2/method/send_room_notification

fixes #2143
2016-05-04 07:27:17 +02:00
René Moser
eab5892944 Merge pull request #1867 from Censio/rhunter-monit-startup
monit startup fix
2016-05-03 22:51:26 +02:00
Toshio Kuratomi
675d778b50 Fix documentation 2016-05-03 10:10:28 -07:00
Michael Scherer
7fd4180857 Fix arguments and docs (#2147)
- oauthkey shouldn't be logged
- action should be restricted and checked and the
doc should correspond to the code
2016-05-02 13:21:02 -04:00
Kevin Hildebrand
9f2bc2853d Fix the interface handling code to allow permanent and non-permanent operations.
Also avoid using add_interface because it breaks in cases where the interface is already bound to a different zone.
2016-05-02 11:16:07 -04:00
krzwalko
12f1c85aa3 Fix datacenter_name and cluster_name module params (#2142) 2016-05-02 08:50:11 -04:00
Rudi Meyer
28ae506c12 Jira will return a HTTP status code 201 on some actions, fx. 'comment'. (#2115) 2016-05-02 08:48:03 -04:00
Jordan Cohen
c0013af14c doc update to demostrate message template vars 2016-05-02 07:30:15 -04:00
Toshio Kuratomi
1846de2809 Switch blockinfile to using the latest best way to get ansible version 2016-04-29 20:33:35 -07:00
René Moser
3a7e4b5834 readme: add build state image from travis 2016-04-29 10:50:36 +02:00
René Moser
2a7063133f Merge pull request #2130 from resmo/fix/azure_rm_deployment
azure_rm_deployment: fix docs and move import utils near main()
2016-04-29 10:45:32 +02:00
Rene Moser
94e6c32608 azure_rm_deployment: fix docs and move import utils near main()
fixes build
2016-04-29 10:10:27 +02:00
René Moser
6049d03d3a Merge pull request #2089 from mscherer/fix_datadog
2 small fixes for datadog
2016-04-29 10:03:12 +02:00
Michael Scherer
f7c421088a Use type=path for arguments, and remove code doing the conversion (#1903) 2016-04-29 09:57:52 +02:00
Michael Scherer
e07a52b499 Mark api_key as no_log to avoid potential leaks (#2048) 2016-04-29 09:56:28 +02:00
Brian Coca
fbd00675f0 updated version added for pvs 2016-04-28 17:42:41 -04:00
James Cammarata
38874103c8 Merge pull request #2109 from Osterjour/patch-1
Change success status code to 202
2016-04-28 15:01:30 -04:00
Matt Davis
238af47a9d Merge pull request #2007 from p53/devel
Added pvs parameter to lvol module
2016-04-28 10:15:54 -07:00
Toshio Kuratomi
71d83b77bc Recategorize git_config and shift version to 2.1 2016-04-28 08:27:21 -07:00
Chris Houseknecht
ca310f3d15 Merge pull request #2106 from chouseknecht/azure_rm_deployment
Rename azure_deploy to azure_rm_deployment. Refactor to use azure_com…
2016-04-28 05:47:31 -04:00
Brian Coca
09a1015bd7 updated version added 2016-04-27 14:36:56 -04:00
Matthew
d91baee7c9 Add git_config module (#1945)
* Add git_config module

This module can be used for reading and writing git configuration at all
three scopes (local, global and system). It supports --diff and --check
out of the box.

This module is based off of the following gist:
https://gist.github.com/mgedmin/b38c74e2d25cb4f47908
I tidied it up and added support for the following:
- Reading values on top of writing them
- Reading and writing values at any scope
The original author is credited in the documentation for the module.

* Respond to review feedback

- Improve documentation by adding choices for parameters, requirements
  for module, and add missing description for scope parameter.
- Fail gracefully when git is not installed (followed example of puppet
  module).
- Remove trailing whitespace.

* Change repo parameter to type 'path'

This ensures that all paths are automatically expanded appropriately.

* Set locale to C before running commands to ensure consistent error messages

This is important to ensure error message parsing occurs correctly.

* Adjust comment
2016-04-27 14:36:11 -04:00
Jordan Cohen
df055265d4 message template variable fix
Due to ansible/jinja2 templating, it is difficult to use the monitor message template variables as they need to be surrounded by `{{` and `}}`, this change addresses that issue by allowing the user to use `[[` and `]]` instead.
2016-04-27 12:32:27 -04:00
chouseknecht
a1cc951d6f Updated per PR comments 2016-04-27 10:48:20 -04:00
Michael Scherer
95018b5fe8 Add partial doc on return value of virt (#2116) 2016-04-27 10:47:44 -04:00
Matt Davis
0b66156f25 Merge pull request #2112 from jhawkesworth/fix_ame_2090
Fix for https://github.com/ansible/ansible-modules-extras/issues/2090
2016-04-26 11:43:58 -07:00
=
d198d025de Fix for https://github.com/ansible/ansible-modules-extras/issues/2090 2016-04-26 18:26:50 +01:00
Matt Davis
d9caac037c Merge pull request #1119 from h0nIg/devel_acl_inheritance
win_acl_inheritance
2016-04-26 09:45:42 -07:00
Brian Coca
470460acfc promoted to core, including fixes 2016-04-26 10:01:12 -04:00
James Cammarata
59821bbc30 Removing docker_login as it's now in core 2016-04-26 10:00:16 -04:00
René Moser
344dff4350 docs: fix make docs (#2107) 2016-04-26 09:10:46 -04:00
Markus Ostertag
d5ab3dc0f3 Change success status code to 202
As I already mentioned here: a1b1182662 (diff-d04a476e5d71372918cb6e7e5b39a683R120) @jimi-c added some "hidden" additional check in his urllib commit and broke the whole module for everybody as Datadog answers with an 202 in case of success (http://docs.datadoghq.com/api/#troubleshooting).
2016-04-26 14:39:00 +02:00
chouseknecht
99f5e394ad
Rename azure_deploy to azure_rm_deployment. Refactor to use azure_common. 2016-04-26 01:32:09 -04:00
Tim Rupp
86f08bfcda Adds the __main__ conditional check (#2098)
As is done in other ansible modules, this adds the __main__ check
to the module so that the module code itself can be used as a library.
For instance, when testing the code.
2016-04-25 15:34:18 -04:00
Indrajit Raychaudhuri
142742964e Fix homebrew_cask examples 2016-04-25 08:56:04 -05:00
Joshua Gilman
e4a4259bc2 Change disk type to str to allow correct usage of rootfs for LXC (#2091) 2016-04-25 13:18:24 +02:00
Rene Moser
3feb69f614 consul: add docs, fix typos, minor style fix 2016-04-25 10:09:15 +02:00
Sun JianKang
08f5a3b6d0 add service address when register service (#1299) 2016-04-25 09:58:07 +02:00
Ner'zhul
d3a34c0b2c Add mongodb parameter module (#1596)
* Add mongodb parameter module

This module permit to configure mongodb live parameters to tune the running engine
2016-04-25 08:39:42 +02:00
Adrià Galín Figueras
014297b868 Fixed netif params when create lxc container (#2064) 2016-04-25 08:09:51 +02:00
Toshio Kuratomi
d871df6c27 Switch from deprecated ANSIBLE_VERSION to ansible.__version__ 2016-04-24 21:15:15 -07:00
Rene Moser
de22b721db vmware_vm_shell: doc: add missing defaults 2016-04-23 08:27:21 +02:00
Ritesh Khadgaray
e24c3b93fe vmware_vm_shell: speed up vm_name search (#1909) 2016-04-23 08:19:17 +02:00
Chris Lamb
8d7d070201 system/ufw.py: Add security warning re. removing ufw application prof…
It's not particularly obvious that removing an application will remove it
from ufw's own state, potentially leaving ports open on your box if you
upload your configuration.

Whilst this applies to a lot of things in Ansible, firewall rules might
cross some sort of line that justifies such a warning in his instance.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2016-04-23 08:01:19 +02:00
=
7d9b73ec5a fix problem where you couldn't compare empty strings in win_regedit following my previous change 2016-04-22 18:37:31 +01:00
Michael Scherer
1b18c74918 Remove unused import of 'socket' module 2016-04-22 17:33:05 +02:00