Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th June 2013, 19:51
egulik1 egulik1 is offline
Junior Member
 
Join Date: Aug 2012
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
 
Default could not find class - puppet 2.7

Hello,

I'm using puppet-2.7.10-1 on CentOs 6.3, working on new module and I'm following this structure:

opendkim/
├── files
│ └── etc
│ └── opendkim
│ └── keys
├── manifests
│ ├── config.pp
│ ├── init.pp
│ ├── install.pp
│ ├── params.pp
│ └── service.pp
└── templates
└── etc
├── init.d
│ └── opendkim.erb
└── opendkim
├── KeyTable.erb
├── opendkim.conf.erb
├── SigningTable.erb

Code:
opendkim/manifests/init.pp

 # Class: opendkim
 #
 # This class installs opendkim
 #
 # Actions:
 #   Installs opendkim
 class opendkim {

    include opendkim::install
    include opendkim::params
    include opendkim::config
    include opendkim::service
}
Code:
manifests/nodes.pp

node 'hostname' { include opendkim }
and when I run puppet agent --test I get this:

Code:
$ sudo puppet agent --test
err: Could not retrieve catalog from remote server:
Error 400 on SERVER: Could not find class opendkim for hostname at
/etc/puppet/manifests/nodes.pp:13 on node hostname warning:
Not using cache on failed catalog err: Could not
retrieve catalog; skipping run

Another odd thing is that in order to make it work I have to specify class in /etc/puppet/manifests/site.pp file where is completely different from the following approach:

<module-name>
├── manifests
│ ├── config.pp
│ ├── init.pp
│ ├── install.pp
│ ├── params.pp
│ └── service.pp

Is there a place where you can define where to put classes or puppet should be smart enough to recognize statement "class <class-name>" in every .pp file ?
I was hoping that someone could shed some light on my issue or point me somewhere.
Thanks
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3.0.3.3 Autoresponder, adding subdomain problem BlackHat Installation/Configuration 4 18th October 2011 14:24
Cron issue in Debian 6 Nolan Installation/Configuration 6 18th April 2011 16:36
Error in ISPConfig Cron - Log creabel Installation/Configuration 2 20th January 2011 17:37
Error 12 Invalid Device blinx Installation/Configuration 0 15th January 2011 05:27
Upgraded to ISPConfig-2.2.35, lost /root/ispconfig/httpd etc deerhuntre Installation/Configuration 6 5th May 2010 16:56


All times are GMT +2. The time now is 22:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.