Ask Your Question
0

Class not found

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

ankur20us gravatar image

Here is my tree of the dir: image description

java.pp

image description

redis.pp

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

Comments

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

giavac gravatar imagegiavac ( 2014-02-25 05:31:16 -0500 )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 https://github.com/thomasvandoren ...(more)

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

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

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

1 Answer

Sort by ยป oldest newest most voted
4

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

llowder gravatar image

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

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

Stats

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

Seen: 175 times

Last updated: Feb 25 '14