We have a client-server puppetmaster  running puppetd and
puppetmasterd,
however I would like to test configurations locally before committing
the changes
on the puppetmaster.

Running the puppet config locally with /usr/bin/puppet mostly works.

The thing that fails ( which I have commented out on my local copy to
test everything else )
is a  erb template for puppet.conf that includes:

    server = <%= servername %>

with the error:

Failed to parse template puppet/puppet.conf.erb: Could not find value
for 'servername'

It makes sense that no longer running a puppetmasterd that servername
is undefined.
But is there any way I can define it so that I can run the same
configuration files
both locally standalone and client/server ?

( I tried "--servername=" but that's not a config variable so it
doesn't like that. )

Alternatively: is there a way to make part of the code conditional on
running in stand
alone mode.

The point of all this is to be able to test my changes locally before
committing them
to subversion and updating them on the puppetmaster -- that would be
more difficult
if I have to maintain different versions of the same file.

-- Steve Majewski / UVA Alderman Library

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