Hi, quick question:
I have been following the thread: "Splitting classes into separate
files" and decided to to some refactoring based on that. I have the
following file structure for a module
modules/packages/manifests/init.pp
modules/packages/manifests/classes/redis.pp
~/puppet_config$ cat modules/packages/manifests/init.pp
import "redis"
~/puppet_config$ cat modules/packages/manifests/classes/redis.pp
class redis {
file {
"/home/adva/builds/redis_1.02-1_i386.deb":
ensure => present,
source => "puppet:///redis/redis_1.02-1_i386.deb";
}
file {
"/etc/redis.conf":
ensure => present;
}
package {
"redis":
require => File["/home/adva/builds/redis_1.02-1_i386.deb"],
source => "/home/adva/builds/redis_1.02-1_i386.deb",
ensure => installed,
provider => dpkg;
}
}
then in manifests/modules.pp I have
~/puppet_config$ cat manifests/modules.pp
# /etc/puppet/manifests/modules.pp
import "base_packages"
import "base_configs"
import "users"
import "sphinx"
import "gems"
import "ree"
import "nginx"
import "puppet_client"
import "packages"
puppet-ad...@servercharlie:~/puppet_config$
and in manifests/nodes.pp, I have
<--- snip --->
node 'ext-b2c-sk-test' inherits default {
include b2c_test
include sk_base
include gems_sk_all
include gems_b2c_base
include ree
include packages::redis
include nginx
include sphinx
adva_users{"application": username => "application",}
}
<--- snip --->
I'm getting the error: Could not retrieve catalog from remote server:
Error 400 on SERVER: Could not parse for environment production: No
file(s) found for import of 'redis' at
/home/puppet-admin/puppet_config/modules/packages/manifests/init.pp:2
So my question is, how do I change things in the 4 files above so that
this runs properly.
Because of the auto-load stuff mentioned in Module standards, I've also
tried changing 'include packages::redis" to 'include redis', but that
didn't work either.
Thanks in advance,
Chris
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.