Puppet Class: osg::cvmfs

Defined in:
manifests/cvmfs.pp

Summary

Manage OSG CVMFS

Overview

Parameters:

  • manage_user (Boolean) (defaults to: true)

    Boolean to set if CVMFS user is managed

  • user_name (String) (defaults to: 'cvmfs')

    CVMFS user name

  • user_uid (Optional[Integer]) (defaults to: undef)

    CVMFS user UID

  • user_home (String) (defaults to: '/var/lib/cvmfs')

    CVMFS user home

  • user_shell (String) (defaults to: '/sbin/nologin')

    CVMFS user shell

  • user_system (Boolean) (defaults to: true)

    Sets if CVMFS user is a system account

  • user_comment (String) (defaults to: 'CernVM-FS service account')

    CVMFS user comment

  • user_managehome (Boolean) (defaults to: false)

    Sets if CVMFS user home is managed

  • manage_group (Boolean) (defaults to: true)

    Boolean to set if CVMFS group is managed

  • group_name (String) (defaults to: 'cvmfs')

    CVMFS group name

  • group_gid (Optional[Integer]) (defaults to: undef)

    CVMFS group GID

  • group_system (Boolean) (defaults to: true)

    Sets if CVMFS group is a system account

  • manage_fuse_group (Boolean) (defaults to: true)

    Manage FUSE group

  • fuse_group_name (String) (defaults to: 'fuse')

    FUSE group name

  • fuse_group_gid (Optional[Integer]) (defaults to: undef)

    FUSE group GID

  • fuse_group_system (Boolean) (defaults to: true)

    Sets if FUSE group is a system account

  • package_ensure (String) (defaults to: 'installed')

    Ensure property for CVMFS package

  • repositories (Optional[Array]) (defaults to: undef)

    CVMFS repositories to enable, eg: grid.cern.ch

  • strict_mount (Boolean) (defaults to: false)

    Enable CVMFS strict mount, only allow mounting repositories from repositories parameter

  • cache_base (String) (defaults to: '/var/cache/cvmfs')

    Base directory for CVMFS cache

  • quota_limit (Integer) (defaults to: 20000)

    Quota limit for CVMFS cache

  • http_proxies (Array) (defaults to: ["http://squid.${facts['networking']['domain']}:3128"])

    Squid HTTP proxies for CVMFS

  • cern_server_urls (Array) (defaults to: [])

    Value for CVMFS_SERVER_URL

  • glite_version (String) (defaults to: '')

    glite version

  • cms_local_site (Optional[String]) (defaults to: undef)

    Value for CMS_LOCAL_SITE



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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'manifests/cvmfs.pp', line 54

class osg::cvmfs (
  Boolean $manage_user = true,
  String $user_name = 'cvmfs',
  Optional[Integer] $user_uid = undef,
  String $user_home = '/var/lib/cvmfs',
  String $user_shell = '/sbin/nologin',
  Boolean $user_system = true,
  String $user_comment = 'CernVM-FS service account',
  Boolean $user_managehome = false,
  Boolean $manage_group = true,
  String $group_name = 'cvmfs',
  Optional[Integer] $group_gid = undef,
  Boolean $group_system = true,
  Boolean $manage_fuse_group = true,
  String $fuse_group_name = 'fuse',
  Optional[Integer] $fuse_group_gid = undef,
  Boolean $fuse_group_system = true,
  String $package_ensure = 'installed',
  Optional[Array] $repositories = undef,
  Boolean $strict_mount = false,
  String $cache_base = '/var/cache/cvmfs',
  Integer $quota_limit = 20000,
  Array $http_proxies = ["http://squid.${facts['networking']['domain']}:3128"],
  Array $cern_server_urls = [],
  String $glite_version = '',
  Optional[String] $cms_local_site = undef,
) {

  if $repositories {
    $repositories_real = join($repositories, ',')
  } else {
    $repositories_real = '`echo $((echo oasis.opensciencegrid.org;echo cms.cern.ch;ls /cvmfs)|sort -u)|tr \' \' ,`'
  }

  include ::autofs
  include osg
  contain osg::cvmfs::user
  contain osg::cvmfs::install
  contain osg::cvmfs::config
  contain osg::cvmfs::service

  Class['osg']
  -> Class['osg::cvmfs::user']
  -> Class['osg::cvmfs::install']
  -> Class['osg::cvmfs::config']
  -> Class['osg::cvmfs::service']

}