Andreas Unterkircher
2008-Aug-06 11:58 UTC
[Puppet Users] when using multiple environments puppetmaster does not find files in modules
Hello list, Just want to clarify if I make something wrong here or if I hit a bug with modules & environments. The following situation - a puppetmaster with three environments defined: * prod, modulepath=/srv/puppet-modules/prod * test, modulepath=/srv/puppet-modules/test * devel, modulepath=/srv/puppet-modules/devel There is now the module "module1". In its files-directory there is one file called "testfile". This file is only available in the devel-environment. Test & prod have not got it right now. So its exact position in the filesytem is: /srv/puppet-modules/devel/module1/files/testfile This module1 uses a manifest that wants to distribute this file by the following: file { "/tmp/testfile": source => ["puppet:///module1/testfile"], ensure => present, owner => root, group => root, } Also this modification to the manifest is only present in the devel-environment - test & prod do not know about it yet. "testfile" contains a simple unix-timestamp. Now I''m are going to run puppetd manually with: sudo puppetd --test --splaylimit 0 --environment devel but it fails with: warning: //Node[lnx-vie-430]/module1/File[/testfile]/ensure: No specified sources exist If I put "testfile" into the "module1" files-directory within the prod-environment too, but leave the manifest in prod untouched, it works - puppetmaster finds the file while we still query environment=devel. There is another puppetmaster running on a different port too which does not use environments at all, but is configured to: modulepath=/srv/puppet-modules/devel A manual puppetd run against this other puppetmaster works with: sudo puppetd --test --splaylimit 0 --masterport xxxx It finds the testfile in the "devel-environment" immediately. I suspect that this puppetmaster with environments only looks into the prod-environment (it''s the first one defined in puppet.conf) while I''m asking it to serve from devel. Strangely enough it works with templates - they got addressed within the environment correctly. puppetmaster & puppet client are both at 0.24.4. Regards, Andreas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-Aug-11 22:24 UTC
[Puppet Users] Re: when using multiple environments puppetmaster does not find files in modules
On Aug 6, 2008, at 6:58 AM, Andreas Unterkircher wrote:> I suspect that this puppetmaster with environments only looks into the > prod-environment (it''s the first one defined in puppet.conf) while I''m > asking it to serve from devel. > > Strangely enough it works with templates - they got addressed within > the environment correctly. > > puppetmaster & puppet client are both at 0.24.4.Have you looked to see whether this was a filed bug that was closed in 0.24.5, or maybe is a filed bug that''s still not closed? I don''t specifically remember a bug in this area, but if it''s clearly not working for you and it hasn''t been filed, it should be. -- Today at work an ethernet switch decided to take the ''N'' out of NVRAM -- Richard Letts --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Evan Hisey
2008-Aug-13 14:11 UTC
[Puppet Users] Re: when using multiple environments puppetmaster does not find files in modules
> > Also this modification to the manifest is only present in the > devel-environment - test & prod do not know about it yet. "testfile" > contains a simple unix-timestamp. > > Now I''m are going to run puppetd manually with: > > sudo puppetd --test --splaylimit 0 --environment devel > > but it fails with: > > warning: //Node[lnx-vie-430]/module1/File[/testfile]/ensure: No > specified sources exist > > If I put "testfile" into the "module1" files-directory within the > prod-environment too, but leave the manifest in prod untouched, it > works - puppetmaster finds the file while we still query > environment=devel. >This is strange as I have things working well with both files and templates in modules using environments. My first though is that maybe you do not have environments set quite right. As a side note you do not need to use splaylimit with --test. Puppetd --test is an immediate run of puppetd. Can you post teh puppetmaster and puppetd puppet.conf files? Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Andreas Unterkircher
2008-Aug-14 06:03 UTC
[Puppet Users] when using multiple environments puppetmaster does not find files in modules
Hi Evan,> As a side note you do > not need to use splaylimit with --test. Puppetd --test is an > immediate run of puppetd.You are right, it seems to be not more necessary. I remember it was in past but it looks like that it has been fixed in the meantime. But I''m a creature of habit :-)> Can you post teh puppetmaster and puppetd puppet.conf files?Sure, here is puppetmaster.conf: [main] ssldir=/var/lib/puppet/ssl logdir=/var/log/puppet environments=prod,test,devel [prod] modulepath=/srv/puppet-modules/prod [test] modulepath=/srv/puppet-modules/test [devel] modulepath=/srv/puppet-modules/devel [puppetmasterd] autosign=true And here the lines of a puppet.conf: [main] logdir=/var/log/puppet vardir=/var/lib/puppet rundir=/var/run [puppetd] server=our.puppet.server listen=true factsync = true syslogfacility = local3 splay=true environments=prod,test,devel Cheers, Andreas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---