aboutsummaryrefslogtreecommitdiff
path: root/modules/pacman/manifests/repo.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pacman/manifests/repo.pp')
-rw-r--r--modules/pacman/manifests/repo.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/pacman/manifests/repo.pp b/modules/pacman/manifests/repo.pp
new file mode 100644
index 0000000..02dc4ec
--- /dev/null
+++ b/modules/pacman/manifests/repo.pp
@@ -0,0 +1,21 @@
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.
4define 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}