From 8ed6fb29b46bbac3f28adc0d0918a71b6a694322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 10 Aug 2016 00:07:27 +0200 Subject: Add pacman configuration --- modules/pacman/manifests/repo.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/pacman/manifests/repo.pp (limited to 'modules/pacman/manifests/repo.pp') 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 @@ +# 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, + } +} -- cgit v1.2.3