Puppet Class: tpm::tboot::grub

Defined in:
manifests/tboot/grub.pp

Overview

Configure grub This class is controlled by ‘tpm::tboot`



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

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') }
  }

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

}