facter: Manage facter
facter::fact: Define txt based external factsfacter::structured_data_fact: Define YAML based external structured data facts.
This class will manage facter and allow you to specify external facts.
The following parameters are available in the facter class:
manage_facts_d_dirpurge_facts_dfacts_d_dirfacts_d_ownerfacts_d_groupfacts_d_modepath_to_facterpath_to_facter_symlinkensure_facter_symlinkfacts_hashstructured_data_facts_hashfacts_filefacts_file_ownerfacts_file_groupfacts_file_modefacter_conf_dirfacter_conf_dir_ownerfacter_conf_dir_groupfacter_conf_dir_modefacter_conf_namefacter_conf_ownerfacter_conf_groupfacter_conf_modefacter_conf
Data type: Boolean
Boolean to determine if the external facts directory will be managed.
Default value: true
Data type: Boolean
Boolean to determine if the external facts directory should be purged. This will remove files not managed by Puppet.
Default value: false
Data type: Stdlib::Absolutepath
Path to the directory which will contain the external facts.
Default value: '/etc/facter/facts.d'
Data type: String[1]
The owner of the facts_d_dir.
Default value: 'root'
Data type: String[1]
The group of the facts_d_dir.
Default value: 'root'
Data type: Stdlib::Filemode
The mode of the facts_d_dir.
Default value: '0755'
Data type: Stdlib::Absolutepath
The path to the facter binary.
Default value: '/opt/puppetlabs/bin/facter'
Data type: Stdlib::Absolutepath
Path to a symlink that points to the facter binary.
Default value: '/usr/local/bin/facter'
Data type: Boolean
Boolean to determine if the symlink should be present.
Default value: false
Data type: Hash
A hash of facter::fact entries.
Default value: {}
Data type: Hash
A hash of facter::structured_data_fact entries.
Default value: {}
Data type: Pattern[/\.txt*\Z/]
The file in which the text based external facts are stored. This file must end with '.txt'.
Default value: 'facts.txt'
Data type: String[1]
The owner of the facts_file.
Default value: 'root'
Data type: String[1]
The group of the facts_file.
Default value: 'root'
Data type: Stdlib::Filemode
The mode of the facts_file.
Default value: '0644'
Data type: Stdlib::Absolutepath
The facter configuration directory
Default value: '/etc/puppetlabs/facter'
Data type: String[1]
The facter configuration directory owner
Default value: 'root'
Data type: String[1]
The facter configuration directory group owner
Default value: 'root'
Data type: Stdlib::Filemode
The facter configuration directory mode
Default value: '0755'
Data type: String[1]
The facter configuration file name
Default value: 'facter.conf'
Data type: String[1]
The facter configuration file name owner
Default value: 'root'
Data type: String[1]
The facter configuration file name group owner
Default value: 'root'
Data type: Stdlib::Filemode
The facter configuration file name mode
Default value: '0644'
Data type: Facter::Conf
Hash of facter configurations
Default value: {}
Define txt based external facts
The following parameters are available in the facter::fact defined type:
Data type: String[1]
Value of the fact.
Data type: String[1]
Name of the fact
Default value: $name
Data type: Optional[String[1]]
File in which the fact will be placed. If not specified, use the default facts file.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Directory in which the file will be placed. If not specified, use the default facts_d_dir.
Default value: undef
Define YAML based external structured data facts.
The following parameters are available in the facter::structured_data_fact defined type:
Data type: Hash[String[1], Data]
A hash of facts. All keys must be strings.
Data type: Pattern[/\.yaml*\Z/]
File in which the fact will be placed. The file name must end with '.yaml'.
Default value: 'facts.yaml'
Data type: Optional[Stdlib::Absolutepath]
Directory in which the file will be placed. If not specified, use the default facts_d_dir.
Default value: undef
The Facter::Conf data type.
Alias of
Struct[{
'facts' => Optional[Struct[{
'blocklist' => Optional[Array[String]],
'ttls' => Optional[Array[Hash]]
}]],
'global' => Optional[Struct[{
'external-dir' => Optional[Array[Stdlib::Absolutepath]],
'custom-dir' => Optional[Array[Stdlib::Absolutepath]],
'no-external-facts' => Optional[Boolean],
'no-custom-facts' => Optional[Boolean],
'no-ruby' => Optional[Boolean]
}]],
'cli' => Optional[Struct[{
'debug' => Optional[Boolean],
'trace' => Optional[Boolean],
'verbose' => Optional[Boolean],
'log-level' => Optional[Boolean]
}]]
}]