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

  concat::fragment { $fragname:
    target  => $target,
    content => template('pacman/pacman.conf.repo.erb'),
    order   => $order,
  }
}