Puppet Function: conftool::cluster_credentials

Defined in:
modules/conftool/functions/cluster_credentials.pp
Function type:
Puppet Language

Overview

conftool::cluster_credentials(String $def_user, String $def_pw, String $seed, Optional[String] $conftool_cluster)Struct[{'username' => String, 'password' => String}]

Parameters:

Returns:



1
2
3
4
5
6
7
8
9
10
11
12
# File 'modules/conftool/functions/cluster_credentials.pp', line 1

function conftool::cluster_credentials(
    String $def_user,
    String $def_pw,
    String $seed,
    Optional[String] $conftool_cluster
) >> Struct[{'username' => String, 'password' => String}] {
    if $conftool_cluster == undef {
        {'username' => $def_user, 'password' => $def_pw}
    } else {
        {'username' => "pool-${::site}-${conftool_cluster}", 'password' => wmflib::autogen_password("${::site}-${conftool_cluster}", $seed)}
    }
}