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
Message from discussion Clearly not understanding import
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
 
Brendan Beveridge  
View profile  
 More options Jun 25 2008, 9:53 pm
From: Brendan Beveridge <bren...@sitesuite.com.au>
Date: Thu, 26 Jun 2008 11:53:08 +1000
Local: Wed, Jun 25 2008 9:53 pm
Subject: Re: [Puppet Users] Clearly not understanding import
that looks like you had syntax errors in httpserver.pp

or you dont have manifestdir set

Cheers
Brendan(mrproper_)

steve koppelman wrote:
> I'm new at this. I've pored over the Quickstart and Best Practices.
> I've searched, looked through this list's archives, and here I am.

> When I run "puppet -d --parseonly site.pp on the following I get this:

> debug: importing 'base.pp'
> debug: importing 'httpserver.pp'
> err: Could not parse for environment development: Could not match
> 'class' at httpserver.pp:2

> When I take the contents of httpserver.pp and paste them into the end
> of site.pp instead, I get no errors.

> What am I doing wrong?

> Thanks.

> ------------------------------------------------------------

> #site.pp

> filebucket { main: server => puppet }

> File { backup => main }
> Exec { path => "/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin/:/
> bin:/sbin" }

> Package {
>     provider => $operatingsystem ? {
>         centos => yum,
>         redhat => up2date
>     }
> }

> schedule { everyfive:
>    period => hourly,
>    repeat => 12,
> }

> import "base"
> import "httpserver"

> -----

> # base.pp

> class base {
>    file { "/etc/passwd":
>            owner => root,
>            group => root,
>            mode  => 644,
>    }

>     host { "puppet":
>            ip     => "172.16.2.12",
>            ensure => present,
>    }

>     host { "svn":
>            alias  => ["svn.online", "svn.online.amexpub.com"],
>            ip     => "172.16.2.12",
>            ensure => present,
>    }

> }

> ---

> # httpserver.pp

> class httpserver {
>     package { "httpd":
>            ensure          => installed,
>            ensure          => running,
>            schedule        => everyfive,
>     }
>     service { "httpd":
>            subscribe => File["/etc/httpd/conf/httpd.conf"],
>     }
> }


 
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.