Puppet Class: etcd::auth::common

Defined in:
modules/etcd/manifests/auth/common.pp

Overview

Class etcd::auth:;common

Common base configs for the etcd auth classes

Parameters:

  • root_password (Any)
  • active (Any) (defaults to: true)


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/etcd/manifests/auth/common.pp', line 4

class etcd::auth::common($root_password, $active = true) {
    # Require the global etcd config file
    require ::etcd::client::globalconfig

    file { '/usr/local/bin/etcd-manage':
        ensure => absent,
    }

    if $active {
        # specific configuration for the root user, basically
        # just the credentials.
        etcd::client::config { '/root/.etcdrc':
            settings => {
                username => 'root',
                password => $root_password,
            },
        }
    }
}