Commit Graph

4 Commits (8b458b292186b4b9e82b2cae18d248da264edbf0)

Author SHA1 Message Date
Michael DeHaan f83db16c37 This standardizes the apt_key module some
* improves error handling and reporting
* uses run_command to reduce code
* fails quicker on errors as opposed to return codes and tracebacks
* can now also specify the key as data versus needing to wget it from a file
12 years ago
Juha Litola 6e2d401a01 Removed apt_key tests, as they didn't test the real functionality.
Tests used heavily mocked version of the apt_key code, which meant that
it didn't properly test real life scenario.
12 years ago
Juha Litola 5d1536a7c5 Fixed add_key stalling indefinitely, and test code leaking into production setting 12 years ago
Jayson Vantuyl 732be11781 add apt_key module
Pretty straightforward.  Give it a URL with an exported GPG key for signing an
Apt repository.  It downloads it and will install it using apt-key.  It's even
smart enough to tell if it's already there (i.e. actually tells you if it
changed or not).
12 years ago