puppet apply --configprint modulepath 
/etc/puppet/modules:/usr/share/puppet/modules

puppet apply --configprint environmentpath 
invalid parameter: environmentpath


 I inherited this, and am thinking more and more that it wasn't implemented 
anywhere close to best practices.
  So the environmentpath seems to have been deprecated from what I read.

  Based on the on the "puppet apply --configprint modulepath", surely 
placing these factor files in either of directories wouldn't make a 
difference?

  I think the following may have worked, but it seems hacky and I need to 
do further tesitng.
"export FACTERLIB="/var/els/puppet/modules/env/lib/facter"; /usr/bin/puppet 
apply /var/els/puppet/manifests/site.pp --modulepath 
/var/els/puppet/modules --debug"

 After running that it "appears" that the new fact is there.  I am going to 
do a test build and see if it works.

 Thanks,
J

On Monday, September 8, 2014 9:00:43 AM UTC-5, Felix.Frank wrote:
>
> As I mentioned, you *modulepath* is key here. 
>
> What is the output of 
>
> puppet apply --configprint modulepath 
> puppet apply --configprint environmentpath 
>
> Also, what version of Puppet is this? 
>
> On 09/08/2014 06:19 AM, omfg9899 wrote: 
> >   So I didn't have a "/etc/puppet/modules/env/lib/facter/" directory 
> > structure of any kind. 
> >   I had a structure of "/var/els/puppet/modules/facts/files/envir.rd" 
> > and /var/els/puppet/modules/env/lib/facter/envir.rb" 
> >  Neither of those work, however, I am just running facter.  If puppet 
> > runs facter differently I wouldn't know what that difference is. 
> > 
> > I did notice a strange directory "/usr/lib/ruby/site_ruby/1.8/facter/" 
> > where a-lot of stuff was coming out of. 
> > 
> >  Any thoughts? 
> > 
> >  Thanks, 
> >  J 
> > 
> > On Sunday, September 7, 2014 4:41:48 PM UTC-5, Felix.Frank wrote: 
> > 
> >     On 09/07/2014 05:41 PM, omfg9899 wrote: 
> >     > I have placed this file in MANY different places as suggested and 
> it 
> >     > never works. 
> > 
> >     Well...*what* places? 
> > 
> >     The facts.d directory is the one place where this does *not* belong. 
> > 
> >     Please try /etc/puppet/modules/env/lib/facter/envir.rb 
> > 
> >     provided that /etc/puppet/modules is in your modulepath. 
>
>

-- 
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/f1cc0b31-6e78-4fde-be8b-185005d84b87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to