Puppet Agent Gem Install

42 views
Skip to first unread message

Tony Wu

unread,
Oct 20, 2020, 3:55:49 PM10/20/20
to Puppet Users
Hi,

I have a agent side function that requires a gem, so I did:

/opt/puppetlabs/puppet/bin/gem install my_gem

If I do list, it shows the gem as being installed, but when invoking the function it can't find it. Any suggestion?

Thanks very much.

Martin Alfke

unread,
Oct 21, 2020, 1:51:53 AM10/21/20
to puppet...@googlegroups.com
Hi Tony,

puppet functions are executed on the puppet server.
You need to install the gem within the puppet server

puppetserver gem install my gem

Hth,
Martin


--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6b114e8d-8147-42d5-85a4-aa0ad381de25n%40googlegroups.com.

Tony Wu

unread,
Oct 21, 2020, 12:05:59 PM10/21/20
to puppet...@googlegroups.com
I did that too, but that still didn’t work. Let me double check again.

Best,

Tony Wu

Tony Wu

unread,
Oct 21, 2020, 12:45:20 PM10/21/20
to puppet...@googlegroups.com
Hi Martin,

Got it to work, it was indeed server side as you stated. Perhaps I just forgot to restart it? I have no idea.

Much appreciated for your reply.

Take care,

Tony Wu

Martin Alfke

unread,
Oct 23, 2020, 2:30:57 AM10/23/20
to puppet...@googlegroups.com
Hi Tony,

yes, restarting puppetserver is required once you install a puppetserver gem.

Good to know that it is working.

Happy puppetizing,
Martin



Reply all
Reply to author
Forward
0 new messages