Commit Graph

14 Commits (c05a5eba58632ecd935521a46d10e9ec250f9694)

Author SHA1 Message Date
Dustin C. Hatch fbcf39e1e1 Correct regex in is_keyid
The `rpm_key` module claims to take a key ID as an argument, however it fails if one is actually given:

    msg: Not a valid key DEADBEEF

The reason for this is the regular expression in the `RpmKey.is_keyid` method is incorrect; it will only match the literal string "0-9a-f" exactly 8 times, rather than exactly 8 characters in the set 0-9 or a-f.
11 years ago
Michael DeHaan a9b4fcf703 Add missing license headers to two modules and standardize formatting of another. 11 years ago
Michael DeHaan 988f0c1646 Merge pull request #6323 from aresch/rpm_key_query_fix
Fix rpm_key on system with no gpg keys imported
11 years ago
Michael DeHaan 0281dbf2f2 Merge pull request #6203 from garetharmstronghp/fix_rpm_key_issue_5621
Fix issue #5621, rpm_key doesn't work for el5
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
aresch 6970dc39ee Fix rpm_key on system with no gpg keys imported
Without the -a option, rpm command will fail (exit code 1) and execute_command() will fail causing an initial key import to not work.

[root@test ~]# rpm -q gpg-pubkey
package gpg-pubkey is not installed
[root@test ~]# echo $?
1
[root@test ~]# rpm -qa gpg-pubkey
[root@test ~]# echo $?
0
11 years ago
Gareth Armstrong eb6d4f9104 Fix issue 5621, rpm_key doesn't work for el5 11 years ago
Michael DeHaan cb6f7748d5 All modules should be using /usr/bin/python in the shebang as ansible_python_interpreter processes this (see FAQ).
Fixing for standardization purposes.
11 years ago
James Tanner 38edad70ac Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
Akihiro YAMAZAKI 190588a595 fix typo in document 11 years ago
James Cammarata 5a86b82cec Fixing typos in is_keyid function definition and usage
Fixes #4068
11 years ago
Michael DeHaan ea08f247f9 PEP8: fix spacing 11 years ago
Hector Acosta 809278ba1b Add rpm_key module
This module can be used to import public keys into your rpm database.

Signed-off-by: Hector Acosta <hector.acosta@gmail.com>
11 years ago