Azure Ruby gems are not loading.

95 views
Skip to first unread message

Raghu Ram Baisani

unread,
Jul 16, 2021, 3:13:12 AM7/16/21
to Puppet Users
Hi Team

I have installed the gem azure-storage-blob on puppet master using below command.

sudo puppetserver gem install azure-storage-blob

When I execute puppetserver gem list command, that particular gem is available in the list.

gem_list.PNG
I have restarted the puppet master couple of times post gem installation.
when I say
require 'azure/storage/blob'
The files associated with the gem are not loading and getting below error.

`require': cannot load such file -- azure/storage/blob 

Can you please help me with steps to resolve the issue?

Thanks
Raghuram Baisani

Martin Alfke

unread,
Jul 16, 2021, 7:57:43 AM7/16/21
to Puppet Users
Hi Raghu,

where do you use the require?
Within a Puppet function or within a Puppet provider?

Functions are running on the Puppet Server, whereas providers are executed on the agent.
If you do the require in a Puppet provider, the gem must be installed on the puppet agent (/opt/puppetlabs/puppet/bin/gem install).

hth,
Martin


> On 16. Jul 2021, at 09:13, Raghu Ram Baisani <baisani...@gmail.com> wrote:
>
> Hi Team
>
> I have installed the gem azure-storage-blob on puppet master using below command.
>
> sudo puppetserver gem install azure-storage-blob
>
> When I execute puppetserver gem list command, that particular gem is available in the list.
>
> <gem_list.PNG>
> I have restarted the puppet master couple of times post gem installation.
> when I say
> require 'azure/storage/blob'
> The files associated with the gem are not loading and getting below error.
>
> `require': cannot load such file -- azure/storage/blob
>
> Can you please help me with steps to resolve the issue?
>
> Thanks
> Raghuram Baisani
>
>
> --
> 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/e2d45c24-43c1-4531-ab4f-7b45a80ef14cn%40googlegroups.com.
> <gem_list.PNG>

Raghu Ram Baisani

unread,
Jul 16, 2021, 12:51:52 PM7/16/21
to puppet...@googlegroups.com
Hi martin
The issue is due to dependency of the gems which is resolved now
Thanks
Raghuram

Reply all
Reply to author
Forward
0 new messages