Forge Home

cvmfs

Puppet module for CVMFS customizations

14,373 downloads

6,574 latest version

1.9 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.5 (latest)
  • 0.1.3
  • 0.1.1
  • 0.1.0
released Nov 8th 2016

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'desalvo-cvmfs', '0.1.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add desalvo-cvmfs
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install desalvo-cvmfs --version 0.1.5

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: 010

Documentation

desalvo/cvmfs — version 0.1.5 Nov 8th 2016

puppet-cvmfs

Puppet module for managing CVMFS.

Table of Contents

  1. Overview - What is the cvmfs module?

Overview

This module is intended to be used to manage CVMFS customizations. CVMFS is an HTTP based filesystem, part of the CernVM project. Both the client and server setups are supported. The server setup need a recent kernel (>= 4.2.0) to work properly via OverlayFS. The kernel-ml series from elrepo is available for both el6 and el7.

Usage

Client example

This is a simple example to add the atlas and sft CERN repositories, using a quota limit of 10 GB for the cache size and a local squid proxy mysquid.example.com. The module will use the current defaults:

  • repositories = 'sft.cern.ch'
  • quota_limit = 30000
  • no http_proxy
  • default cache base

Defining a cvmfs client customization

class { 'cvmfs::client':
    repositories => 'atlas.cern.ch,sft.cern.ch',
    quota_limit  => 10000,
    http_proxy   => 'http://mysquid.example.com:3128',
    cache_base   => '/var/cache/cvmfs'
}

Server example

This is a simple example to configure a server. It requires a recent kernel (> 4.2.0) to work properly.

include '::cvmfs::server'

Adding a repository

You can add custom repositories using in the following way:

cvmfs::repository {'myrepo.example.com':
   cvmfs_server_url => 'http://cvmfs.example.com/cvmfs/myrepo.example.com',
   cvmfs_public_key => 'puppet:///modules/myrepo/myrepo.example.com.pub',
   cvmfs_key_dir    => '/myrepo',
}

Where:

  • cvmfs_server_url: repository URL
  • cvmfs_public_key: public key of the repository
  • cvmfs_key_dir: (optional) subdir in the keys directory to use

Limitations

  • This module does not install the needed kernel for servers, this is left to the users. Only stratum-0 servers have been tested.

Contributors

Release Notes

0.1.5

Support for multiple repositories in the same key dir

0.1.4

Initial support for server and custom repositories

0.1.3

Support for cache_base option and puppet 4

0.1.2

Support for cvmfs 2.1.20

0.1.1

Fix for cvmfs 2.1 service reload

0.1.0

  • Initial version