Forge Home

bontmia

Configure and manage bontmia

13,703 downloads

132 latest version

3.0 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.4.1 (latest)
  • 0.4.0
  • 0.3.11
  • 0.3.10
  • 0.3.9
  • 0.3.8
  • 0.3.7
  • 0.3.6
  • 0.3.5
  • 0.3.4
  • 0.3.3
  • 0.3.2
  • 0.3.1
  • 0.3.0
  • 0.2.2
released Jun 20th 2024
This version is compatible with:
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'ULHPC-bontmia', '0.4.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ULHPC-bontmia
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ULHPC-bontmia --version 0.4.1

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

Documentation

ULHPC/bontmia — version 0.4.1 Jun 20th 2024

-- mode: markdown; mode: visual-line; --

Bontmia Puppet Module

Puppet Forge License Supported Platforms Documentation Status

Configure and manage bontmia

  Copyright (c) 2021 UL HPC Team <hpc-sysadmins@uni.lu>
  

| Project Page | Sources | Documentation | Issues |

Synopsis

This module configures a bontmia installation and the backup tasks.

This module implements the following elements: Note that we use a forked version of bontmia.

  • Puppet classes:

    • bontmia
    • bontmia::common
    • bontmia::common::debian
    • bontmia::common::redhat
    • bontmia::params
  • Puppet definitions:

    • bontmia::target

All these components are configured through a set of variables you will find in manifests/params.pp.

Note: the various operations that can be conducted from this repository are piloted from a Rakefile and assumes you have a running Ruby installation. See docs/contributing.md for more details on the steps you shall follow to have this Rakefile working properly.

Dependencies

See metadata.json. In particular, this module depends on

General Parameters

See:

Overview and Usage

class bontmia

 class { 'bontmia':
     ensure => 'present',
     prefix => '/data/bontmia',
     sudo   => true
 }

definition bontmia::target

The definition bontmia::target permits to set-up one backup task. This definition accepts the following parameters:

  • ensure: default to 'present', can be 'absent'.

  • dest_dir: destination directory of the backup

  • src_dir, src_host, src_user, src_port: defines the backup source. If src_host is not set, it assumes that we want to backup the local directory src_dir.

  • rotation_days, rotation_weeks, rotation_months, rotation_years: set-up the rotation policy with these values, see the bontmia documentation for more information

  • cron_minute, cron_hour, cron_weekday, cron_monthday, cron_month: set-up a cronjob with these settings

  • email: send the execution output to this email address

Example:

 bontmia::target{ 'backup_hcartiaux':
     ensure   => 'present',
     dest_dir => '/data/test/hcartiaux',
     src_user => 'localadmin',
     src_host => 'nfs.chaos',
     src_dir  => '/export/users/homedirs/hcartiaux',
     src_port => '2222',
     days     => '7',
     weeks    => '4',
     months   => '12',
     years    => '2',
     email    => 'hpc-sysadmins@uni.lu'
 }

Librarian-Puppet / R10K Setup

You can of course configure the bontmia module in your Puppetfile to make it available with Librarian puppet or r10k by adding the following entry:

 # Modules from the Puppet Forge
 mod "ULHPC/bontmia"

or, if you prefer to work on the git version:

 mod "ULHPC/bontmia", 
     :git => 'https://github.com/ULHPC/puppet-bontmia',
     :ref => 'production' 

Issues / Feature request

You can submit bug / issues / feature request using the ULHPC/bontmia Puppet Module Tracker.

Developments / Contributing to the code

If you want to contribute to the code, you shall be aware of the way this module is organized. These elements are detailed on docs/contributing.md.

You are more than welcome to contribute to its development by sending a pull request.

Puppet modules tests within a Vagrant box

The best way to test this module in a non-intrusive way is to rely on Vagrant. The Vagrantfile at the root of the repository pilot the provisioning various vagrant boxes available on Vagrant cloud you can use to test this module.

See docs/vagrant.md for more details.

Online Documentation

Read the Docs aka RTFD hosts documentation for the open source community and the ULHPC/bontmia puppet module has its documentation (see the docs/ directly) hosted on readthedocs.

See docs/rtfd.md for more details.

Licence

This project and the sources proposed within this repository are released under the terms of the GPL-3.0 licence.

Licence