Puppet Class: tpm::ownership
- Defined in:
- manifests/ownership.pp
Overview
Enabling this class will take ownership of the TPM in the system, using an auto-generated password created with simplib’s passgen.
The password must be generated with passgen in order for most of the facts to be functional post-ownership, as the tpm commands from tpm-tools require the owner password.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'manifests/ownership.pp', line 20
class tpm::ownership (
Boolean $owned = true,
String $owner_pass = passgen( "${facts['fqdn']}_tpm0_owner_pass", { 'length' => 20 } ),
Optional[String] $srk_pass = undef,
Boolean $advanced_facts = false
) {
tpm_ownership { 'tpm0':
owned => $owned,
owner_pass => $owner_pass,
srk_pass => $srk_pass,
advanced_facts => $advanced_facts,
}
}
|