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_dir
purge_facts_d
facts_d_dir
facts_d_owner
facts_d_group
facts_d_mode
path_to_facter
path_to_facter_symlink
ensure_facter_symlink
facts_hash
structured_data_facts_hash
facts_file
facts_file_owner
facts_file_group
facts_file_mode
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: Optional[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: Optional[Stdlib::Filemode]
The mode of the facts_file.
Default value: '0644'
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