Forge Home

perun

Perun slave scripts setup

12,586 downloads

5,746 latest version

2.8 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.9.8 (latest)
  • 0.9.7
  • 0.9.6
  • 0.9.5
  • 0.9.4 (deleted)
  • 0.9.3
  • 0.9.2
  • 0.9.1
  • 0.9.0
released Jul 26th 2017
This version is compatible with:
  • Puppet Enterprise 3.3.x
  • Puppet 3.3
  • , CentOS, ,

Start using this module

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

Add this module to your Puppetfile:

mod 'ceritsc-perun', '0.9.8'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ceritsc-perun
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ceritsc-perun --version 0.9.8

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: perun

Documentation

ceritsc/perun — version 0.9.8 Jul 26th 2017

Puppet Perun module

This module installs Perun slave scripts and configures remote access to these management scripts from server.

Requirements

Module has been tested on:

  • Puppet 3.5
  • OS:
  • Debian 6,7
  • RHEL/CentOS 6
  • SLES/SLED 11 SP3

Required modules:

Quick Start

Setup client

include perun

Full configuration options:

class { 'perun':
  ensure         => present|absent|latest,   # ensure state
  user           => 'root',                  # local privileged user
  allow_from     => 'foo.example.com',       # enabled remote Perun server name
  ssh_type       => 'ssh-rsa' or 'ssh-dss',  # SSH key type
  ssh_key        => '...',                   # SSH key
  perun_conf     => '...',                   # Perun configuration file
  packages       => [..],                    # list of packages for install
  use_repo       => false|true,              # include external repository
  own_repo_class => '...',                   # use own repository class
  require_class  => '...',                   # custom required class
}

Configuration override

Some configuration can be sourced from /etc (typically /etc/perunv3.conf). Definition perun::conf allows to specify these changes in form of shell script snippets.

Full configuration options:

perun::conf { 'name':
  order      => number,                      # location in file
  content    => '...',                       # configuration script
  perun_conf => '...',                       # configuration file
}

Example:

perun::conf { 'service_blacklist':
  content => 'SERVICE_BLACKLIST=(passwd)',
}

Hooks

Hooks are executed before, during or after particular service propagation. Hook content is a shell script.

Full configuration options:

perun::hook { 'hook_name':
  ensure    => present|absent,               # ensure state
  service   => '...',                        # Perun service name
  type      => 'pre' or 'post' or 'mid',     # execution time
  content   => '...',                        # commands to run
  perun_dir => '...',                        # parent directory of hooks
}

Example:

perun::hook { 'passwd_mail':
  ensure  => present,
  service => 'passwd',
  type    => 'post',
  content => 'echo | mail -s "Perun done on passwd" root',
}

CERIT Scientific Cloud, support@cerit-sc.cz