Puppet Class: tpm::tboot::grub

Defined in:
manifests/tboot/grub.pp

Summary

Configure grub

Overview

This class is controlled by ‘tpm::tboot`



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'manifests/tboot/grub.pp', line 5

class tpm::tboot::grub {
  assert_private()

  $sinit_name    = $tpm::tboot::sinit_name

  case $facts['augeasprovider_grub_version'] {
    1:       { include 'tpm::tboot::grub::grub1' }
    2:       { include 'tpm::tboot::grub::grub2' }
    default: { fail('Unknown grub version, tboot cannot continue') }
  }

  if $sinit_name {
    file { "/boot/${sinit_name}":
      ensure  => file,
      source  => "/root/txt/sinit/${sinit_name}",
      require => Class['tpm::tboot::sinit']
    }
  }

}