Defined Type: ganglia::web::add_user

Defined in:
manifests/web/add_user.pp

Overview

Define: ganglia::web::add_user

Give a user access to the web front-end for ganglia.

Parameters

name

The user to give access to

passwd_hash

Hashed password for the user. Should be generated using htdigest (for Digest authentication) or htpasswd (for Basic Authentication)

realm

This variable should only be specified if you are using Digest authentication

Authors

  • Trevor Vaughan <tvaughan@onyxpoint.com>

Parameters:

  • passwd_hash (Any)
  • realm (Any) (defaults to: '')


22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'manifests/web/add_user.pp', line 22

define ganglia::web::add_user (
  $passwd_hash,
  $realm = ''
){

  if !defined(Concat_build['gweb']) {
    concat_build { 'gweb':
      order => ['*.user']
    }
  }

  concat_fragment { "gweb+$name.user":
    content => template('ganglia/web/user.erb')
  }
}