Commit Graph

99 Commits (8dc99baabf4c6693a51daff079d1509e808298ec)

Author SHA1 Message Date
Mathew Davies 8dc99baabf Add Elasticsearch plugin module 2016-12-08 11:33:00 -05:00
Toshio Kuratomi 16cb0e979d Tabs to spaces
Fixes #666
2016-12-08 11:33:00 -05:00
Toshio Kuratomi a43a93315f Add author github ID 2016-12-08 11:32:56 -05:00
Matt Martz 17b1edfa1c Give dpkg_selections a .py file extension 2016-12-08 11:32:56 -05:00
Toshio Kuratomi a206f3d89f Fix bundler documentation 2016-12-08 11:32:56 -05:00
Tim Hoiberg 9b03eccbc1 Fixing typo 2016-12-08 11:32:55 -05:00
Tim Hoiberg 0ee7db13d9 Adding module to manage Ruby Gem dependencies via Bundler 2016-12-08 11:32:55 -05:00
Patrik Lundin e5b975a472 openbsd_pkg: Update author mail address. 2016-12-08 11:32:55 -05:00
Andrew Udvare acd4822d52 Fix comparison 2016-12-08 11:32:53 -05:00
Andrew Udvare c21ced350d --usepkgonly does not imply --getbinpkg
Add usepkg option to allow conditional building from source if binary
packages are not found

5a6de937cb (commitcomment-11755140)
https://wiki.gentoo.org/wiki/Binary_package_guide#Using_binary_packages
2016-12-08 11:32:53 -05:00
Dustin C. Hatch 90df50b045 packaging/os/portage: Handle noreplace in check mode
The `--noreplace` argument to `emerge` is generally coupled with
`--newuse` or `--changed-use`, and can be used instruct Portage to
rebuild a package only if necessary. Simply checking to see if the
package is already installed using `equery` is not sufficient to
determine if any changes would be made, so that step is skipped when
the `noreplace` module argument is specified. The module then falls back
to parsing the output from `emerge` to determine if anything changed. In
check mode, `emerge` is called with `--pretend`, so it produces
different output, and the parsing fails to correctly infer that a change
would be made.

This commit adds another regular expression to check when running in
check mode that matches the pretend output from `emerge`.

Signed-off-by: Dustin C. Hatch <dustin@hatch.name>
2016-12-08 11:32:53 -05:00
Dustin C. Hatch c514a9a940 packaging/os/portage: Improve check mode handling
When running in check mode, the *portage* module always reports that no
changes were made, even if the requested packages do not exist on the
system. This is because it was erroneously expecting `emerge --pretend`
to produce the same output as `emerge` by itself would, and attempts to
parse it. This is not correct, for several reasons. Most specifically,
the string for which it is searching does not exist in the pretend
output. Additionally, `emerge --pretend` always prints the requested
packages, whether they are already installed or not; in the former case,
it shows them as reinstalls.

This commit adjusts the behavior to rely on `equery` alone when running
in check mode. If `equery` reports at least one package is not
installed, then nothing else is done: the system will definitely be
changed.

Signed-off-by: Dustin C. Hatch <dustin@hatch.name>
2016-12-08 11:32:53 -05:00
Brian Brazil 6b51454234 Add dpkg_selections module, that works with dpkg --get-selections and --set-selections.
This is mainly useful for setting packages to 'hold' to prevent them
from being automatically upgraded.
2016-12-08 11:32:51 -05:00
Greg DeKoenigsberg c65a612d1f Changes to author formatting, remove emails 2016-12-08 11:32:51 -05:00
NewGyu 80c75bd66f fix cannot download SNAPSHOT version 2016-12-08 11:32:49 -05:00
jonathan.lestrelin 5c4415b821 Fix unused import and variable and correct documentation 2016-12-08 11:32:49 -05:00
jonathan.lestrelin 0452ddd85d Add pear packaging module to manage PHP PEAR an PECL packages 2016-12-08 11:32:49 -05:00
Roman Vyakhirev 16e51e57f8 bower module. Non-interactive mode and allow-root moved to _exec, they should affect all commands 2016-12-08 11:32:48 -05:00
Roman Vyakhirev 414afb61df composer module. ignore_platform_reqs option added. 2016-12-08 11:32:47 -05:00
Dagobert Michelsen d744777425 svr4pkg: assume command worked only on known-to-be-good returncodes 2016-12-08 11:32:43 -05:00
Enric Lluelles 1780512ef5 Add slash to valid characters for packages
To allow it to download packes from taps, or external commands like
caskroom/cask/brew-cask
2016-12-08 11:32:43 -05:00
@RubenKelevra b562dba1bf change -Syy to -Sy
-Syy do always update, which is not needed, since the caches might already be up to date.
2016-12-08 11:32:42 -05:00
Toshio Kuratomi 29692366aa Bandaid dnf module to temporarily fix some major problems
- Backport config file handling from the DNF module rewrite #527
  (Current config handling does not work with dnf and leads to
  tracebacks when run as an unprivileged user).
- Make a mandatory requirement on yum-utils (for /usr/bin/repoquery)
  because none of the fallback code works for dnf (it's unported yum API
  code).

Both of these issues will be fixed better in the dnf rewrite when it is
feature complete.

Fixes #471
2016-12-08 11:32:42 -05:00
QuantumGhost b67e4a19ab Use expanduser to deal with path in bower module
So bower module can correctly handle path containing `~`
2016-12-08 11:32:42 -05:00
Toshio Kuratomi efc63d9c40 Update module_utils "import" to the new-style
Fixes #505
2016-12-08 11:32:41 -05:00
Toshio Kuratomi 4f07e8b256 Many more doc fixes 2016-12-08 11:32:40 -05:00
Toshio Kuratomi ec68f78556 Fix quoting for documentation build 2016-12-08 11:32:39 -05:00
Brian Coca d344a3fde3 more string corrections 2016-12-08 11:32:39 -05:00
Brian Coca 2753cd186a moar quotes 2016-12-08 11:32:39 -05:00
Greg DeKoenigsberg ed2e3869ad Typo in author 2016-12-08 11:32:39 -05:00
Toshio Kuratomi a8c12ec097 Add python >= 2.6 to documented deps 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
Jeff Rizzo 81a646ddaf Support both new and old pkgin versions by testing if '-p' flag exists. 2016-12-08 11:32:36 -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
Roland Ramthun c3ce2eb169 disable ask on sync action 2016-12-08 11:32:35 -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
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
Jeferson Daniel 2f554518a6 Fixes #335 2016-12-08 11:32:33 -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
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
Brian Coca c04e95865a remove x bit 2016-12-08 11:32:30 -05:00
Brian Coca bed45f3ce9 moved to 2016-12-08 11:32:30 -05:00
chris.schmidt b2247e378b Added check for "latest" in version field 2016-12-08 11:32:30 -05:00
chris.schmidt e7c39a30ca Removed version check from main as it is checked in the download function. Having the check here was breaking "latest version" functionality. 2016-12-08 11:32:30 -05:00
Chris Schmidt 4c71598049 Fixed bug where passing a directory as dest failed 2016-12-08 11:32:30 -05:00
Chris Schmidt 7b46f1215d Changed "target" to "dest" 2016-12-08 11:32:29 -05:00
Chris Schmidt 469e874697 Renamd Module File 2016-12-08 11:32:29 -05:00