Michael DeHaan
ce5f3dd148
Port the file module over to the new common code infrastructure + cleanup some redundant imports since the module code already imports those things.
2012-07-30 21:50:32 -04:00
Michael DeHaan
487c826700
Tweak alias consistency a bit. 'package' has never been documented, but since it works, make it work in both places.
...
'name' is the preferred form. Similarly, take 'name' for the 'guest' argument to the 'virt' module.
2012-07-28 09:22:13 -04:00
Michael DeHaan
2030f82bf2
Further standardize the yum module
2012-07-25 20:14:15 -04:00
Nikhil Singh
b47bed9601
Standardizing the yum module
2012-07-25 19:45:41 +05:30
Stephen Fromm
aea022b002
Apply logging of arguments to modules (issue #122 )
...
The ohai and facter modules use /usr/bin/logger to log the fact that
they have been invoked. I added 'import os' to the ping module
so that it could have the same syslog statements as the other modules.
I separated the condensed:
shlex.split(open(argfile, 'r').read())
into two separate statements similar to the other modules.
2012-05-09 15:19:20 -07:00
Seth Vidal
a3ab793ba8
fixes for yum module for rhel5 and issue 269
2012-04-27 17:38:46 -04:00
Martijn Koster
f936616f91
comment typos
2012-04-13 11:19:36 +01:00
Michael DeHaan
ff5d329374
Yum package state defaults to installed
2012-04-11 20:47:38 -04:00
Michael DeHaan
b418632a8d
Allow yum module to use package or name as an alias for 'pkg'
2012-04-11 20:44:15 -04:00
Michael DeHaan
f92760de6c
If missing state or name or list parameter on yum module, raise error explaining what is up.
2012-04-02 20:12:35 -04:00
Seth Vidal
08163c6251
catch all exceptions and emit sensible errors - if we have a config file error this lets us know about it
2012-04-02 12:33:46 -04:00
Michael DeHaan
5764ccdb0e
Eliminate possible race condition in async_wrapper where ansible deletes the argsfile while the module
...
is still kicking off. Should not happen except in modules that are somewhat slow to load and probably
can be fixed better than the included sleep, i.e. some IPC communication that the process has
launched and is ok to exit. This works pretty well for now though.
2012-04-01 02:35:19 -04:00
Seth Vidal
37f599efc3
make sure latest outputs an error if the thing you've listed as 'latest'
...
is not there at all or even updateable
2012-03-26 23:02:09 -04:00
Seth Vidal
1d04ec89b7
fix up latest so it behaves like latest should
...
if installed and updated available: apply update
if not installed and available: install
2012-03-26 23:02:09 -04:00
Seth Vidal
a27be2651c
make yum module work with older yum for rhel5 :(
2012-03-26 23:02:09 -04:00
Michael DeHaan
a5f4ca50b8
Ratchet up logging a few notches prior to controlling w/ verbosity settings
2012-03-20 22:29:21 -04:00
Seth Vidal
a9a9e3af65
modify yum to be used with argsfile and fix a number of items with
...
how it handles "advanced" pkgspecs for the state= cases
2012-03-14 18:46:53 -04:00
Seth Vidal
0b94c78042
yum module
...
add state=latest and clean up the output cases
added some fixmes on verification
2012-03-12 16:31:13 -04:00
Seth Vidal
a99b491b32
touch up to yum module.
...
fix a couple of bugs
comment about state='latest'
2012-03-10 02:19:57 -05:00
Michael DeHaan
209760f8f6
Add manpage for ansible-playbook, since it is a command. More detailed docs will remain on the web site.
2012-03-09 22:06:44 -05:00
Michael DeHaan
1699013fbd
Rename 'ensure' to 'state' so it lines up with the service module
2012-03-09 18:50:34 -05:00
Seth Vidal
b576e389b1
runner buglet and yum module
...
runner: fix buglet causing logger output to include a u for the command
yum: add yum module:
ensure=installed pkg=name/name.arch/name-ver-rel.arch
ensure=removed pkg=name/name.arch/name-ver-rel.arch
list=installed
list=updates
list=available
list=pkgspec
list=repos
2012-03-09 18:33:58 -05:00