Puppet Class: munge

Defined in:
manifests/init.pp

Summary

Manage MUNGE

Overview

Examples:

class { 'munge':
   munge_key_source  => 'puppet:///modules/site_munge/munge.key',
 }

Parameters:

  • manage_repo (Boolean) (defaults to: false)

    Whether or not to manage the repo necessary to install munge. If set to false, it is assumed that the munge RPMs are available via a different repository.

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

    package 'ensure' property

  • package_name (String) (defaults to: 'munge')

    Munge package name.

  • install_dev (Boolean) (defaults to: false)

    Sets if the munge-devel package should be installed

  • dev_package_name (String) (defaults to: 'munge-devel')

    Munge dev package name.

  • service_name (String) (defaults to: 'munge')

    Munge service name

  • service_ensure (String) (defaults to: 'running')

    Munge service 'ensure' property

  • service_enable (Boolean) (defaults to: true)

    Munge service 'enable' property

  • service_hasstatus (Boolean) (defaults to: true)

    Munge service hasstatus value.

  • service_hasrestart (Boolean) (defaults to: true)

    Munge service hasrestart value.

  • munge_key_path (Stdlib::Absolutepath) (defaults to: '/etc/munge/munge.key')

    Path to the munge.key file. Default is OS dependent.

  • log_dir (Optional[Stdlib::Absolutepath]) (defaults to: undef)

    Log directory path, should be unnecessary to set.

  • lib_dir (Optional[Stdlib::Absolutepath]) (defaults to: undef)

    /var/lib directory path, should be unnecessary to set.

  • conf_dir (Optional[Stdlib::Absolutepath]) (defaults to: undef)

    /etc/munge directory path, should be unnecessary to set.

  • run_dir (Optional[Stdlib::Absolutepath]) (defaults to: undef)

    daemon run directory path, should be unnecessary to set.

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

    The source for the munge.key file

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

    The content for the munge.key file

  • manage_user (Boolean) (defaults to: true)

    Boolen that determines if munge user and group should be managed

  • user (String) (defaults to: 'munge')

    User running munge

  • group (String) (defaults to: 'munge')

    Group running munge

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

    UID of the munge user

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

    GID of the munge group

  • munge_user_shell (Stdlib::Absolutepath) (defaults to: '/sbin/nologin')

    Shell of munge user

  • munge_user_home (Stdlib::Absolutepath) (defaults to: '/var/run/munge')

    Home directory of munge user

  • package_install_options (Optional[Array[String]]) (defaults to: undef)

    An array of additional options to pass when installing a package. Typical usage is enabling certain repositories like EPEL.



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
# File 'manifests/init.pp', line 60

class munge (
  Boolean $manage_repo                  = false,
  String $package_ensure                = 'present',
  String $package_name                  = 'munge',
  Boolean $install_dev                  = false,
  String $dev_package_name              = 'munge-devel',
  String $service_name                  = 'munge',
  String $service_ensure                = 'running',
  Boolean $service_enable               = true,
  Boolean $service_hasstatus            = true,
  Boolean $service_hasrestart           = true,
  Stdlib::Absolutepath $munge_key_path  = '/etc/munge/munge.key',
  Optional[Stdlib::Absolutepath] $log_dir = undef,
  Optional[Stdlib::Absolutepath] $lib_dir = undef,
  Optional[Stdlib::Absolutepath] $conf_dir = undef,
  Optional[Stdlib::Absolutepath] $run_dir = undef,
  Optional[String] $munge_key_source    = undef,
  Optional[String] $munge_key_content   = undef,
  Boolean $manage_user                  = true,
  String $user                          = 'munge',
  String $group                         = 'munge',
  Optional[Integer] $munge_user_uid     = undef,
  Optional[Integer] $munge_group_gid    = undef,
  Stdlib::Absolutepath $munge_user_shell = '/sbin/nologin',
  Stdlib::Absolutepath $munge_user_home = '/var/run/munge',
  Optional[Array[String]] $package_install_options = undef,
) {
  contain munge::user
  contain munge::repo
  contain munge::install
  contain munge::config
  contain munge::service

  Class['munge::user']
  -> Class['munge::repo']
  -> Class['munge::install']
  -> Class['munge::config']
  ~> Class['munge::service']
}