The issue was an old version installed under /usr/bin with the newer 
version installed in /usr/local/bin.

On Wednesday, April 8, 2015 at 12:50:15 PM UTC-5, Chad Upton wrote:
>
> Environment is:
>
> EC2 Amazon Linux AMI
> puppet version 3.7.5 with puppetmaster
> facter version 2.2.0
>
> Test Case:
>
> Create a test file:
> -- modules
>   -- my_test_fact
>     -- lib
>       -- facter
>         -- my_test_fact.rb
>
> vim my_test_fact.rb
>
>   Facter.add("my_fact") { setcode { "my_fact" } }
>
>
> Run puppet:  puppet agent -t
>
> Shows the updated fact being loaded.
>
> facter -p shows
>
> my_fact => "my_fact"
>
> Edit /etc/rc.local
>
> facter -p > /tmp/facter_run.log
> puppet agent -t > /tmp/puppet_run.log
>
> Reboot the server
>
> cat /tmp/facter_run.log
>
> my_fact doesn't exist also running puppet the fact isn't loaded (i've test 
> this by trying to use it)
>
>
> Not sure what I'm missing here as I'm pretty sure this used to work or 
> maybe I'm running it from /etc/rc.local incorrectly?
>
>
>
>
> ------------  Our Legal Fees At Work -----------------------------------
> This communication and its contents are confidential and may contain 
> protected intellectual property or other information protected from 
> disclosure. If you are not the intended recipient you may not read, copy, 
> distribute or use this information. If you have received this 
> communication or its contents in error, please notify Findly immediately by 
> replying to this message and then delete this communication and its 
> contents from your system.
>
>
-- 

------------  Our Legal Fees At Work -----------------------------------
This communication and its contents are confidential and may contain 
protected intellectual property or other information protected from 
disclosure. If you are not the intended recipient you may not read, copy, 
distribute or use this information. If you have received this 
communication or its contents in error, please notify Findly immediately by 
replying to this message and then delete this communication and its 
contents from your system.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/589531f7-dbfd-4427-8268-2d3880265220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to