Ask Your Question

Class not found

asked 2014-02-25 05:11:49 -0600

ankur20us gravatar image

Here is my tree of the dir: image description


image description


image description

Now site.pp is this :

image description

I am getting the error at include redis line in site.pp saying "could not find declared class redis..."

I am new in puppet and don't know what I am missing?

edit retag flag offensive close merge delete


What's in puppet-redis/manifests/init.pp?

giavac gravatar imagegiavac ( 2014-02-25 05:31:16 -0600 )edit

I want to use the puppet-redis module, to install the redis cache in the puppet agent, Now the file you are talking about is the file ...(more)

ankur20us gravatar imageankur20us ( 2014-02-25 05:40:56 -0600 )edit

Try adding also "import classes/puppet-redis/*.pp"

giavac gravatar imagegiavac ( 2014-02-25 06:25:01 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-25 10:54:43 -0600

llowder gravatar image

updated 2014-02-25 10:59:14 -0600

Rename the puppet-redis directory to redis.

The use of import is NOT recommended. It looks like you installed the module via the tarball instead of using the puppet module tool, which performs this renaming step for you.

Also, your module layout is off. Take a look at the docs on modules and specifically the section on module layout.

I would also recommend you read through, and follow the steps in the Learning Puppet Series.

edit flag offensive delete link more

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


Asked: 2014-02-25 05:11:49 -0600

Seen: 188 times

Last updated: Feb 25 '14