Error: Could not find a suitable provider for ec2_instance : puppet Enterprise 2016.1

216 views
Skip to first unread message

Saurabh Agrahari

unread,
May 4, 2016, 10:36:59 AM5/4/16
to Puppet Users
I keep getting error "Could not find a suitable provider for ec2_instance" while running a pp file to create ec2 instance from puppet Enterprise 2016.1 .
Installed version are
Ruby - ruby 1.9.3p484 (2013-11-22 revision 43786)
puppet - 4.4.1
puppetlabs-aws (v1.4.0)

gem list --
*** LOCAL GEMS ***

aws-sdk-core (2.3.0)
jmespath (1.2.4)
json_pure (1.8.3)
retries (0.0.5)


I installed aws module using "/opt/puppetlabs/puppet/bin# gem install aws-sdk-core retries". as mentioned in read me.
Everything seems correct configuration, still keep getting the same error. I followed the suggestions given in similar threads but it is not helping
Please advise.

James Pryor

unread,
May 4, 2016, 10:49:35 AM5/4/16
to puppet...@googlegroups.com
pupeptserver is running it's own ruby by way of JRuby and '/opt/puppetlabs/puppet/bin/gem install' is puppet (the client) agent's ruby.

I'm pretty sure to install gems for pupetserver, you need to do it very differently:
https://github.com/puppetlabs/puppetserver/blob/master/documentation/gems.markdown#installing-and-removing-gems

I hope I'm correct and I hope this helps.

James

--
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/b2f07466-b213-43d0-9ded-7dd46248b27b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Saurabh Agrahari

unread,
May 5, 2016, 7:26:23 AM5/5/16
to Puppet Users
Hi James,
Thanks for your reply.
I am following the below document to configure AWS module 

I could install and see gems (aws-sdk-core) only if I install them from /opt/puppetlabs/puppet/bin/gem install location,
and as per this document as well i should install from this location only.
I tried installing from /opt/puppetlabs/bin/puppetserver gem install but gem did not get installed.
Reply all
Reply to author
Forward
0 new messages