Commit Graph

288 Commits (2858d24acb1f593dd3849ade68fc29c48fec8cee)

Author SHA1 Message Date
James Higgins f7ac1f7f90 Just use netloc to identify bucket name for s3 locations (#2713) 2016-12-08 11:34:44 -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
Indrajit Raychaudhuri 384255cada Update homebrew_cask with additional cask features and doc updates (#2682)
Changes:
- Document missing 'path' option and remove redundant brew_path manipulation
- Add 'update_homebrew' option since 'brew cask update' as a synonym for
  'brew update' is available nowadays
- Add additional missing aliases documentation
- Port additional improvements (expanded support for brews path, cask path
  patterns etc.)
- Allow proper `list` type support for 'name' option.
2016-12-08 11:34:40 -05:00
Indrajit Raychaudhuri 8702ead0a7 Update homebrew_tap to support custom tap URL via optional 'url' option (#2672)
This allows doing 'brew tap <url>' where the URL is not assumed to be on GitHub,
and the protocol doesn't have to be HTTP. Any location and protocol that git can
handle is fine.

While at it, allow proper `list` type support for 'name' option and update
module documentation for option aliases.
2016-12-08 11:34:40 -05:00
Robin Roth 85b1bd5c90 allow to specify versions with zypper (#2328)
* fixes #2158
* handles version-specifiers (>,<,>=,<=,=) correctly
* adds option "oldpackage", which is passed to zypper
  * this is implied as soon as a version is specified
  * it can be used independently to allow downgrades coming from repos
* add __main__ check
* extend documentation on version specifier
2016-12-08 11:34:40 -05:00
Indrajit Raychaudhuri 69a3e66460 Add path type in homebrew 'path' option (#2692) 2016-12-08 11:34:40 -05:00
Dagobert Michelsen 87be961c1d Do not return failure when the package is installed and nothing is done (#1852) 2016-12-08 11:34:39 -05:00
René Moser a4427d55c3 apk: fix LANG != C while parsing stdout (#2689) 2016-12-08 11:34:38 -05:00
Kevin Brebanov cf87e1d9b2 apk: Add support for updating virtual packages (#2686)
Fixes: #2389
2016-12-08 11:34:38 -05:00
Indrajit Raychaudhuri 93fd941c66 List homebrew options aliases in documentation (#2671) 2016-12-08 11:34:38 -05:00
Indrajit Raychaudhuri f901e215ad List pacman options aliases in documentation (#2670) 2016-12-08 11:34:38 -05:00
Thierno IB. BARRY 4fc6fc438a Add kibana_plugin module (#2621)
* kibana_plugin: add the kibana_plugin module

* kibana_plugin: update doc

* kibana_plugin: add check mode and fix few coding style issues

* kibana_plugin: use return instead conditional statement for check mode
2016-12-08 11:34:37 -05:00
Adrian Likins fa1b0312eb Add a 'requirements:' field to homebrew doc (#2630)
homebrew.py and homebrew_cask.py make use of python
2.5 and 2.6 features like string .format() method.
2016-12-08 11:34:35 -05:00
Robin Roth 3307769ba0 zypper cleanup checks for failure/diff (#2569)
* zypper cleanup checks for failure/diff

* move check for changed/failed from functions back to main
* handle all cases identially
* generate diff together

* fix module name
2016-12-08 11:34:32 -05:00
Andrii Radyk 26d34c1d61 Add zypper refresh support in zypper module (#2411)
* added zypper refresh support

* removed trailing symbols
* added forced zypper refresh support similar to update_cache for apt module

* removed unnecessary blocks and cleaned up the logic for refresh

* added update_cache as alias for refresh to be similar to apt/yum module

* update zypper module according to comments
2016-12-08 11:34:31 -05:00
Robin Roth 54ceee9da2 Check for zypper version before using options (#2549)
* priority needs zypper version >= 1.12.25
* gpgcheck needs zypper version >= 1.6.2
* output warnings if version not sufficient for option
* fixes #2548
2016-12-08 11:34:31 -05:00
Peter Oliver 9b96585085 Handle empty IPS publishers (#2047)
It turns out it's possible to set up a publisher with no URIs.  Handle
this gracefully.
2016-12-08 11:34:31 -05:00
Robin Roth 6fdad49309 allow overwrite_multiple with more than 2 repos (#2481)
2.1 introduces overwrite_multiple, which can overwrite more than one
exisiting repo (with matching alias or URL). Allow more than 2 repos to
be overwritten, since openSuSE allow more than one repo with the same
URL if the alias is different.
2016-12-08 11:34:30 -05:00
Patrik Lundin dc4914bd19 Improve debug log some more. 2016-12-08 11:34:28 -05:00
Patrik Lundin 108205ffc6 Make fail messages all use lowercase messages. 2016-12-08 11:34:28 -05:00
Patrik Lundin 3ac32cf365 Improve debug logging some more. 2016-12-08 11:34:28 -05:00
Patrik Lundin 89c5cddda1 No support for build=true with 'branch' syntax. 2016-12-08 11:34:28 -05:00
Patrik Lundin 04409cc214 Improve debug logging for build code. 2016-12-08 11:34:28 -05:00
Patrik Lundin 09b0871f17 Add a break and extra debug log for clarity. 2016-12-08 11:34:28 -05:00
Patrik Lundin e8b1d27057 openbsd_pkg: no need to call .rstrip. 2016-12-08 11:34:28 -05:00
Patrik Lundin 24eab14695 openbsd_pkg: fix build=true corner case.
* Fix bug where we were actually checking for the availability of the
  requested package name and not 'sqlports' even if that was the goal.

* Add check that the sqlports database file exists before using it.

* Sprinkle some debug messages for an easier time following the code when
  developing.
2016-12-08 11:34:27 -05:00
Patrik Lundin f686994af6 openbsd_pkg: support "pkgname%branch" syntax.
* Such package names requires at least OpenBSD 6.0.

* Rework get_package_state() to use 'pkg_info -Iq inst:' instead of 'pkg_info -e'
  because it understands the branch syntax. It also means we can get rid of
  some additional special handling.

  This was suggested by Marc Espie:
  http://marc.info/?l=openbsd-tech&m=146659756711614&w=2

* Drop get_current_name() because the use of 'pkg_info -Iq inst:' in
  get_package_state() means we already have that information available without
  needing to do custom parsing. This was also necessary because a name such as
  "postfix%stable" does not in itself contain the version information necessary
  for the custom parsing. pkg_info -Iq translates such a name to the actual
  package name seamlessly.

* Add support for finding more than one package for the supplied package name
  which may happen if we only supply a stem.
2016-12-08 11:34:27 -05:00
Shinichi TAMURA 73b95ab853 Added fallback for parse_error(string) on elasticsearch_plugin module. (#2517) 2016-12-08 11:34:27 -05:00
_srsh_ a9e3b6aa05 module was failing on python 2.7 after last update (#2459) 2016-12-08 11:34:26 -05:00
René Moser 20a1d49e2b doc: maven_artifact: add a note about s3 support since version 2.2 (#2417)
See #2317
2016-12-08 11:34:22 -05:00
Gonçalo Luiz 711e94346b added s3 download support to maven module (#2317)
* added s3 download support

* removed extraneous import
2016-12-08 11:34:22 -05:00
Andrew Miller 7ac4909357 Cpanm module could not use less than Python 2.6
Removed str.format() dependency to allow cpanm module to work on nodes with versions of Python less than 2.6.
2016-12-08 11:34:21 -05:00
Chris Weber c3a1efee4f Fixed exception compatablity for py3 (and 2.4 in yum_repository.py) (#2369)
* Fixed exception compatablity for py3 (and 2.4 in yum_repository.py)

* Moved Import
2016-12-08 11:34:20 -05:00
Jiri Tyr 8d09b74908 Fixing wrong type of params option in yum_repository module (#2371)
This commit fixes incorrect type of the "params" option of the
"yum_repository" module. Without this fix the value of the "params"
option is read as a string instead of as a dictionary which makes
it impossible to define any additional YUM repository parameters.
2016-12-08 11:34:20 -05:00
Louis-Michel Couture 48a2f1e4d3 Update bundler example to match the param name (#2322) 2016-12-08 11:34:20 -05:00
Dmitry Marakasov a6ee449d6b Improve documentation for pkgng module (#2338)
According to module checklist:

- Descriptions should always start with a Capital letter and end with a
  full stop.
- Ensure that you make use of U() for urls, C() for files and options,
  I() for params, M() for modules.
2016-12-08 11:34:19 -05:00
Brian Coca beabafa99f minor fixes
removed unused imports
rearranged basic import
added if/main for testing/importability
2016-12-08 11:34:19 -05:00
Dmitry Marakasov 472bf733e0 Freebsd pkgng autoremove support (#2324)
* Whitespace cleanup

* Add autoremove capability to pkgng

* Add "default" and "choices" documentnation items for autoremove
2016-12-08 11:34:18 -05:00
Adrian Likins f096cd6322 Fix pkgutil "upgrade_catalog must be one of" err (#2149)
The arg spec for update_catalog include 'type=bool'
and 'choices=["yes", "no"] which can never both be
true.

Remove the 'choices' directive, and update doc string.

Fixes #2144
2016-12-08 11:34:17 -05:00
Dag Wieers 0e3713971a Convert module to work with python 2.4 and fix a bug (#2251)
- Avoiding the use of 'with ... as ...' and 'except ... as ...' constructs.

- Make use of posixpath.join() rather than concatenating slashes ourselves
  (To avoid having consecutive slashes which broke something on our side)
2016-12-08 11:34:16 -05:00
Alex e031f37407 zypper: (Bugfix) Change command option --verbose to --details which is supported since 2008 (#2224) 2016-12-08 11:34:15 -05:00
Rene Moser 9ba13c2d1c homebrew_cask: fix doc version_added for install_options
See #2086
2016-12-08 11:34:12 -05:00
Robin Roth 107c257293 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-12-08 11:34:12 -05:00
Indrajit Raychaudhuri dd59cadfd6 Fix homebrew_cask examples 2016-12-08 11:34:12 -05:00
Indrajit Raychaudhuri b718e10a88 Add `version_added` doc property for `install_options` in homebrew_cask 2016-12-08 11:34:12 -05:00
Indrajit Raychaudhuri 028aa0828c Add additional examples for parameter `install_options` in homebrew_cask 2016-12-08 11:34:11 -05:00
Enric Lluelles be64687bf5 Adding install_options to homebrew_cask 2016-12-08 11:34:11 -05:00
Gonçalo Luiz 8a1aee53bc fixed not resolving latest to snapshot for MD5 check when the file ex… 2016-12-08 11:34:11 -05:00
Michael Scherer 557d27513c Use type=path for arguments, and remove code doing the conversion (#1903) 2016-12-08 11:34:10 -05:00
Emil Bostijancic 3d24895606 Fixes maven_artifact - verify_md5 only called for SNAPSHOT
* fixed https://github.com/ansible/ansible-modules-extras/issues/2066

* fixes https://github.com/ansible/ansible-modules-extras/issues/2066
2016-12-08 11:34:08 -05:00