Hello,
I have Puppet and Hiera for in my configuration and i have the next 
question:  when i define some node use the particular class declared inside 
"fqdn/node.example.com.yaml" and after check with hiera command the classes 
for this node and list only the class declared inside 
 "node.example.com.yaml" but not list classes from common class 
(common.yaml) but this node executes this classes without problem when 
running puppet agent.

For example:

Node node1.example.com.yaml
[.................]
[root@puppet hieradata]# cat fqdn/node1.example.com.yaml 
---
classes: 
        - ssh
ssh::port: '22'
ssh::permit_root_login: 'no'
[.................]

Common YAML
[.................]
[root@puppet hieradata]# cat common.yaml 
---
classes:
        - ntp
ntp::restrict       : true
ntp::autoupdate : true
ntp::enable       : true
ntp::servers      : ["ntp1.example.com", "ntp2.example.com"]
[.................]

Check class with hiera command (list only ssh class but not ntp class)

[.................]
[root@puppet hieradata]# hiera classes ::fqdn=node1.example.com
["ssh"]
[.................]

My hiera value

[.................]
[root@puppet puppet]# cat hiera.yaml 
---
:backends:
  - yaml
:yaml:
  :datadir: /etc/puppet/hieradata
:hierarchy:
  - "fqdn/%{::fqdn}"
  - common
[.................]


Thanks.




-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/682ee641-b192-4d91-80d2-b87d8e30ea02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to