]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - modules/pacman/manifests/init.pp
Use git.immae.eu
[perso/Immae/Projets/Puppet.git] / modules / pacman / manifests / init.pp
CommitLineData
8ed6fb29
IB
1# Class: pacman
2#
3# This module manages pacman
4#
5# Parameters:
6# $config = '/etc/pacman.conf'
7# $config_template = 'pacman/pacman.conf.archlinux.erb'
8# $package_name = ['pacman']
9#
10# Actions:
11#
12# Requires: see Modulefile
13#
14# Sample Usage:
15#
16class pacman (
17 $config = $pacman::params::config,
18 $package_ensure = $pacman::params::package_ensure,
19 $package_name = $pacman::params::package_name,
20 # pacman config options
21 $rootdir = $pacman::params::rootdir,
22 $dbpath = $pacman::params::dbpath,
23 $cachedir = $pacman::params::cachedir,
24 $logfile = $pacman::params::logfile,
25 $gpgdir = $pacman::params::gpgdir,
26 $holdpkg = $pacman::params::holdpkg,
27 $xfercommand = $pacman::params::xfercommand,
28 $cleanmethod = $pacman::params::cleanmethod,
29 $usedelta = $pacman::params::usedelta,
30 $architecture = $pacman::params::architecture,
31 # pacman package options
32 $ignorepkg = $pacman::params::ignorepkg,
33 $noupgrade = $pacman::params::noupgrade,
34 $noextract = $pacman::params::noextract,
35 # pacman misc options
36 $usesyslog = $pacman::params::usesyslog,
37 $color = $pacman::params::color,
38 $totaldownload = $pacman::params::totaldownload,
39 $checkspace = $pacman::params::checkspace,
40 $verbosepkglist = $pacman::params::verbosepkglist,
41 # pacman sec options
42 $mainsiglevel = $pacman::params::mainsiglevel,
43 $localfilesiglevel = $pacman::params::localfilesiglevel,
44 $remotefilesiglevel = $pacman::params::remotefilesiglevel,) inherits
45pacman::params {
46 include '::pacman::install'
47 include '::pacman::config'
48
49 anchor { 'pacman::begin': }
50
51 anchor { 'pacman::end': }
52
53 Anchor['pacman::begin'] -> Class['::pacman::install'] -> Class['::pacman::config'
54 ] -> Anchor['pacman::end']
55}