1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Class: pacman::config
#
# This module manages pacman config file
#
# Parameters:
# $config = '/etc/pacman.conf'
#
# Actions:
# with the use of concat it will build a pacman config file
# which is extendable with the class pacman::repo
#
# Requires: see Modulefile
#
# Sample Usage:
#
class pacman::config (
$config = $pacman::config,
# pacman config options
$rootdir = $pacman::rootdir,
$dbpath = $pacman::dbpath,
$cachedir = $pacman::cachedir,
$logfile = $pacman::logfile,
$gpgdir = $pacman::gpgdir,
$holdpkg = $pacman::holdpkg,
$xfercommand = $pacman::xfercommand,
$cleanmethod = $pacman::cleanmethod,
$usedelta = $pacman::usedelta,
$architecture = $pacman::architecture,
# pacman package options
$ignorepkg = $pacman::ignorepkg,
$noupgrade = $pacman::noupgrade,
$noextract = $pacman::noextract,
# pacman misc options
$usesyslog = $pacman::usesyslog,
$color = $pacman::color,
$totaldownload = $pacman::totaldownload,
$checkspace = $pacman::checkspace,
$verbosepkglist = $pacman::verbosepkglist,
# pacman sec options
$mainsiglevel = $pacman::mainsiglevel,
$localfilesiglevel = $pacman::localfilesiglevel,
$remotefilesiglevel = $pacman::remotefilesiglevel,) inherits pacman {
concat { $config:
ensure_newline => true,
owner => 0,
group => 0,
mode => '0644',
}
concat::fragment { 'main':
target => $config,
content => template('pacman/pacman.conf.main.erb'),
order => 00
}
pacman::repo { 'core':
include => '/etc/pacman.d/mirrorlist',
order => 10,
}
pacman::repo { 'extra':
include => '/etc/pacman.d/mirrorlist',
order => 11,
}
pacman::repo { 'community':
include => '/etc/pacman.d/mirrorlist',
order => 12,
}
concat::fragment { 'custom':
target => $config,
content => template('pacman/pacman.conf.customrepo.erb'),
order => 15
}
}
|