summaryrefslogtreecommitdiff
path: root/packaging/os
Commit message (Collapse)AuthorAgeFilesLines
* Add metadata for xbpsToshio Kuratomi2016-12-061-3/+6
| | | | Pass pyflakes
* Refreshed metadata for extras modulesToshio Kuratomi2016-12-0624-0/+96
|
* Style fix for xbps moduleRyan S. Brown2016-12-061-1/+1
|
* Add XBPS module (#1749)Dino Occhialini2016-12-061-0/+300
| | | | | | | | | | Adds xbps module for managing Void Linux packages. Currently supports: * Installation * Removal * Updating Specific Packages * Updating All Packages * Updating package cache
* yum_repository: use https:// for EPEL examples (#3464)Colin Walters2016-12-051-2/+2
| | | | | This whole module is really lacking in security guidelines, but downloading RPMs via plain `http://` without gpg is quite bad. Let's use `https://` for the EPEL examples for a start.
* Make `main()` calls conditional - packaging (#3650)Fabio Alessandro Locati2016-12-0513-14/+31
|
* Use native YAML - Packaging (#3588)Fabio Alessandro Locati2016-12-0124-129/+433
| | | | | | | | | | | | | | | | | | * 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
* Fix name/package parameter convert when passed list of values using ↵dimid2016-12-011-2/+2
| | | | with_items. (#3556)
* Remove iteritems from portage module for python3Toshio Kuratomi2016-11-291-2/+2
|
* Portage module improvements (#3520)William L. Thomson Jr2016-11-281-1/+42
| | | | | | | | | | * 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
* Making yum_repository module compatible with Python 3 (#3487)Jiri Tyr2016-11-181-3/+3
|
* Make Homebrew-related modules run on Python 3Andy Dirnberger2016-11-172-2/+6
| | | | | | | | 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.
* yum_repository: Add diff support (#3460)Jiri Tyr2016-11-171-10/+12
|
* Fix for dnf groupinstallToshio Kuratomi2016-11-041-6/+16
| | | | | | | Previous fix to group install introduced a different bug trying to strip() group names at the wrong level. This patch fixes that. Fixes #3358
* Fix installation of environment groupsToshio Kuratomi2016-11-021-12/+63
| | | | | | | | | | | | | 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.
* dnf: fix compatibility with DNF 2.0 (#3325)Igor Gnatenko2016-10-311-6/+26
| | | | | | | | | | | | | * 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
* * Fix for spaces in the package spec.Toshio Kuratomi2016-10-271-5/+5
| | | | * Fix for python-2.6 compat
* install dnf python bindings if possibleToshio Kuratomi2016-10-271-15/+40
| | | | Fixes #14427
* Fix pkgng on python 3Michael Scherer2016-10-231-1/+1
| | | | | | | | | | | | | | | 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
* zypper: fix for checking result is None (#3143)Alex2016-10-171-9/+10
|
* openbsd_pkg: Use correct part of name in match. (#3151)Patrik Lundin2016-10-151-3/+10
| | | | | | | | | | | | | | | | | * 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.
* zypper_repository: Prepend --gpg-auto-import-keys before refresh command (#3088)Pieter Hollants2016-10-051-2/+3
| | | Fixes #3086.
* Add documention for enabled option in zypper_repository (#3083)Robin Roth2016-10-051-1/+7
|
* List python-xml in requirements for zypper* (#2937)Robin Roth2016-09-212-0/+2
|
* Start zypper in non-interactive mode (#2854)release-2.1Alex2016-09-101-5/+13
|
* Zypper repo autoimport keys (#2132)Robin Roth2016-09-041-34/+83
| | | | | | | | | | | | | | | | | | | * 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
* Ensure the return value for changed is bool (#2830)Robin Roth2016-09-021-1/+1
| | | fixes #2827
* apk: Fix mutual exclusivity (#2768)Kevin Brebanov2016-08-241-0/+3
| | | | | | | | | | | * 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
* Update homebrew_cask with additional cask features and doc updates (#2682)Indrajit Raychaudhuri2016-08-101-21/+60
| | | | | | | | | | 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.
* Update homebrew_tap to support custom tap URL via optional 'url' option (#2672)Indrajit Raychaudhuri2016-08-101-10/+40
| | | | | | | | 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.
* allow to specify versions with zypper (#2328)Robin Roth2016-08-101-16/+81
| | | | | | | | | * 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
* Add path type in homebrew 'path' option (#2692)Indrajit Raychaudhuri2016-08-101-0/+1
|
* Do not return failure when the package is installed and nothing is done (#1852)Dagobert Michelsen2016-08-091-1/+2
|
* apk: fix LANG != C while parsing stdout (#2689)René Moser2016-08-071-0/+3
|
* apk: Add support for updating virtual packages (#2686)Kevin Brebanov2016-08-071-15/+43
| | | Fixes: #2389
* List homebrew options aliases in documentation (#2671)Indrajit Raychaudhuri2016-08-051-0/+4
|
* List pacman options aliases in documentation (#2670)Indrajit Raychaudhuri2016-08-051-0/+2
|
* Add a 'requirements:' field to homebrew doc (#2630)Adrian Likins2016-07-282-0/+4
| | | | homebrew.py and homebrew_cask.py make use of python 2.5 and 2.6 features like string .format() method.
* zypper cleanup checks for failure/diff (#2569)Robin Roth2016-07-161-47/+21
| | | | | | | | | | * 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
* Add zypper refresh support in zypper module (#2411)Andrii Radyk2016-07-131-6/+41
| | | | | | | | | | | | | * 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
* Check for zypper version before using options (#2549)Robin Roth2016-07-121-11/+36
| | | | | | * priority needs zypper version >= 1.12.25 * gpgcheck needs zypper version >= 1.6.2 * output warnings if version not sufficient for option * fixes #2548
* Handle empty IPS publishers (#2047)Peter Oliver2016-07-111-2/+3
| | | | It turns out it's possible to set up a publisher with no URIs. Handle this gracefully.
* allow overwrite_multiple with more than 2 repos (#2481)Robin Roth2016-07-091-7/+9
| | | | | | 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.
* Improve debug log some more.Patrik Lundin2016-07-011-1/+1
|
* Make fail messages all use lowercase messages.Patrik Lundin2016-06-301-7/+7
|
* Improve debug logging some more.Patrik Lundin2016-06-301-1/+1
|
* No support for build=true with 'branch' syntax.Patrik Lundin2016-06-301-0/+5
|
* Improve debug logging for build code.Patrik Lundin2016-06-301-4/+4
|
* Add a break and extra debug log for clarity.Patrik Lundin2016-06-301-0/+2
|
* openbsd_pkg: no need to call .rstrip.Patrik Lundin2016-06-301-1/+1
|