Ask Your Question
0

Getting 'Error: Could not find a suitable provider' error message when puppetlab's aws module

asked 2016-04-14 11:47:49 -0500

schowdhury gravatar image

updated 2016-04-15 02:40:24 -0500

Hi,

I'm currently using open source puppet. One the puppetserver I have:

[root@ip-10-0-130-13 manifests]# puppetserver --version
puppetserver version: 2.3.1
[root@ip-10-0-130-13 manifests]# puppetserver gem list

*** LOCAL GEMS ***

aws-sdk (2.2.34)
aws-sdk-core (2.2.34)
aws-sdk-resources (2.2.34)
hiera-eyaml (2.1.0)
highline (1.6.21)
jar-dependencies (0.1.13)
jmespath (1.2.4)
jruby-openssl (0.9.7 java)
json (1.8.0 java)
json_pure (1.8.3)
rake (10.1.0)
rdoc (4.1.2)
retries (0.0.5)
trollop (2.1.2)

On the puppet agent, I have:

[root@ip-10-0-101-17 bin]# puppet --version
4.4.1
[root@ip-10-0-101-17 bin]# gem list

*** LOCAL GEMS ***

aws (2.10.2)
aws-sdk-core (2.2.34)
bigdecimal (1.2.0)
bundler (1.10.6)
caphub (0.1.5)
highline (1.7.1)
http_connection (1.4.4)
i18n (0.7.0)
io-console (0.4.2)
jmespath (1.2.4)
json (1.7.7)
json_pure (1.8.3)
psych (2.0.0)
rdoc (4.0.0)
retries (0.0.5)
uuidtools (2.1.5)
xml-simple (1.1.5)
[root@ip-10-0-101-17 bin]# ruby --version
ruby 2.0.0p598 (2014-11-13) [x86_64-linux]
[root@ip-10-0-101-17 bin]# yum info puppet-agent
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
 * base: ftp.heanet.ie
 * epel: s3-mirror-eu-west-1.fedoraproject.org
 * extras: ftp.heanet.ie
 * remi-php56: remi.check-update.co.uk
 * remi-safe: remi.check-update.co.uk
 * updates: ftp.heanet.ie
Installed Packages
Name        : puppet-agent
Arch        : x86_64
Version     : 1.4.1
Release     : 1.el7
Size        : 106 M
Repo        : installed
From repo   : puppetlabs-pc1
Summary     : The Puppet Agent package contains all of the elements needed to run puppet, including ruby, facter, hiera
            : and mcollective.
URL         : https://www.puppetlabs.com
Licence     : See components
Description : The Puppet Agent package contains all of the elements needed to run puppet, including ruby, facter, hiera
            : and mcollective.
            :
            : Contains the following components:
            : augeas 1.4.0
            : cpp-pcp-client 1.1.1
            : curl 7.46.0
            : dmidecode 2.12
            : facter 3.1.5
            : hiera 3.1.1
            : leatherman 0.4.2
            : libxml2 2.9.3
            : libxslt 1.1.28
            : marionette-collective 2.8.8
            : openssl 1.0.2g
            : puppet 4.4.1
            : puppet-ca-bundle 1.0.7
            : pxp-agent 1.1.1
            : ruby 2.1.8
            : ruby-augeas 0.5.0
            : ruby-selinux 2.0.94
            : ruby-shadow 2.3.3
            : ruby-stomp 1.3.3
            : rubygem-deep-merge 1.0.1
            : rubygem-hocon 0.9.3
            : rubygem-net-ssh 2.9.2
            : shellpath 2015-09-18
            : virt-what 1.1.4

When I do a puppet run on the agent, I get the following error message:

 [root@ip-10-0-101-17 vhosts]# puppet agent -t
Notice: Local environment: 'production' doesn't match server specified node environment 'preprod', switching agent to 'preprod'.
Info: Retrieving pluginfacts
Info: Retrieving plugin
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/feature/aws.rb]/ensure: defined content as '{md5}c44c40a85419b991fb66d58130c05215'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/provider/cloudwatch_alarm]/ensure: created
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/provider/cloudwatch_alarm/v2.rb]/ensure: defined content as '{md5}8440ba6d27a0d923b79f14482382d79f'
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/provider/ec2_autoscalinggroup]/ensure: created
Notice ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-04-15 03:40:08 -0500

schowdhury gravatar image

Ok I fixed it by running the following command on the agent:

/opt/puppetlabs/puppet/bin/gem install aws-sdk-core retries

I found this command documented here:

https://github.com/puppetlabs/puppetl...

However as per documentation it says you should run this only if using Puppet Enterpise, whereas I'm using Puppet Open Source.

edit flag offensive delete link more

Comments

Yea, the documentation may be out of date with the newer versions of puppet.. Have you filed an issue?

DarylW gravatar imageDarylW ( 2016-04-15 12:01:27 -0500 )edit
0

answered 2016-04-14 13:33:53 -0500

maynero gravatar image

You need to install puppetlabs aws module to manage aws, see this link for the details and installation: https://forge.puppet.com/puppetlabs/aws

edit flag offensive delete link more

Comments

I'm pretty sure I already installed this module, using r10k. I'll check again tomorrow morning. If I did forget to do that I'm going to kick myself!

schowdhury gravatar imageschowdhury ( 2016-04-14 14:33:42 -0500 )edit

Actually, if that was the case, then wouldn't the puppetmaster fail to compile the catalog? Instead the failure appears to have happened after the agent received the catalog.

schowdhury gravatar imageschowdhury ( 2016-04-14 14:43:48 -0500 )edit

Ok I checked, and I definitely have the aws installed. I Updated my original question to reflect this.

schowdhury gravatar imageschowdhury ( 2016-04-15 02:45:36 -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: 2016-04-14 11:47:49 -0500

Seen: 983 times

Last updated: Apr 15 '16