Commit Graph

20 Commits (edfa3f0d21f9179fa2a5a037a7c9da0508f61f4d)

Author SHA1 Message Date
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. 12 years ago
Michael DeHaan 03f1578768 Merge conflict 12 years ago
Michael DeHaan 538a998d26 Merge branch 'apt_key_file' of git://github.com/veeti/ansible into devel
Conflicts:
	library/packaging/apt_key
12 years ago
Veeti Paananen b53982f9d2 Add apt_key examples for file and data 12 years ago
Michael DeHaan d91ffdef72 Merge pull request #3162 from strawlab/apt-key-binary-fix
allow apt-key module to work with binary key
12 years ago
Michael DeHaan 3a9f45d457 Merge pull request #3213 from veeti/apt_key_data
Document the data argument for apt_key
12 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
12 years ago
Veeti Paananen e4c4f8ba7d Add a file argument to apt_key 12 years ago
Veeti Paananen 6a572f3607 Document the data argument for apt_key 12 years ago
Andrew Straw 7d9eb14b2a allow apt-key module to work with binary key 12 years ago
Michael DeHaan cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago