Commit Graph

22 Commits (ffa5c86d736cea653292ee485dbd8c283d554759)

Author SHA1 Message Date
Piffey Parlance 0f09e8ba91 * Minor removal of some dumb I did. 12 years ago
Piffey Parlance cd55d3b6ab * Added support for multi-line key files. 12 years ago
Daniel Hokka Zakrisson 54390d5f21 Add check for multiple keys in one invocation 12 years ago
Stephen Fromm d8e3a00933 Ensure files created by authorized_key have correct selinux context
Three changes:
* Add set_default_selinux_context() to module_common that sets
  a file's context according to the defaults in the policy
* In atomic_replace(), set the default context for the file if
  selinux is enabled and the destination file does not exist.
* In authorized_key, set the default context when creating
  $HOME/.ssh and $HOME/.ssh/authorized_keys.  If these already
  exist, this won't touch them.
12 years ago
Brian Coca 4e7d3a982a removed env as per project policy
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
12 years ago
Michael DeHaan 6f6559670f chmod -x for all module files in source checkout 12 years ago
Daniel Hokka Zakrisson 1ba31e3c38 Use single-quotes to contain SSH keys as they may contain double-quotes
Fixes #1624.
12 years ago
Stephen Fromm cbebdf744b Wrap getpwnam in try/except in authorized_key module
This also adds module as an argument to keyfile().
12 years ago
Daniel Hokka Zakrisson 447ea1624a When atomically replacing files, copy attributes 12 years ago
Stephen Fromm 93081eab8e Use shutil.copyfile so as to preserve file ownership in authorized_keys 12 years ago
Stephen Fromm f70fcf6abb Create temp file in directory where ssh key lives 12 years ago
Stephen Fromm 4bce10c303 Write keys file to temp location to avoid potential corruption 12 years ago
Jan-Piet Mens d069c57974 Reformat code: examples consistently
- added terse syntax to modules.rst
 - added description of special variables to template module
12 years ago
Michael DeHaan 2d096ea425 Fixing various module related things. 12 years ago
Jan-Piet Mens c78a0a4a49 Jumbo DOCUMENTATION patch 12 years ago
Jan-Piet Mens 267ada33eb Module DOCUMENTATION: assemble, authorized_key, command, copy
plus a small fix in rst.j2 template
  manpages generated & checked
  modules.html generated & checked
12 years ago
Michael DeHaan 5ed21bf443 whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added
in 0.6 release)
12 years ago
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.
12 years ago
Michael DeHaan 004c21c913 Convert authorized_key modules to use new common code + misc style things 12 years ago
Brad Olson 9e13c1eab1 Fixes ansible/ansible#522, no longer creates comment in ~/.ssh/authorized_keys, does not create directory or file if state==absent. 12 years ago
Brad Olson ae5b1191f4 Fixes ansible/ansible#523. Removed 'with:' blocks so module works with Python 2.4 for CentOS 5 support, courtesy of mcodd/ansible@29af24b732. 12 years ago
Brad Olson f34ebe735e Renamed module, fixed idempotency, removed debug param. 12 years ago