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
Puppet can't find class from imported files
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
  4 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
 
Anatoliy Lisovskiy  
View profile  
 More options Jul 16 2012, 7:50 pm
From: Anatoliy Lisovskiy <wavebo...@gmail.com>
Date: Mon, 16 Jul 2012 16:50:36 -0700
Local: Mon, Jul 16 2012 7:50 pm
Subject: Puppet can't find class from imported files

Hi!
What I am doing wrong?

When I define such a way:
===========================
import "classes/*.pp"

node default{
    include ntp
    include add_admin_accounts

}

node kvm4 inherits default
{
include vm_create
}

===================

it can't find the class from the file imported file.

But when I write such way:

===========================
import "classes/*.pp"

node default{
    include ntp
    include add_admin_accounts
   include vm_create

}

node kvm4 inherits default
{

}

===================

it works fine. What I am doing wrong?


 
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.
jcbollinger  
View profile  
 More options Jul 17 2012, 9:47 am
From: jcbollinger <John.Bollin...@stJude.org>
Date: Tue, 17 Jul 2012 06:47:35 -0700 (PDT)
Local: Tues, Jul 17 2012 9:47 am
Subject: Re: Puppet can't find class from imported files

On Monday, July 16, 2012 6:50:36 PM UTC-5, Anatoliy Lisovskiy (Wavebourn)
wrote:

Using the 'import' function?

I apologize for the flippancy, but

   1. you haven't given us much to work with, and
   2. instead of using 'import', you really should be putting your classes
   into modules and relying on the autoloader.

If you want us to have any hope of troubleshooting the immediate problem
then please provide the actual error message emitted by puppet and all the
classes/*.pp files.  For best results, find a minimal set and minimal
content for the imported manifests that still exhibits the problem.

John


 
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.
Anatoliy Lisovskiy  
View profile  
 More options Jul 17 2012, 12:09 pm
From: Anatoliy Lisovskiy <wavebo...@gmail.com>
Date: Tue, 17 Jul 2012 09:09:18 -0700
Local: Tues, Jul 17 2012 12:09 pm
Subject: Re: [Puppet Users] Re: Puppet can't find class from imported files

On Tue, Jul 17, 2012 at 6:47 AM, jcbollinger <John.Bollin...@stjude.org>wrote:

Thank you John.

The problem is, when I expand the node ("kvm7" in the example) that
inherits description of another node ("default" in the example) puppet
can't find the class I add to the node ("vm_create" in the example) during
client-server transaction.  But when I add this class to the "default" node
it works fine.
"Puppet parser validate" does not complain though in both cases. It is
2.7.18 version, I did not try another one. May be I use wrong syntax, but I
can't find in documentation why it should not work: I understand that the
node that inherits another node description can be expanded by adding to
it's description additional classes, no?

Anatoliy


 
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.
jcbollinger  
View profile  
 More options Jul 18 2012, 3:15 pm
From: jcbollinger <John.Bollin...@stJude.org>
Date: Wed, 18 Jul 2012 12:15:40 -0700 (PDT)
Local: Wed, Jul 18 2012 3:15 pm
Subject: Re: [Puppet Users] Re: Puppet can't find class from imported files

On Tuesday, July 17, 2012 11:09:18 AM UTC-5, Anatoliy Lisovskiy (Wavebourn)
wrote:

> The problem is, when I expand the node ("kvm7" in the example) that
> inherits description of another node ("default" in the example) puppet
> can't find the class I add to the node ("vm_create" in the example) during
> client-server transaction.  But when I add this class to the "default" node
> it works fine.
> "Puppet parser validate" does not complain though in both cases. It is
> 2.7.18 version, I did not try another one. May be I use wrong syntax, but I
> can't find in documentation why it should not work: I understand that the
> node that inherits another node description can be expanded by adding to
> it's description additional classes, no?

Your expectations appear reasonable.  That's about all I can say at this
point.  If you want more then refer to my previous message for a
description of the information you will need to provide.

John


 
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 »