Puppet Class: clevis

Defined in:
manifests/init.pp

Overview

Class: clevis

Main class that includes all other classes for the clevis module.

Parameters:

  • package_ensure (String) (defaults to: 'present')

    Whether to install the clevis package, and/or what version. Values: 'present', 'latest', or a specific version number. Default value: present.

  • package_name (Array) (defaults to: [ 'clevis', 'clevis-dracut', 'clevis-luks', ])

    Specifies the name of the package to install. Default value: 'clevis'.

  • service_enable (Boolean) (defaults to: true)

    Whether to enable the clevis service at boot. Default value: true.

  • service_ensure (Enum['running', 'stopped']) (defaults to: 'running')

    Whether the clevis service should be running. Default value: 'running'.

  • service_name (String) (defaults to: 'clevis-luks-askpass.path')

    Specifies the name of the service to manage. Default value: 'clevis'.



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/init.pp', line 12

class clevis (
  String                     $package_ensure = 'present',
  Array                      $package_name   = [ 'clevis', 'clevis-dracut', 'clevis-luks', ],
  Boolean                    $service_enable = true,
  Enum['running', 'stopped'] $service_ensure = 'running',
  String                     $service_name   = 'clevis-luks-askpass.path',
  ) {
  case $::osfamily {
    'RedHat': {
      contain clevis::install
      contain clevis::config
      contain clevis::service

      Class['clevis::install']
      -> Class['clevis::config']
      ~> Class['clevis::service']
    }
    default: {
      fail("${::osfamily} not supported")
    }
  }
}