Puppet Class: yubiauth::yhsm_daemon

Defined in:
modules/yubiauth/manifests/yhsm_daemon.pp

Overview

yhsm-daemon - Allow multiple users of a YubiHSM

Parameters:

  • yhsmdevice (Any) (defaults to: '/dev/ttyACM0')


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'modules/yubiauth/manifests/yhsm_daemon.pp', line 2

class yubiauth::yhsm_daemon(
    $yhsmdevice = '/dev/ttyACM0',
) {

    require_package('yhsm-daemon')

    file { 'yhsm-daemon-default':
        mode    => '0440',
        owner   => 'root',
        group   => 'root',
        path    => '/etc/default/yhsm-daemon',
        content => template('yubiauth/yhsm-daemon-default.erb'),
    }

    service { 'yhsm-daemon':
        enable  => true,
        require => [
                    Package['yhsm-daemon'],
                    File['yhsm-daemon-default'],
                    ],
    }
}