Puppet Class: ceph::params

Inherited by:
ceph::mds
ceph::repo
Defined in:
manifests/params.pp

Overview

Parameters:

  • exec_timeout (Any) (defaults to: 600)
  • packages (Any) (defaults to: ['ceph'])
  • rgw_socket_path (Any) (defaults to: '/tmp/radosgw.sock')
  • enable_sig (Any) (defaults to: false)
  • release (Any) (defaults to: 'nautilus')


43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'manifests/params.pp', line 43

class ceph::params (
  $exec_timeout    = 600,
  $packages        = ['ceph'], # just provide the minimum per default
  $rgw_socket_path = '/tmp/radosgw.sock',
  $enable_sig      = false,
  $release         = 'nautilus',
) {
  $pkg_mds = 'ceph-mds'

  case $facts['os']['family'] {
    'Debian': {
      $pkg_radosgw         = 'radosgw'
      $user_radosgw        = 'www-data'
      $pkg_fastcgi         = 'libapache2-mod-fastcgi'
      $pkg_policycoreutils = 'policycoreutils'
      $fastcgi_available   = false
    }

    'RedHat': {
      $pkg_radosgw         = 'ceph-radosgw'
      $user_radosgw        = 'apache'
      $pkg_fastcgi         = 'mod_fastcgi'
      if (Integer.new($facts['os']['release']['major']) > 7) {
        $pkg_policycoreutils = 'policycoreutils-python-utils'
        $fastcgi_available   = false
      } else {
        $pkg_policycoreutils = 'policycoreutils-python'
        $fastcgi_available   = false
      }
    }

    default: {
      fail("Unsupported osfamily: ${facts['os']['family']}")
    }
  }
}