Hi guys, I am trying (and failing) at the moment to push a mysql module to client server based on a custom fact called 'env' which in this case = 'dev'
I have managed to get fact to the client server successfully with a manifest (dont think there is any point in showing you the manifest seeing as it works but if this is wrong please let me know), with its implementation defined in common.yaml. [root@PUPPET hieradata]# cat common.yaml classes: - custom-facts my DEV-PUPPETAGENT04.yaml file sitting in /etc/puppet/hieradata/hosts defines the value of the 'env' facter as 'dev'. [root@PUPPET hosts]# cat DEV-PUPPETAGENT04.yaml custom-facts::facts: env: 'dev' and this all works perfectly. [root@DEV-PUPPETAGENT04 puppet]# facter env dev HOWEVER when it comes to pushing out config based on that fact it fails my hiera.yaml file looks like this --- :backends: - yaml :yaml: :datadir: /etc/puppet/hieradata :hierarchy: - hosts/%{hostname} - env/%{env} - common my dev.yaml file sitting in /etc/puppet/hieradata/env looks like this [root@PUPPET env]# cat dev.yaml classes: - mysql It always fails to pull and run the mysql module from the puppetagent client there is no feedback after it seems to run ok but of course there is never a mysql install. Could this have anything to do with the version of my master as a long shot? [root@DEV-PUPPETAGENT04 puppet]# puppet agent -t Notice: Using less secure serialization of reports and query parameters for compatibility Notice: with older puppet master. To remove this notice, please upgrade your master(s) Notice: to Puppet 3.3 or newer. Notice: See http://links.puppetlabs.com/deprecate_yaml_on_network for more information. Info: Retrieving plugin Info: Caching catalog for dev-puppetagent04 Info: Applying configuration version '1381830637' Notice: Finished catalog run in 0.08 seconds Apologies if I have given too much or too little info, have only recently started with puppet so would appreciate any feedback. Just as a side note before I started to try and run custom facters I was successfully implementing hosts by specifying {hosts}.yaml in /etc/puppet/hieradata/hosts. 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 puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.