Commit Graph

127 Commits (6d69956f83172f5e6b15103e7203ea0d0cce87b4)

Author SHA1 Message Date
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
Toshio Kuratomi 4ada937207 Make our regex match the homebrew tap upstream regex.
Fixes #312
Fixes #297
2016-12-08 11:32:28 -05:00
Larry Gilbert cdc90f723f pkgin: support check mode, make other improvements
* Add support for check mode
* Use "pkgin search" to guarantee 0 or 1 result
* Edit documentation for style, new feature, etc.
* General refactoring
* Lay some groundwork for future support of "state=latest"
2016-12-08 11:32:28 -05:00
Konstantin 4602ca7bf4 pkgutil.py syntax fix 2016-12-08 11:32:27 -05:00
Dagobert Michelsen 1ff1537329 Adjust setting to better make logic clearer 2016-12-08 11:32:26 -05:00
Dagobert Michelsen 474df33ff3 Correctly report "changed: false" when trying to install a package not in the catalog. This fixes #230 2016-12-08 11:32:26 -05:00
Peter Oliver c90eba7dcf Add another example. 2016-12-08 11:32:26 -05:00
Peter Oliver 21a3fd5b20 Fix idempotency when removing packages.
If the package is already not present, then we have nothing to do.
2016-12-08 11:32:25 -05:00
Peter Oliver defdc7c44b Tweak documentation. 2016-12-08 11:32:25 -05:00
Peter Oliver 5c1c2c5c1a Try to fix up commas in version numbers. 2016-12-08 11:32:25 -05:00
Peter Oliver a300ec9d3b Add missing boilerplate. 2016-12-08 11:32:25 -05:00
Peter Oliver 1faee38eac Add Solaris 11 package management
- Module pkg5 handles installing and uninstalling packages.
- Module pkg5_publisher manages repository configuration.
2016-12-08 11:32:25 -05:00
Matthew Pherigo 11a68b4cad Make $BATCH=yes the default, remove module option 2016-12-08 11:32:25 -05:00
Matthew Pherigo 5664da4c63 pkgng: add 'batch' parameter
Some packages attempt to prompt the user for certain settings during
installation. Thus, this parameter sets the environment variable
$BATCH to 'yes', which forces package installation scripts to accept
default values for these interactive prompts. This should work for all
prompts that have a default value and aren't implemented through a
custom script (as this variable is built into the ports/package system).

FIXME: Package install should fail if it prompts and batch isn't set;
currently, the install hangs indefinitely.
TODO: Allow user to specify the answers to certain prompts.

I (github.com/mwpher) have NOT tested this with any packages besides
bsdstats. It's a small improvement, but not a complete answer to all
the complexities of package installation.
2016-12-08 11:32:24 -05:00
Andrew Udvare a59770e02d Add support for emerge's --getbinpkg and --usepkgoonly 2016-12-08 11:32:24 -05:00
Daniel Newport 438a5a730e use state=latest to ensure the latest version is installed. mimics functionality of the apt and yum modules. 2016-12-08 11:32:24 -05:00
Daniel Newport 3e7ab59eb4 fix pacman upgrade bug 2016-12-08 11:32:24 -05:00
Toshio Kuratomi 8c63ebcf5e Move dnf and bower plugins to proper subdirs 2016-12-08 11:32:24 -05:00
Toshio Kuratomi 3876df5911 Make documentation of urpmi module force parameter clearer 2016-12-08 11:32:24 -05:00
Toshio Kuratomi 7941681591 Fix documentation in zypper_repository 2016-12-08 11:32:23 -05:00
Justin Lecher 1f0b0ad3cd Keep default behaviour for refresh
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2016-12-08 11:32:23 -05:00
Justin Lecher 90f5e1925e Allow disabling of autorefresh for zypper repositories
In case of release repositories or other special cases you might not
need the autorefreshing of the repos. This patch adds a configure
option instead of hard enabling this.

Signed-off-by: Justin Lecher <jlec@gentoo.org>
2016-12-08 11:32:23 -05:00
nmeum 883cd22821 Make sure portage doesn't ask for confirmation
If EMERGE_DEFAULT_OPTS in make.conf(5) contains '--ask' then the portage
module doesn't work correctly, this commit fixes that
2016-12-08 11:32:23 -05:00
Alexander Gubin 117ae098ef zypper: Fix gpg check option for state=latest. --no-gpg-checks is used in new and old zypper versions 2016-12-08 11:32:22 -05:00
Artem Chernikov b4c6b81619 Fixing SuSE to SUSE as latter is the right one since some time 2016-12-08 11:32:20 -05:00
Michael DeHaan 7d6ceb4f06 Reorganization. 2016-12-08 11:32:19 -05:00