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
 
steve koppelman  
View profile  
 More options Jun 24 2008, 3:46 pm
From: steve koppelman <steve.koppel...@gmail.com>
Date: Tue, 24 Jun 2008 12:46:50 -0700 (PDT)
Local: Tues, Jun 24 2008 3:46 pm
Subject: Re: Clearly not understanding import
When I posted those files, nodes.pp was empty. Still is. Now I have
some nodes in site.pp as follows, at the end of the site.pp manifest.

node default {
        include base

}

node "foo.bar.com" inherits default {
        exec { "/usr/bin/svn up":
                cwd => "/var/spool/puppet-conf-aep/configs",
                schedule => everyfive
        }

        # I AM THE PUPPETMASTER
        service { "puppetmaster":
                ensure => running,
        enable => true,
    }
    file { "/var/spool/puppet-conf-aep":
                ensure => directory,
        }

}

#puppet.conf (default, as installed by DAG/rpmforge package)

[main]
    # Where Puppet stores dynamic and growing data.
    # The default value is '/var/puppet'.
    vardir = /var/lib/puppet

    # The Puppet log directory.
    # The default value is '$vardir/log'.
    logdir = /var/log/puppet

    # Where Puppet PID files are kept.
    # The default value is '$vardir/run'.
    rundir = /var/run/puppet

    # Where SSL certificates are kept.
    # The default value is '$confdir/ssl'.
    ssldir = $vardir/ssl

[puppetd]
    # The file in which puppetd stores a list of the classes
    # associated with the retrieved configuratiion.  Can be loaded in
    # the separate ``puppet`` executable using the ``--loadclasses``
    # option.
    # The default value is '$confdir/classes.txt'.
    classfile = $vardir/classes.txt

    # Where puppetd caches the local configuration.  An
    # extension indicating the cache format is added automatically.
    # The default value is '$confdir/localconfig'.
    localconfig = $vardir/localconfig

On Jun 24, 3:32 pm, "Evan Hisey" <ehi...@gmail.com> wrote:

> On Tue, Jun 24, 2008 at 12:40 PM, steve koppelman

> <steve.koppel...@gmail.com> 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"],
> >    }
> > }

> What does your puppet.conf look like and what is the node definition?

> Evan


 
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.