Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
module can't find other modules
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Berry Sizemore  
View profile  
 More options Dec 6 2011, 3:13 pm
From: Berry Sizemore <berry.sizem...@gmail.com>
Date: Tue, 6 Dec 2011 12:13:36 -0800 (PST)
Local: Tues, Dec 6 2011 3:13 pm
Subject: module can't find other modules
I have these three modules with the following structure:

|-- modules
|   |-- create_resources
|   |   |-- LICENSE
|   |   |-- Modulefile
|   |   |-- README
|   |   |-- lib
|   |   |   `-- puppet
|   |   |       `-- parser
|   |   |           `-- functions
|   |   |               `-- create_resources.rb
|   |   |-- spec
|   |   |   |-- spec.opts
|   |   |   |-- spec_helper.rb
|   |   |   `-- unit
|   |   |       `-- puppet
|   |   |           `-- parser
|   |   |               `-- functions
|   |   |                   `-- create_resources_spec.rb
|   |   `-- tests
|   |       `-- users.pp
|   |-- hiera
|   |   |-- CHANGES.txt
|   |   |-- COPYING
|   |   |-- README.md
|   |   |-- Rakefile
|   |   |-- bin
|   |   |   `-- extlookup2hiera
|   |   |-- example
|   |   |   |-- README.md
|   |   |   |-- etc
|   |   |   |   |-- hiera.yaml
|   |   |   |   |-- hieradb
|   |   |   |   |   |-- common.yaml
|   |   |   |   |   |-- dc1.yaml
|   |   |   |   |   `-- development.yaml
|   |   |   |   `-- puppet.conf
|   |   |   |-- modules
|   |   |   |   |-- data
|   |   |   |   |   `-- manifests
|   |   |   |   |       `-- common.pp
|   |   |   |   |-- ntp
|   |   |   |   |   |-- manifests
|   |   |   |   |   |   |-- config.pp
|   |   |   |   |   |   `-- data.pp
|   |   |   |   |   `-- templates
|   |   |   |   |       `-- ntp.conf.erb
|   |   |   |   `-- users
|   |   |   |       `-- manifests
|   |   |   |           |-- common.pp
|   |   |   |           |-- dc1.pp
|   |   |   |           `-- development.pp
|   |   |   `-- site.pp
|   |   |-- lib
|   |   |   |-- hiera
|   |   |   |   |-- backend
|   |   |   |   |   `-- puppet_backend.rb
|   |   |   |   `-- scope.rb
|   |   |   `-- puppet
|   |   |       `-- parser
|   |   |           `-- functions
|   |   |               |-- hiera.rb
|   |   |               |-- hiera_array.rb
|   |   |               |-- hiera_hash.rb
|   |   |               `-- hiera_include.rb
|   |   `-- spec
|   |       |-- spec.opts
|   |       |-- spec_helper.rb
|   |       `-- unit
|   |           |-- puppet_backend_spec.rb
|   |           `-- scope_spec.rb
|   `-- tomcat
|       |-- files
|       |   `-- war
|       |       |-- jenkins_1.423.war
|       |       |-- jenkins_1.424.war
|       |       |-- jenkins_1.425.war
|       |       |-- snoop-servlet.war
|       |       |-- snoop-servlet_1.0.war
|       |       `-- snoop-servlet_2.0.war
|       |-- manifests
|       |   |-- demo.pp
|       |   |-- init.pp
|       |   |-- instance.pp
|       |   `-- war.pp
|       |-- templates
|       |   |-- server.xml.erb
|       |   |-- start.sh.erb
|       |   `-- stop.sh.erb
|       `-- tests
|           `-- init.pp

Puppet apply gives the following:

[root@puppetmaster puppet]# puppet apply -vd --noop modules/tomcat/
tests/init.pp
info: Loading facts in facter_dot_d
info: Loading facts in facter_dot_d
warning: Could not retrieve fact fqdn
warning: Host is missing hostname and/or domain: puppetmaster
debug: importing '/etc/puppetlabs/puppet/modules/tomcat/manifests/
init.pp' in environment production
debug: Automatically imported tomcat from tomcat into production
debug: Failed to load library 'selinux' for feature 'selinux'
debug: hiera(): Hiera YAML backend starting
debug: hiera(): Looking up tomcat_instance in YAML backend
debug: hiera(): Looking for data source puppetmaster
debug: importing '/etc/puppetlabs/puppet/modules/tomcat/manifests/
instance.pp' in environment production
debug: Automatically imported tomcat::instance from tomcat/instance
into production
warning: Could not find class create_resources for puppetmaster
Could not find class create_resources at /etc/puppetlabs/puppet/
modules/tomcat/tests/init.pp:3 on node puppetmaster

Init.pp looks like this in tests:

[root@puppetmaster puppet]# cat modules/tomcat/tests/init.pp
node default {
        include tomcat
        include create_resources
        include hiera

}

I don't understand why my class doesn't find the other classes.  Can
anyone shed some light?

Thanks,
Berry Sizemore


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron Grewell  
View profile  
 More options Dec 6 2011, 4:27 pm
From: Aaron Grewell <aaron.grew...@gmail.com>
Date: Tue, 6 Dec 2011 13:27:43 -0800
Local: Tues, Dec 6 2011 4:27 pm
Subject: Re: [Puppet Users] module can't find other modules
Hi Berry,
create_resources doesn't have an init.pp so you can't 'include' it
AFAIK.  As long as you've enabled pluginsync you shouldn't have to
include it, it should just work.

On Tue, Dec 6, 2011 at 12:13 PM, Berry Sizemore


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »