Puppet Class: rook::packages

Defined in:
manifests/packages.pp

Overview



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/packages.pp', line 3

class rook::packages {

    $rook_packages = $::operatingsystem ? {
    /(?i:Ubuntu|Debian)/ => [ 'ceph-common', 'ceph-fs-common'],
    /(?i:RedHat|CentOS)/ => [ 'ceph-common', 'ceph-deploy'],
    default              => [ 'ceph-common', 'ceph-fs-common'],
  }

  case $::operatingsystem {
    'CentOS': {
      if ! defined(Class['epel']) {
        include epel
        }
    }
    default: {}
}

  package { $rook_packages:
    ensure => present,
  }
}