Puppet Class: yubiauth::yhsm_yubikey_ksm

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

Overview

yhsm-yubikey-ksm - Yubikey key storage module using 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_yubikey_ksm.pp', line 2

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

    require_package('yhsm-yubikey-ksm')

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

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