]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - modules/pacman/manifests/repo.pp
02dc4ec1baae2e91c25fc4433db7f1ea09f7dfa7
[perso/Immae/Projets/Puppet.git] / modules / pacman / manifests / repo.pp
1 # This resource manages an individual repo's that applies to the file defined in
2 # $target. See README.md for more details.
3 # always order from 100 and increase.
4 define pacman::repo (
5 $server = undef,
6 $include = undef,
7 $description = undef,
8 $siglevel = undef,
9 $order = '100',
10 # Needed for testing primarily, support for multiple files is not really
11 # working.
12 $target = $pacman::config::config) {
13 # Create a rule fragment
14 $fragname = "repo_${name}"
15
16 concat::fragment { $fragname:
17 target => $target,
18 content => template('pacman/pacman.conf.repo.erb'),
19 order => $order,
20 }
21 }