Stephen Fromm
67ee30f135
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.
13 years ago
Seth Vidal
deae763793
very minor indentation issue in librar/copy
13 years ago
Michael DeHaan
d35de23c53
Don't try to expand path for None values
13 years ago
Michael DeHaan
ba882d98e1
Call os.path.expanduser in modules so things work as expected even when using ./hacking/test-module script
13 years ago
Jeroen Hoekx
645640b88d
Make copy module idempotent.
...
Check md5sum before overwriting a file. Unconditionally copying changes the timestamp.
13 years ago
Michael DeHaan
475c38c941
Modules don't have to return JSON, key=value pairs is ok.
13 years ago
Michael DeHaan
81a27b9c88
Fix the copy module to use the argsfile method
13 years ago
Michael DeHaan
c4004ef6d4
Laying the groundwork for async mode, async status script still needs to be done, and async_wrapper
...
still needs to daemonize. Then, once done, playbook can be taught how to poll async within the
timing window.
13 years ago
Michael DeHaan
1bd1552b43
Relicensing to GPLv3, all previous committers ok'd on mailing list.
13 years ago
Michael DeHaan
8f9320aa05
Rename 'ensure' to 'state' because I think it's a bit cleaner and doesn't imply
...
all modules take a common parameter name. But more or less we still work idempotently
in modules.
13 years ago
Michael DeHaan
07d17e4cb4
Fixed up KV munging in runner, misc fixes to copy, setup, and template modules
13 years ago
Michael DeHaan
5e6bf63215
make copy & template module take key/value parameters so we're consistent. Only the command
...
module works differently now
starter manpage for modules
allow template file location to be passed into template & setup modules
13 years ago
Michael DeHaan
e202fea4fa
trim md5sum string so it does not contain the filename
...
also fix a bug/typo in the reporting from playbook
13 years ago
Michael DeHaan
fed3462502
applying indentation patch from skvidal
13 years ago
Michael DeHaan
62dee290c5
Implment copy with an actual minion-side module such that we can get md5sum's and
...
onchange events like Puppet's file providers do.
13 years ago
Michael DeHaan
d27b55baa4
Added file copy support w/ readme updates
13 years ago