Commit graph

58 commits

Author SHA1 Message Date
Reid Vandewiele
8cdaf855a1 (#12823) Add apt::key defined type and modify apt::source to use it
Adding this defined type allows puppet to add keys to the apt keystore without
needing to add a corresponding source; it also adds the "key_source" parameter
for wget'ing keys from arbitrary URLs, and allows for keys to be explicity
removed.

apt::key allows a key to be ensured present multiple times to account for
apt::source resources that all reference the same key. However, this means
that it is possible for a given key to be defined multiple times with
differing source parameters. e.g.

apt::key { "Add key: 4BD6EC30 from Apt::Source bunny":
  key        => "4BD6EC30",
  key_server => "pgp.mit.edu",
}

apt::key { "Add key: 4BD6EC30 from Apt::Source rabbit":
  key        => "4BD6EC30",
  key_server => "keyserver.ubuntu.com",
}

The defined type will accept both definitions and will create multiple exec
resources. This was deemed preferable to the alternative (creating only one
exec resource) in that one broken definition won't hose an entire catalog. If
one definition fails to install the key because of a bad "key_server", the
next apt::key that uses the key will get it done.
2012-03-01 14:15:52 -08:00
Dan Bode
f2265b470b Merge pull request #8 from cwarden/source-example-improvement
include_src parameter in example; Whitespace cleanup
2012-01-13 12:25:42 -08:00
Christian G. Warden
0dd697d7cf include_src parameter in example; Whitespace cleanup
In the apt::source example, include the include_src parameter.  Clean-up
whitespace in the example to be consistent with the style guide.
2011-12-20 13:45:43 -08:00
Christian G. Warden
b662eb8644 fix typos in "repositories" 2011-12-20 12:06:24 -08:00
Monty Taylor
5c05fa0f91 added builddep command. 2011-07-24 18:19:22 -04:00
Jeff Wallace
71796e39e1 Heading fix in README 2010-05-06 10:50:59 -07:00
Jeff Wallace
87777d8551 Typo in README 2010-04-27 16:39:50 -04:00
Jeff Wallace
f848bac607 First commit 2010-04-27 16:38:28 -04:00