Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Nigel Kersten
On Tue, Nov 9, 2010 at 8:40 PM, Edward Bailey wrote: > Sure I can update the wiki - I hope I can save some else time the next time > this come up. > > I like your suggestion, but I cant quite visualize how I could write a fact > that will parse any files in /etc/fact.s and create separate facts fr

Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Edward Bailey
Sure I can update the wiki - I hope I can save some else time the next time this come up. I like your suggestion, but I cant quite visualize how I could write a fact that will parse any files in /etc/fact.s and create separate facts from the output. Would I use some sort of loop or will facter par

Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Edward Bailey
server means the hardware that the puppet client manages On Tue, Nov 9, 2010 at 9:06 PM, Patrick wrote: > > On Nov 9, 2010, at 6:01 PM, Edward Bailey wrote: > > The purpose behind setting up the fact this way is that I thought it would > be an easy way to populate servers with extra metadata wi

Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Nigel Kersten
On Tue, Nov 9, 2010 at 6:01 PM, Edward Bailey wrote: > The purpose behind setting up the fact this way is that I thought it would > be an easy way to populate servers with extra metadata without having to > drop a file and then a fact with some shell code on every server. > > For example, we have

Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Patrick
On Nov 9, 2010, at 6:01 PM, Edward Bailey wrote: > The purpose behind setting up the fact this way is that I thought it would be > an easy way to populate servers with extra metadata without having to drop a > file and then a fact with some shell code on every server. > > For example, we have

Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Edward Bailey
The purpose behind setting up the fact this way is that I thought it would be an easy way to populate servers with extra metadata without having to drop a file and then a fact with some shell code on every server. For example, we have a number of servers that simply cannot be identified as being p

Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Nigel Kersten
On Tue, Nov 9, 2010 at 3:45 PM, wrote: > ok - that makes sense, but why does facter have a feature > http://docs.puppetlabs.com/guides/faq.html#can-i-access-environmental-variables-with-facter > where you can expose environmental variables as facts if puppet will not > recognize the facts? Is the

Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread eds . mailing . list . account
ok - that makes sense, but why does facter have a feature http://docs.puppetlabs.com/guides/faq.html#can-i-access-environmental-variables-with-facter where you can expose environmental variables as facts if puppet will not recognize the facts? Is the issue because of the old version of facter

Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Zach Leslie
Hi Ed, You are correct that the environment will not get imported into puppet. When you restart the puppet daemon, you are missing your custom fact because daemon will run as its own process with its own environment, so just exporting the variable will only effect your current running environment