aboutsummaryrefslogtreecommitdiff
path: root/modules/pacman/manifests/init.pp
blob: 731f371b34db06ff52577c4dafff6c162d727647 (plain) (blame)
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
# Class: pacman
#
# This module manages pacman
#
# Parameters:
# $config = '/etc/pacman.conf'
# $config_template = 'pacman/pacman.conf.archlinux.erb'
# $package_name = ['pacman']
#
# Actions:
#
# Requires: see Modulefile
#
# Sample Usage:
#
class pacman (
  $config             = $pacman::params::config,
  $package_ensure     = $pacman::params::package_ensure,
  $package_name       = $pacman::params::package_name,
  # pacman config options
  $rootdir            = $pacman::params::rootdir,
  $dbpath             = $pacman::params::dbpath,
  $cachedir           = $pacman::params::cachedir,
  $logfile            = $pacman::params::logfile,
  $gpgdir             = $pacman::params::gpgdir,
  $holdpkg            = $pacman::params::holdpkg,
  $xfercommand        = $pacman::params::xfercommand,
  $cleanmethod        = $pacman::params::cleanmethod,
  $usedelta           = $pacman::params::usedelta,
  $architecture       = $pacman::params::architecture,
  # pacman package options
  $ignorepkg          = $pacman::params::ignorepkg,
  $noupgrade          = $pacman::params::noupgrade,
  $noextract          = $pacman::params::noextract,
  # pacman misc options
  $usesyslog          = $pacman::params::usesyslog,
  $color              = $pacman::params::color,
  $totaldownload      = $pacman::params::totaldownload,
  $checkspace         = $pacman::params::checkspace,
  $verbosepkglist     = $pacman::params::verbosepkglist,
  # pacman sec options
  $mainsiglevel       = $pacman::params::mainsiglevel,
  $localfilesiglevel  = $pacman::params::localfilesiglevel,
  $remotefilesiglevel = $pacman::params::remotefilesiglevel,) inherits
pacman::params {
  include '::pacman::install'
  include '::pacman::config'

  anchor { 'pacman::begin': }

  anchor { 'pacman::end': }

  Anchor['pacman::begin'] -> Class['::pacman::install'] -> Class['::pacman::config'
    ] -> Anchor['pacman::end']
}