Ask Your Question
0

How to set libdir of Puppet installation?

asked 2013-06-16 05:55:25 -0500

I have put some functions into /etc/puppet/lib/puppet/parser/functions, but puppet does not seem to find those.

Though when I created a module and put the functions there the problem was gone.

As far as I understand Puppet searches for functions in $libdir (and I realize it's a legacy way of doing that), but apparently on my system $libdir's value is not /etc/puppet/lib. How do I set/find out that vlaue?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-06-16 17:17:45 -0500

GregLarkin gravatar image

updated 2013-06-17 14:59:28 -0500

Try this command:

sudo puppet --configprint libdir  # Puppet 2.7.x
sudo puppet config print libdir   # Puppet 3.x

If you want to change the setting and aren't sure where your puppet.conf file is located, run this command to find it:

sudo puppet --configprint config  # Puppet 2.7.x
sudo puppet config print config   # Puppet 3.x

Hope that helps!

edit flag offensive delete link more

Comments

Thanks for the pointer, but in puppet 3 it seems it is using different command format i.e.`puppet config print` and there `puppet config print | grep libdir` would work ...(more)

Andrey Adamovich gravatar imageAndrey Adamovich ( 2013-06-17 02:12:35 -0500 )edit

So, in my system it appeared to be under: /var/lib/puppet/lib

Andrey Adamovich gravatar imageAndrey Adamovich ( 2013-06-17 02:14:16 -0500 )edit

Can you please update your answer with puppet3 details, then I will happily accept it :)?

Andrey Adamovich gravatar imageAndrey Adamovich ( 2013-06-17 02:14:59 -0500 )edit

All set, thank you!

GregLarkin gravatar imageGregLarkin ( 2013-06-17 14:59:42 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-06-16 05:55:25 -0500

Seen: 585 times

Last updated: Jun 17 '13