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/params.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/params.pp')
-rw-r--r-- | modules/pacman/manifests/params.pp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/pacman/manifests/params.pp b/modules/pacman/manifests/params.pp new file mode 100644 index 0000000..b8b9e1c --- /dev/null +++ b/modules/pacman/manifests/params.pp | |||
@@ -0,0 +1,41 @@ | |||
1 | # Class: pacman::params | ||
2 | # | ||
3 | class pacman::params { | ||
4 | case $::osfamily { | ||
5 | 'Archlinux' : { | ||
6 | $package_ensure = 'present' | ||
7 | $package_name = 'pacman' | ||
8 | $config = '/etc/pacman.conf' | ||
9 | # pacman config options | ||
10 | $rootdir = '/' | ||
11 | $dbpath = '/var/lib/pacman' | ||
12 | $cachedir = '/var/cache/pacman/pkg' | ||
13 | $logfile = '/var/log/pacman.log' | ||
14 | $gpgdir = '/etc/pacman.d/gnupg/' | ||
15 | $holdpkg = 'pacman glibc' | ||
16 | $xfercommand = '/usr/bin/curl -C - -f %u > %o' | ||
17 | $cleanmethod = 'KeepInstalled' | ||
18 | $usedelta = '0.7' | ||
19 | $architecture = 'auto' | ||
20 | # pacman package options | ||
21 | $ignorepkg = undef | ||
22 | $noupgrade = undef | ||
23 | $noextract = undef | ||
24 | # pacman misc options | ||
25 | $usesyslog = false | ||
26 | $color = false | ||
27 | $totaldownload = false | ||
28 | $checkspace = true | ||
29 | $verbosepkglist = false | ||
30 | # pacman sec options | ||
31 | $mainsiglevel = 'Required DatabaseOptional' | ||
32 | $localfilesiglevel = 'Optional' | ||
33 | $remotefilesiglevel = 'Required' | ||
34 | } | ||
35 | |||
36 | default : { | ||
37 | fail("The ${module_name} module is not supported | ||
38 | on an ${::osfamily} based system.") | ||
39 | } | ||
40 | } | ||
41 | } | ||