diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-10 00:07:27 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-10 01:35:50 +0200 |
commit | 8ed6fb29b46bbac3f28adc0d0918a71b6a694322 (patch) | |
tree | aa3f985daf920bf8a765a652354a682804feee07 /modules/pacman/manifests/repo.pp | |
parent | 919d772aaa9bb6f298b1d0a433b6b32d15c0410f (diff) | |
download | Puppet-8ed6fb29b46bbac3f28adc0d0918a71b6a694322.tar.gz Puppet-8ed6fb29b46bbac3f28adc0d0918a71b6a694322.tar.zst Puppet-8ed6fb29b46bbac3f28adc0d0918a71b6a694322.zip |
Add pacman configuration
Diffstat (limited to 'modules/pacman/manifests/repo.pp')
-rw-r--r-- | modules/pacman/manifests/repo.pp | 21 |
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. | ||
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 | } | ||