Afternoon all,

I'm having issues with using a custom fact in Puppet. 

I've done some googling, and found lots of suggestions, but none of them 
solved my issue... 

I'm trying to use stdlib and facter_dot_d.rb to read in yaml files that I'm 
creating and convert them to facts. 
The facts work fine in facter, however they dont show up in puppet runs :( 

My facts file looks like this:

$ ls -l /etc/facter/facts.d/glassfish3.yaml
> -rw-r--r--. 1 root root 53 Oct 29 12:40 /etc/facter/facts.d/glassfish3.yaml
> $ cat /etc/facter/facts.d/glassfish3.yaml
> glassfish3_installed: true
> glassfish3_version: 3.1.2
>

Facter can see the fact:

$ sudo facter --puppet glassfish3_installed
> true
>

However a puppet run doesn't :(  

> $ sudo puppet agent -t
> Info: Retrieving plugin
> Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
> Info: Loading facts in /var/lib/puppet/lib/facter/iptables.rb
> Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
> Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
> Info: Loading facts in /var/lib/puppet/lib/facter/etckepper_puppet.rb
> Info: Caching catalog for puppet-test.card.co.uk
> Info: Applying configuration version '1351514443'
> Setting up Glassfish3... Installed = . GF Version =  Operating system = 
> CentOS
> /Stage[main]/Act::Env::Glassfish3/Notify[glassfish3]/message: defined 
> 'message' as 'Setting up Glassfish3... Installed = . GF Version =  
> Operating system = CentOS'
> Creating Glassfish domain cms using portbase 9000.
>  Asadmin file is: /usr/local/glassfish-3.1.2/bin/asadmin.
> /Stage[main]/Glassfish::Domain/Notify[gfdomain]/message: defined 'message' 
> as 'Creating Glassfish domain cms using portbase 9000.
>  Asadmin file is: /usr/local/glassfish-3.1.2/bin/asadmin.'
> Environment = test
> /Stage[main]//Notify[environment]/message: defined 'message' as 
> 'Environment = test'
> Finished catalog run in 2.17 seconds
>

The code for the notify above is:

notify {'glassfish3':
>                       message => "Setting up Glassfish3... Installed = 
> $::glassfish3_installed. GF Version = $glassfish3_version Operating system 
> = $::operatingsystem"}
>

Any ideas?

Cheers in advance. 

Gavin 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/FsDpVglrMdIJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to