1 # Class: pacman::config
3 # This module manages pacman config file
6 # $config = '/etc/pacman.conf'
9 # with the use of concat it will build a pacman config file
10 # which is extendable with the class pacman::repo
12 # Requires: see Modulefile
16 class pacman::config (
17 $config = $pacman::config,
18 # pacman config options
19 $rootdir = $pacman::rootdir,
20 $dbpath = $pacman::dbpath,
21 $cachedir = $pacman::cachedir,
22 $logfile = $pacman::logfile,
23 $gpgdir = $pacman::gpgdir,
24 $holdpkg = $pacman::holdpkg,
25 $xfercommand = $pacman::xfercommand,
26 $cleanmethod = $pacman::cleanmethod,
27 $usedelta = $pacman::usedelta,
28 $architecture = $pacman::architecture,
29 # pacman package options
30 $ignorepkg = $pacman::ignorepkg,
31 $noupgrade = $pacman::noupgrade,
32 $noextract = $pacman::noextract,
34 $usesyslog = $pacman::usesyslog,
35 $color = $pacman::color,
36 $totaldownload = $pacman::totaldownload,
37 $checkspace = $pacman::checkspace,
38 $verbosepkglist = $pacman::verbosepkglist,
40 $mainsiglevel = $pacman::mainsiglevel,
41 $localfilesiglevel = $pacman::localfilesiglevel,
42 $remotefilesiglevel = $pacman::remotefilesiglevel,) inherits pacman {
44 ensure_newline => true,
50 concat::fragment { 'main':
52 content => template('pacman/pacman.conf.main.erb'),
56 pacman::repo { 'core':
57 include => '/etc/pacman.d/mirrorlist',
61 pacman::repo { 'extra':
62 include => '/etc/pacman.d/mirrorlist',
66 pacman::repo { 'community':
67 include => '/etc/pacman.d/mirrorlist',
71 concat::fragment { 'custom':
73 content => template('pacman/pacman.conf.customrepo.erb'),