diff options
Diffstat (limited to 'modules/pacman/manifests/config.pp')
m--------- | modules/pacman | 0 | ||||
-rw-r--r-- | modules/pacman/manifests/config.pp | 77 |
2 files changed, 0 insertions, 77 deletions
diff --git a/modules/pacman b/modules/pacman new file mode 160000 | |||
Subproject 1b42bd156fd35c7736e155e3a8c456969a274ff | |||
diff --git a/modules/pacman/manifests/config.pp b/modules/pacman/manifests/config.pp deleted file mode 100644 index 9bd22be..0000000 --- a/modules/pacman/manifests/config.pp +++ /dev/null | |||
@@ -1,77 +0,0 @@ | |||
1 | # Class: pacman::config | ||
2 | # | ||
3 | # This module manages pacman config file | ||
4 | # | ||
5 | # Parameters: | ||
6 | # $config = '/etc/pacman.conf' | ||
7 | # | ||
8 | # Actions: | ||
9 | # with the use of concat it will build a pacman config file | ||
10 | # which is extendable with the class pacman::repo | ||
11 | # | ||
12 | # Requires: see Modulefile | ||
13 | # | ||
14 | # Sample Usage: | ||
15 | # | ||
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, | ||
33 | # pacman misc options | ||
34 | $usesyslog = $pacman::usesyslog, | ||
35 | $color = $pacman::color, | ||
36 | $totaldownload = $pacman::totaldownload, | ||
37 | $checkspace = $pacman::checkspace, | ||
38 | $verbosepkglist = $pacman::verbosepkglist, | ||
39 | # pacman sec options | ||
40 | $mainsiglevel = $pacman::mainsiglevel, | ||
41 | $localfilesiglevel = $pacman::localfilesiglevel, | ||
42 | $remotefilesiglevel = $pacman::remotefilesiglevel,) inherits pacman { | ||
43 | concat { $config: | ||
44 | ensure_newline => true, | ||
45 | owner => 0, | ||
46 | group => 0, | ||
47 | mode => '0644', | ||
48 | } | ||
49 | |||
50 | concat::fragment { 'main': | ||
51 | target => $config, | ||
52 | content => template('pacman/pacman.conf.main.erb'), | ||
53 | order => 00 | ||
54 | } | ||
55 | |||
56 | pacman::repo { 'core': | ||
57 | include => '/etc/pacman.d/mirrorlist', | ||
58 | order => 10, | ||
59 | } | ||
60 | |||
61 | pacman::repo { 'extra': | ||
62 | include => '/etc/pacman.d/mirrorlist', | ||
63 | order => 11, | ||
64 | } | ||
65 | |||
66 | pacman::repo { 'community': | ||
67 | include => '/etc/pacman.d/mirrorlist', | ||
68 | order => 12, | ||
69 | } | ||
70 | |||
71 | concat::fragment { 'custom': | ||
72 | target => $config, | ||
73 | content => template('pacman/pacman.conf.customrepo.erb'), | ||
74 | order => 15 | ||
75 | } | ||
76 | |||
77 | } | ||