Skip to content

Commit 49a3456

Browse files
committed
Update README.md with deb822 sources example
1 parent c86d12c commit 49a3456

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,27 @@ apt::source { 'puppetlabs':
225225

226226
<a id="configure-apt-from-hiera"></a>
227227

228+
### Generating a DEB822 .sources file
229+
230+
You can also generate a DEB822 format .sources file. This example covers most of the available options.
231+
232+
Use the `source_format` parameter to choose between 'list' and 'sources' (DEB822) formats.
233+
```puppet
234+
apt::source { 'debian':
235+
source_format => 'sources'
236+
comment => 'Official Debian Repository',
237+
enabled => true,
238+
types => ['deb', 'deb-src'],
239+
location => ['http://fr.debian.org/debian', 'http://de.debian.org/debian']
240+
release => ['stable', 'stable-updates', 'stable-backports'],
241+
repos => ['main', 'contrib', 'non-free'],
242+
architecture => ['amd64', 'i386'],
243+
allow_unsigned => true,
244+
keyring => '/etc/apt/keyrings/debian.gpg'
245+
notify_update => false
246+
}
247+
```
248+
228249
### Configure Apt from Hiera
229250

230251
Instead of specifying your sources directly as resources, you can instead just include the `apt` class, which will pick up the values automatically from hiera.

0 commit comments

Comments
 (0)