Commit graph

72 commits

Author SHA1 Message Date
Michael DeHaan
cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 2013-04-28 15:03:45 -04:00
Tin Tvrtkovic
2ed3611b8b disable_gpg_check in the yum module. 2013-04-23 18:12:37 +02:00
milan
8347bf03ed allow URL spec for install 2013-04-08 11:54:27 +02:00
Michael DeHaan
168e11106f Teach the yum module to support --check mode. 2013-02-17 18:18:43 -05:00
Seth Vidal
51a1e0ebb7 use a local copy of repoq so we don't inadvertently pollute the one for is_installed 2013-02-01 16:47:53 -05:00
Seth Vidal
7d3f6fdb3c don't apply enablerepo's to is_installed() to work around yum-utils/repoquery drift from all things
good and proper
2013-02-01 12:39:02 -05:00
Seth Vidal
818f8c7de6 test the repos in enablerepo/disablerepo and error out if they are broken 2013-01-31 17:23:10 -05:00
Daniel Hokka Zakrisson
fd82c1c6f3 module must be passed to repolist too 2013-01-22 16:27:08 +01:00
Pepe Barbe
3ae3fa685b module needs to be passed to local_nvra 2013-01-22 09:03:45 -06:00
Stephen Fromm
e4964f42e0 Update modules to use run_command in module_common.py
This updates apt, apt_repository, command, cron, easy_install, facter,
fireball, git, group, mount, ohai, pip, service, setup, subversion,
supervisorctl, svr4pkg, user, and yum to take advantage of run_command
in module_common.py.
2013-01-13 08:37:19 -08:00
Seth Vidal
498f44f372 if user has manually installed an intermediate version - don't ignore it: issue 1754 2012-12-12 11:52:35 -05:00
Jan-Piet Mens
e5e31700a5 DOCUMENTATION: yum (moved version to added) 2012-11-22 15:16:20 +01:00
Jan-Piet Mens
d184f72aa9 DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
Michael DeHaan
6f6559670f chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
Dag Wieers
a5915b3803 Make module output more consistent wrt. changed/failed
- Make sure exit_json() always returns a changed= value
- Modify the yum module to not return failed=False
- Modify install() and latest() similar to remove() in yum module
- Changed exit_json(failed=True, **res) into a fail_json(**res)
- Make sure yum rc= value reflects loop (similar to how we fixed remove())
2012-11-08 12:28:18 +01:00
Seth Vidal
0c65102c42 fix up remove and fix fixme checking to see if pkg was removed 2012-10-29 23:48:21 -04:00
Seth Vidal
9dd9db6296 fix removal case where first pkg in a list is not installed at all
and the next one gets ignored despite being installed.

also clean up unnecessary second check.
2012-10-29 13:48:20 -04:00
Seth Vidal
dc574863b7 add comments that enablerepo/disablerepo are new in 0.9 2012-10-24 09:08:42 -04:00
Seth Vidal
a876519f1f tested and verified yum enable/disablerepo option for yum module 2012-10-24 00:46:15 -04:00
Seth Vidal
368305a27d first cut at yum module with enable/disable repo 2012-10-24 00:24:40 -04:00
Jan-Piet Mens
d069c57974 Reformat code: examples consistently
- added terse syntax to modules.rst
 - added description of special variables to template module
2012-10-23 15:14:01 +02:00
Seth Vidal
73a0a41ec4 when a pkg is installed, but not from any repo, don't error out
that it is not installed.

Also when a pkg is both installed and in a repo do not look it up
more than once
2012-10-19 16:28:39 -04:00
Jan-Piet Mens
d6625a2b1f Module DOCUMENTATION for template, wait_for, and yum 2012-09-29 00:49:02 +02:00
Daniel Hokka Zakrisson
9b3ad14aee Invoke is_installed correctly from rpm path 2012-09-13 12:34:52 +02:00
Seth Vidal
d9319848b0 fix up local_nvra 2012-08-24 13:51:07 -04:00
Michael DeHaan
e3ffe74c33 meaningless whitespace changes 2012-08-14 19:33:11 -04:00
Michael DeHaan
ffcd959e15 Can use fail JSON here, remove debug statement 2012-08-14 19:29:09 -04:00
Michael DeHaan
c62f404bde Fix aliases, package not found is not an error 2012-08-14 19:27:02 -04:00
Seth Vidal
da26266ef3 fixes to yum module
include local_nvra
change the remove behavior to pretty much NEVEr error out if the pkg is not there (or anywhere)
2012-08-14 16:23:40 -04:00
Seth Vidal
5267b75c31 cover all of the edge cases with and without yum-utils installed.
it is possible those folks w/o yum-utils installed but with rhn-plugin
installed but w/o any rhn-certificates will still see an error msg.
they have 3 options:
1. remove rhn-plugin
2. enable some channels w/rhn certs
3. install yum-utils
2012-08-14 13:23:49 -04:00
Seth Vidal
ddb18cfd76 subprocess is already imported in module_common - no need for it here 2012-08-14 13:23:49 -04:00
Michael DeHaan
331ee3a0a4 rename variable 'pkg' in yum module such that the auto-handled error messages use the same key. 2012-08-11 18:16:10 -04:00
Michael DeHaan
3b81df1e67 Add module common code to allow it to be easier to indicate whether arguments are mutually exclusive, required in conjunction, or whether one of a list of arguments is required. This simplifies writing Python modules. 2012-08-11 18:13:29 -04:00
Michael DeHaan
3c2eba57fd Make pep8 tests run against the library directory as well, and associated tweaks (mostly to indentation) in the library
directory.
2012-08-11 12:35:58 -04:00
Michael DeHaan
0802d99d95 Fix a scoping issue that was fixing some non-repoquery-installed cases 2012-08-09 21:35:21 -04:00
Michael DeHaan
dfc17594de Merge branch 'yum-wo-repoquery' of https://github.com/dhozac/ansible into devel
Conflicts:
	library/yum
2012-08-09 21:29:59 -04:00
Seth Vidal
310c4b5eff make yum module work with list=pkgspec 2012-08-09 13:22:51 -04:00
Daniel Hokka Zakrisson
d233e1e000 Allow using the yum module without repoquery
It is still required to use list=..., but the typical install and remove
won't need it.
2012-08-09 17:22:09 +02:00
Michael DeHaan
df6290f266 Only run yum,apt through the with_items loop if there is a list of items. Just a cosmetic fix on return values
for the most part.
2012-08-08 20:43:01 -04:00
Seth Vidal
3a39915947 add show-duplicates to reqpoquery to keep people who
want to install an old package happy.
2012-08-08 14:02:38 -04:00
Seth Vidal
85a5b4bd9d missed the quotes 2012-08-08 10:43:45 -04:00
Seth Vidal
f00ff3e60b fix up yum state=latest with pkg groups 2012-08-08 10:35:43 -04:00
Michael DeHaan
5ed21bf443 whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added
in 0.6 release)
2012-08-06 20:07:02 -04:00
Michael DeHaan
baacde6c74 Add encoding lines to python modules such that they can take unicode options if they are fed them, since the
AnsibleModule stuff no longer base64 encodes for simplicity and speed reasons.
2012-08-02 21:29:10 -04:00
Seth Vidal
5963f6afe2 - add a check for repoquery so we can abort politely
- make the results output a bit more readable
- fix up where repoquery is looked for so it is easier to change
2012-08-02 17:02:37 -04:00
Michael DeHaan
508fcf9b03 changelog / remove a failed=False 2012-08-01 22:35:07 -04:00
Michael DeHaan
090525b768 failed should not be in the result returns for a module upon success 2012-08-01 22:30:22 -04:00
Seth Vidal
ecc1d0420a redo of yum module - uses more system calls but should handle
random plugin vomit better.
also should handle multiple withitems in a single execution, now.
2012-08-02 01:47:48 -04:00
Michael DeHaan
abc19c1e16 Join with_items for the apt module, yum pending, and various fixes to the yum module to support aliases 2012-08-01 20:33:13 -04:00
Michael DeHaan
fe9b0bf38d Teach the common module code to warn users about typo'd arguments and also set everything to None automatically such
that code doesn't have to do a lot of params.get('foo', None) everywhere.
2012-07-31 21:23:34 -04:00