Puppet Function: g_server::params

Defined in:
functions/params.pp
Function type:
Puppet Language

Overview

g_server::params(Hash $options, Puppet::LookupContext $context)Any

Parameters:

  • options (Hash)
  • context (Puppet::LookupContext)

Returns:

  • (Any)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'functions/params.pp', line 1

function g_server::params(
  Hash                  $options, # We ignore both of these arguments, but
  Puppet::LookupContext $context, # the function still needs to accept them.
) {
  $base_params = {
    'g_server::accounts::admin_groups' => ['wheel']
  }

  $os_params = case $facts['os']['family'] {
    'Debian': {
      {
        'g_server::accounts::admin_groups' => ['sudo']
      }
    }
    default: {
      {}
    }
  }

  $base_params + $os_params
}