Commit Graph

28 Commits (97c64f3632893174b648a8973b9f1cf79169fd1e)

Author SHA1 Message Date
John Kleint 375a1eaf43 Use iterative MD5 hashing. 13 years ago
Dave Hatton 55694db7c3 switch to hashlib.md5 or md5 instead of OS md5 commands 13 years ago
Dave Hatton ecaa794f7f copy always returned change=true 13 years ago
Dave Hatton 9d85a55434 switch to shutil.copy rather than os.system(cp) 13 years ago
Dave Hatton 263fcab594 md5 allow copy if file is missing 13 years ago
Jeremy Smitherman 3003aa2d47 Added IndexError catch for copy module, IndexError is thrown if a destination file doesn't exist 13 years ago
Dave Hatton d47de18b6c improve error trapping for md5 13 years ago
Ingo Gottwald a42167ca73 Copy module: Extended error handling and fixed error messages 13 years ago
Ingo Gottwald 270266e920 Added to copy module: Error handling for missing permissions on the copy destination 13 years ago
Michael DeHaan 25083953fc Merge pull request #495 from nafeger/devel
make copy module implemented closer to other newer modules when returning results
13 years ago
Nathan A. Feger 26816b72ec attempt to make copy more idiomatic. 13 years ago
Fred Alger 834f6a216d Make shell outs to md5sum work on FreeBSD and OS X
Tested with OS X local connection and Linux remote. The paths to the
md5sum and md5 commands are hardcoded to the most common location. This
will definitely fail if the commands are elsewhere, or if the md5
command doesn't support the -q 'quiet' option.
13 years ago
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.
13 years ago
Seth Vidal c701e59592 very minor indentation issue in librar/copy 13 years ago
Michael DeHaan 7794493952 Don't try to expand path for None values 13 years ago
Michael DeHaan 445e48b991 Call os.path.expanduser in modules so things work as expected even when using ./hacking/test-module script 13 years ago
Jeroen Hoekx 38a33c54a6 Make copy module idempotent.
Check md5sum before overwriting a file. Unconditionally copying changes the timestamp.
13 years ago
Michael DeHaan 4bde4926c3 Modules don't have to return JSON, key=value pairs is ok. 13 years ago
Michael DeHaan aeea46678d Fix the copy module to use the argsfile method 13 years ago
Michael DeHaan eaa7714ff8 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 be4cb64c92 Relicensing to GPLv3, all previous committers ok'd on mailing list. 13 years ago
Michael DeHaan ba4e36a9a9 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 61d064d011 Fixed up KV munging in runner, misc fixes to copy, setup, and template modules 13 years ago
Michael DeHaan e5f62f20b1 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 deb71da91e 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 b44ae0af90 applying indentation patch from skvidal 13 years ago
Michael DeHaan 6cceaa5f6a 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 3807824c6d Added file copy support w/ readme updates 13 years ago