No luck with 2.6.1rc2:

err: /Stage[main]/Webserver/File[/var/www/company.com/html]: Failed to
generate additional resources using 'eval_generate': Error 400 on
SERVER: Fileset paths must be fully qualified

Here's how I run Puppet for testing (works great with 0.24.8):

#! /bin/sh -e

SERVERHOST=${SERVERHOST:-localhost}

ENVIRONMENT=${ENVIRONMENT:-default}

DIR=$(pwd)/$(dirname $0)
if test "${DIR%/.}" != "$DIR"; then
    DIR=$(dirname $DIR)
fi

EXTRA_ARGS=$*

run_puppet() {
    echo DIR=$DIR
    parent=$(dirname $DIR)
    echo parent=$parent
    sed -e "s#%%PWD%%#$DIR#" $DIR/puppet.conf.in > $DIR/puppet.conf
    sed -e "s#%%CONF%%#$parent#" $DIR/fileserver.conf.in > $DIR/fileserver.conf
    echo Running puppetmasterd
    COMMON_OPTIONS="--masterport=8840 --confdir=$DIR -l console"
    if test -n "$DEBUG"; then
        COMMON_OPTIONS="$COMMON_OPTIONS -d"
    fi
    sudo puppetmasterd --certname localhost
--pidfile=$DIR/run/puppetmasterd.pid -v $COMMON_OPTIONS
    sleep 1
    echo Running puppetd
    sudo puppetd --no-daemonize --environment $ENVIRONMENT --server
localhost --node_name $(hostname) --test $COMMON_OPTIONS $EXTRA_ARGS
2>&1 | grep -v "hostname was not match with the server certificate"
    echo Killing puppetmasterd
    sudo kill $(cat $DIR/run/puppetmasterd.pid)
}

run_puppet


Here are the configuration files:

$ cat puppet.conf.in
[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=%%PWD%%/ssl
http_enable_post_connection_check=false

[puppetmasterd]
templatedir=%%PWD%%/templates
manifestdir=%%PWD%%/manifests
libdir=%%PWD%%/lib

[puppetd]
server=localhost
statedir=%%PWD%%/state
factpath=%%PWD%%/facts

$ cat fileserver.conf.in
[conf]
  path %%CONF%%
  allow *

I do this to validate the setup before deploying the new Puppet version.
-- 
Jean-Baptiste Quenot

-- 
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.

Reply via email to