Hi, I''m pretty sure I once did some experiments with running puppet wihtout a puppertmasterd - but having a "normal" puppet manifests and modules structure in /etc/puppet. Sadly, I can''t find how to do that anymore. I know I can write plain puppet instructions in a file.pp and run them plainly - but I want the whole config as if it would reside on a server) When I run "puppet /etc/manifests/site.pp" I get onloy import errors. When I run puppetd it only complains that it cannot access any server. I''m probably missing something very simple and stupid... Ideas? Thanks, Henning -- Henning Sprang http://www.sprang.de -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Julian Simpson
2010-Jun-04 22:15 UTC
Re: [Puppet Users] running puppet withput puppetmasterd
> When I run "puppet /etc/manifests/site.pp" I get onloy import errors. > When I run puppetd it only complains that it cannot access any server.Try adding a --modulepath to the puppet command line. You may need to tweak your manifests: make sure that file urls are of the form puppet:///some/path.>J. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Henning Sprang
2010-Jun-05 12:06 UTC
Re: [Puppet Users] running puppet withput puppetmasterd
On Sat, Jun 5, 2010 at 12:15 AM, Julian Simpson <simpsonjulian@gmail.com> wrote:> Try adding a --modulepath to the puppet command line. You may need to tweak > your manifests: make sure that file urls are of the form > puppet:///some/path.Thanks! But somehow I felt that wasn''t what I was doing back then and searched again, this time I found immediately what I didn''t find searching for an hour before: http://www.rustyrazorblade.com/2010/04/puppet-stand-alone-templates-configs/ so, you(or, I ;) ) have to run puppet site.pp directly from /etc/puppet/manifests Now I''m checking if I even could run that somehow if the manifests/modules/... structure is somewhere else, e.g. on an nfs mount. Henning -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Henning Sprang
2010-Jun-05 13:30 UTC
Re: [Puppet Users] running puppet withput puppetmasterd
On Sat, Jun 5, 2010 at 2:06 PM, Henning Sprang <henning.sprang@gmail.com> wrote:> Now I''m checking if I even could run that somehow if the > manifests/modules/... structure is somewhere else, e.g. on an nfs > mount.Actually, only this last thing (and that was what I wanted to do first) is what really requires to set the confdir explicitly, like cd /path/to/puppet/dir/manifests puppet --confdir /path/to/puppet/dir site.pp or without cd''ing in the manifests dir: puppet --confdir /path/to/puppet/dir /path/to/puppet/dir/site.pp running puppet /etc/puppet/manifests/site.pp runs just like this, I must have made something wrong elsewhere. Henning -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Julian Simpson
2010-Jun-05 13:41 UTC
Re: [Puppet Users] running puppet withput puppetmasterd
> > Actually, only this last thing (and that was what I wanted to do > first) is what really requires to set the confdir explicitly, like > > cd /path/to/puppet/dir/manifests > > puppet --confdir /path/to/puppet/dir site.pp > > or without cd''ing in the manifests dir: > > puppet --confdir /path/to/puppet/dir /path/to/puppet/dir/site.pp > > running > > puppet /etc/puppet/manifests/site.pp > > runs just like this, I must have made something wrong elsewhere. > >this is what works for me: namespace :puppet do puppetmaster= ''redacted.juliansimpson.org'' args = " --modulepath #{root}/etc/puppet/modules " args += " --templatedir #{root}/etc/templates " args += " --environment development " task :test do sh "cd etc/puppet && puppet #{args} --parseonly manifests/site.pp" sh "cd etc/puppet && puppet #{args} --noop manifests/site.pp --debug" end desc "run the puppet stuff" task :run do sh "cd etc/puppet && puppet #{args} manifests/site.pp" end where #{root} is root=File.dirname(__FILE__) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jun 5, 2010, at 5:06 AM, Henning Sprang wrote:> On Sat, Jun 5, 2010 at 12:15 AM, Julian Simpson <simpsonjulian@gmail.com> wrote: >> Try adding a --modulepath to the puppet command line. You may need to tweak >> your manifests: make sure that file urls are of the form >> puppet:///some/path. > > Thanks! > > But somehow I felt that wasn''t what I was doing back then and searched > again, this time I found immediately what I didn''t find searching for > an hour before: > > http://www.rustyrazorblade.com/2010/04/puppet-stand-alone-templates-configs/ > > so, you(or, I ;) ) have to run > > puppet site.pp > > directly from /etc/puppet/manifests > > Now I''m checking if I even could run that somehow if the > manifests/modules/... structure is somewhere else, e.g. on an nfs > mount.You could just mount the nfs mount on to /etc/puppet/modules/ Also, I''ve heard that some people have luck rsyncing the modules folder to the local machine. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.