Any one had this problem to find a attribute or know how to solve this? In
my case I separated hiera files by osfamily when I execute
# hiera packages_utils
return me
nil
BUT if I execute
# hiera packages_utils osfamily=Debian
it's works
["tzdata",
"dnsutils",
"bash-completion",
"unzip",
"bzip2",
"htop",
"vim",
"ntpdate",
"mlocate",
"nfs-common",
"sysstat"]
the facter osfamily works.
# facter osfamily
Debian
my hiera.yaml
---
:backends:
- yaml
:hierarchy:
- "nodes/%{fqdn}"
- "osfamily/%{osfamily}"
- "osfamily/%{operatingsystem}"
- defaults/users
- defaults/hosts
- "%{clientcert}"
- "%{environment}"
- global
:yaml:
# datadir is empty here, so hiera uses its defaults:
# - /var/lib/hiera on *nix
# - %CommonAppData%\PuppetLabs\hiera\var on Windows
# When specifying a datadir, make sure the directory exists.
:datadir: /etc/puppet/hiera
my osfamily directory content
# ls -l /etc/puppet/hiera/osfamily/
total 12
lrwxrwxrwx 1 root root 11 Mar 21 15:44 CentOS.yaml -> RedHat.yaml
-rw-r--r-- 1 root root 248 Mar 21 16:11 Debian.yaml
-rw-r--r-- 1 root root 29 Mar 21 16:13 default.yaml
-rw-r--r-- 1 root root 223 Mar 21 15:44 RedHat.yaml
lrwxrwxrwx 1 root root 11 Mar 21 15:44 Ubuntu.yaml -> Debian.yaml
my Debian.yaml
---
packages_utils:
- tzdata
- dnsutils
- bash-completion
- unzip
- bzip2
- htop
- vim
- ntpdate
- mlocate
- nfs-common
- sysstat
conf_ntp:
- ntpdate
conf_ntp_path:
- /etc/default/ntpdate
conf_vim_path:
- /etc/vim/vimrc
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/11625c93-4c89-4fd6-8c82-6b9c170ebddb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.