Commit Graph

25 Commits (b27c21ca535abe18f62e5150df17dcc826c89cfc)

Author SHA1 Message Date
Michael DeHaan ec8b67bea8 Merge pull request #6468 from philpep/fix_apt_key
apt_key: Fix traceback when key_id format is invalid
11 years ago
James Cammarata 564fbb55de Fix small typo resulting in a traceback for the apt_key module 11 years ago
Philippe Pepiot f9d1809a70 apt_key: Fix traceback when key_id format is invalid
Signed-off-by: Philippe Pepiot <phil@philpep.org>
11 years ago
Michael DeHaan e811a9b603 Still more shell fixes. 11 years ago
James Cammarata c68be8b418 Remove validate_certs parameter from fetch_url calls 11 years ago
James Cammarata a1b1182662 Validate SSL certs accessed through urllib*
* Adds another module utility file which generalizes the
  access of urls via the urllib* libraries.
* Adds a new spec generator for common arguments.
* Makes the user-agent string configurable.

Fixes #6211
11 years ago
Danilo Bargen 0d55cca4c3 apt_key module: Case insensitive presence checking
Right now key_present() is case sensitive, only uppercase key IDs work. By using "grep -i", lowercase IDs should work too.
11 years ago
Jens Rantil c475814519 module(apt_key): don't catch `SystemExit`
If we do this, we risk outputting two JSON payloads, which will be
unparsable.
11 years ago
James Tanner 38edad70ac Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
Marcus Cobden c7dfa16edf Only remove leading '0x' from key ids, not all 0s 11 years ago
Maykel Moya a96f75c396 Do key validation only when key is provided
key_id is optional, the previous code didn't handle the case of key_id
not specified
11 years ago
Maykel Moya 5d41d2eaa4 apt_key: Validate key_id and accept a leading '0x' 11 years ago
Michael DeHaan e1e37002c3 Add version_added to new parameter. 11 years ago
Alan Grosskurth 5700970e05 apt_key: Add 'keyring' parameter
The apt-key command takes an optional --keyring parameter representing
the path to a specific GPG keyring to operate on. If it's not given,
the command operates on all keyring files, i.e., /etc/apt/trusted.gpg
and /etc/apt/trusted.gpg.d/*.gpg.

This change adds a 'keyring' parameter to the apt_key module and
propagates it down to the apt-key command line. The main use case this
supports is organizing keys for third-party repos into individual
keyrings in /etc/apt/trusted.gpg.d, rather than putting them all in
the default keyring.
11 years ago
Michael DeHaan 3dc560a1a2 Fixup previous apt_key patch to enable file based modes to work. 11 years ago
Michael DeHaan 03f1578768 Merge conflict 11 years ago
Michael DeHaan 538a998d26 Merge branch 'apt_key_file' of git://github.com/veeti/ansible into devel
Conflicts:
	library/packaging/apt_key
11 years ago
Veeti Paananen b53982f9d2 Add apt_key examples for file and data 11 years ago
Michael DeHaan d91ffdef72 Merge pull request #3162 from strawlab/apt-key-binary-fix
allow apt-key module to work with binary key
11 years ago
Michael DeHaan 3a9f45d457 Merge pull request #3213 from veeti/apt_key_data
Document the data argument for apt_key
11 years ago
Jan-Piet Mens 3404a0fc16 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
  Added deprecation warning to moduledev.rst and remove deprecated example from it
  Fixed up a few typos and uppercased some acronyms.
  add consistency to how EXAMPLES are formatted
11 years ago
Veeti Paananen e4c4f8ba7d Add a file argument to apt_key 11 years ago
Veeti Paananen 6a572f3607 Document the data argument for apt_key 11 years ago
Andrew Straw 7d9eb14b2a allow apt-key module to work with binary key 11 years ago
Michael DeHaan cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago