|
14 | 14 | # extension. Absence of extension will result in file formation with just name and no extension. |
15 | 15 | # apt::source { 'puppetlabs': |
16 | 16 | # location => 'http://apt.puppetlabs.com', |
17 | | -# comment => 'Puppet8', |
| 17 | +# repos => 'puppet8' |
| 18 | +# comment => 'Puppet 8 release', |
18 | 19 | # key => { |
19 | | -# 'name' => 'puppetlabs.gpg', |
| 20 | +# 'name' => 'puppetlabs-keyring.gpg', |
20 | 21 | # 'source' => 'https://apt.puppetlabs.com/keyring.gpg', |
21 | 22 | # }, |
22 | 23 | # } |
23 | 24 | # |
| 25 | +# @example Deploy the apt source and associated keyring file with checksum |
| 26 | +# apt::source { 'puppetlabs': |
| 27 | +# location => 'http://apt.puppetlabs.com', |
| 28 | +# repos => 'puppet8', |
| 29 | +# comment => 'Puppet 8 release', |
| 30 | +# key => { |
| 31 | +# name => 'puppetlabs-keyring.gpg', |
| 32 | +# source => 'https://apt.puppetlabs.com/keyring.gpg' |
| 33 | +# checksum => 'sha256', |
| 34 | +# checksum_value => '9d7a61ab06b18454e9373edec4fc7c87f9a91bacfc891893ba0da37a33069771', |
| 35 | +# } |
| 36 | +# } |
| 37 | +# |
24 | 38 | # @param location |
25 | 39 | # Required, unless ensure is set to 'absent'. Specifies an Apt repository. Valid options: a string containing a repository URL. |
26 | 40 | # |
|
47 | 61 | # |
48 | 62 | # @param key |
49 | 63 | # Creates an `apt::keyring` in `/etc/apt/keyrings` (or anywhere on disk given `filename`) Valid options: |
50 | | -# * a hash of `parameter => value` pairs to be passed to `file`: `name` (title), `content`, `source`, `filename` |
| 64 | +# * a hash of `parameter => value` pairs to be passed to `file`: `name` (title), `content`, `source`, `filename`, `checksum`, `checksum_value`. |
51 | 65 | # |
52 | 66 | # The following inputs are valid for the (deprecated) `apt::key` defined type. Valid options: |
53 | 67 | # * a string to be passed to the `id` parameter of the `apt::key` defined type |
|
177 | 191 | # Modern apt keyrings |
178 | 192 | elsif $_key =~ Hash and $_key['name'] { |
179 | 193 | apt::keyring { $_key['name']: |
180 | | - ensure => $_key_ensure, |
181 | | - content => $_key['content'], |
182 | | - source => $_key['source'], |
183 | | - dir => $_key['dir'], |
184 | | - filename => $_key['filename'], |
185 | | - mode => $_key['mode'], |
186 | | - before => $_before, |
| 194 | + ensure => $_key_ensure, |
| 195 | + content => $_key['content'], |
| 196 | + source => $_key['source'], |
| 197 | + dir => $_key['dir'], |
| 198 | + filename => $_key['filename'], |
| 199 | + mode => $_key['mode'], |
| 200 | + checksum => $_key['checksum'], |
| 201 | + checksum_value => $_key['checksum_value'], |
| 202 | + before => $_before, |
187 | 203 | } |
188 | 204 |
|
189 | 205 | $_list_keyring = if $_key['dir'] and $_key['filename'] { |
|
0 commit comments