In custom facters extended key values (String, Array, Hash).
Created by: MemberIT
Added support array and hash in key values of custom facters. code manifest:
$title_facters = {
roles => {
ensure => present,
value => [ 'puppetserver', 'hiera', 'puppetdb', 'postgresql' ],
},
}
create_resources('::puppet::fact', $title_facters)
result:
# facter -v
3.3.0 (commit fc9282a2d426f7c8a742fd5b23c4cb06852eee20)
# facter roles
[
"hiera",
"postgresql",
"puppetdb",
"puppetserver"
]