Hello, I''m building some modules for a standalone client. At some point, it may be that this machine will get its configuration from a puppetmaster, but for now its not necessary. One thing that is giving me fits is that I can''t figure out what to use as a file''s source. If I use puppet:// or file://, then puppet says it can''t find the filebucket. (which doesn''t surprise me - there''s no server to connect to.) On the other hand, if I just say source => "exim/files/exim.conf", for example, it says err: Could not create... Parameter source failed: Got other URL type ''''... So I would imagine this is something well settled, but I''m baffled. I''d like to find a way to get this to work with the standalone client, preferably through puppet.conf or fileserve.conf, so that if this module is later running on a puppetmaster, it still works. Any thoughts? Thanks, Mike --~--~---------~--~----~------------~-------~--~----~ 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 22, 2009, at 1:25 AM, Michael Semcheski wrote:> > Hello, > > I''m building some modules for a standalone client. At some point, it > may be that this machine will get its configuration from a > puppetmaster, but for now its not necessary. > > One thing that is giving me fits is that I can''t figure out what to > use as a file''s source. If I use puppet:// or file://, then puppet > says it can''t find the filebucket. (which doesn''t surprise me - > there''s no server to connect to.) On the other hand, if I just say > source => "exim/files/exim.conf", for example, it says err: Could not > create... Parameter source failed: Got other URL type ''''... > > So I would imagine this is something well settled, but I''m baffled. > I''d like to find a way to get this to work with the standalone client, > preferably through puppet.conf or fileserve.conf, so that if this > module is later running on a puppetmaster, it still works. > > Any thoughts? Thanks, > > MikeDid you try using: source => "puppet:///filehere" And then put that file in the file directory of the module? Regards --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
2009/6/21 Bjørn Dyresen <bjorn@dyresen.net>:> Did you try using: > > source => "puppet:///filehere" > > And then put that file in the file directory of the module?I did, and it says "Could not find filebucket main at ..." --~--~---------~--~----~------------~-------~--~----~ 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 Mon, Jun 22, 2009 at 12:43 AM, Michael Semcheski<mhsemcheski@gmail.com> wrote:> 2009/6/21 Bjørn Dyresen <bjorn@dyresen.net>: >> Did you try using: >> >> source => "puppet:///filehere" >> >> And then put that file in the file directory of the module? > > I did, and it says "Could not find filebucket main at ..."Just to clarify something, I have in puppet.conf "bucketdir /root/modules". In fileserver.conf, I have "path /root/modules". In my module, I''ve tried every permutation of relative path, leading slash, and path from / (root) that I can think of. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I had the impression that puppetd was required to serve up files. My local puppet only configs used hard pathnames to a local cache I create. On Mon, Jun 22, 2009 at 12:43:59AM -0400, Michael Semcheski wrote:> > 2009/6/21 Bj?rn Dyresen <bjorn@dyresen.net>: > > Did you try using: > > > > source => "puppet:///filehere" > > > > And then put that file in the file directory of the module? > > I did, and it says "Could not find filebucket main at ..." > > >------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 --~--~---------~--~----~------------~-------~--~----~ 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 22, 2009, at 6:46 AM, Michael Semcheski wrote:> > On Mon, Jun 22, 2009 at 12:43 AM, Michael > Semcheski<mhsemcheski@gmail.com> wrote: >> 2009/6/21 Bjørn Dyresen <bjorn@dyresen.net>: >>> Did you try using: >>> >>> source => "puppet:///filehere" >>> >>> And then put that file in the file directory of the module? >> >> I did, and it says "Could not find filebucket main at ..." > > Just to clarify something, I have in puppet.conf "bucketdir > /root/modules". In fileserver.conf, I have "path /root/modules". > > In my module, I''ve tried every permutation of relative path, leading > slash, and path from / (root) that I can think of. >Hi, Sorry, What I should say was source => "puppet:///modulename/filenamehere" Note that when you are serving files from the modules built inn fileserver you have to use three "/" Then your modulespath need to be correct and point to your modules basedir. Thats pretty much it for modules You don''t need to have anything in fileserver.conf for modules. This is all documented here: http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation Regards --~--~---------~--~----~------------~-------~--~----~ 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 22, 2009, at 7:12 AM, Russell Adams wrote:> > > On Mon, Jun 22, 2009 at 12:43:59AM -0400, Michael Semcheski wrote: >> >> 2009/6/21 Bj?rn Dyresen <bjorn@dyresen.net>: >>> Did you try using: >>> >>> source => "puppet:///filehere" >>> >>> And then put that file in the file directory of the module? >> >> I did, and it says "Could not find filebucket main at ..." >> >>> > > > I had the impression that puppetd was required to serve up files. My > local puppet only configs used hard pathnames to a local cache I > create.No, If you are serving files from modules and are specifing source by: source => "puppet:///modulename/filename" and are putting that file in the filedir of the module it should work. Although I don''t know anything about the internal mechanism about this I do this at a regular basis while developing modules. There is also docs mentioning this here: http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Right. I think the difference here is none of my code is in modules, its just flat. Its good to know I could convert it that way. Thanks. On Mon, Jun 22, 2009 at 11:20:09AM +0200, Bj?rn Dyresen wrote:> > On Jun 22, 2009, at 7:12 AM, Russell Adams wrote: > > > > > > > On Mon, Jun 22, 2009 at 12:43:59AM -0400, Michael Semcheski wrote: > >> > >> 2009/6/21 Bj?rn Dyresen <bjorn@dyresen.net>: > >>> Did you try using: > >>> > >>> source => "puppet:///filehere" > >>> > >>> And then put that file in the file directory of the module? > >> > >> I did, and it says "Could not find filebucket main at ..." > >> > >>> > > > > > > I had the impression that puppetd was required to serve up files. My > > local puppet only configs used hard pathnames to a local cache I > > create. > > No, > > If you are serving files from modules and are specifing source by: > > source => "puppet:///modulename/filename" > > and are putting that file in the filedir of the module it should work. > Although I don''t know anything about the internal mechanism about this > I do this at a regular basis while developing modules. There is also > docs mentioning this here: > > http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation > > > > >------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
For the sake of posterity or anyone who might have a similar problem to the one that I had (at the beginning of this thread...) I had copied my basic puppet manifests and modules from a setup that used a puppetmaster. In my site.pp, there was a "File { backup => main }" declaration which screwed up the filebucket for the standalone client. In short, duh. But, I was looking for the error somewhere in the module or module configuration, and never bothered to look in site.pp. On Mon, Jun 22, 2009 at 5:24 AM, Russell Adams<RLAdams@adamsinfoserv.com> wrote:> > Right. I think the difference here is none of my code is in modules, > its just flat. Its good to know I could convert it that way. > > Thanks. > > On Mon, Jun 22, 2009 at 11:20:09AM +0200, Bj?rn Dyresen wrote: >> >> On Jun 22, 2009, at 7:12 AM, Russell Adams wrote: >> >> > >> > >> > On Mon, Jun 22, 2009 at 12:43:59AM -0400, Michael Semcheski wrote: >> >> >> >> 2009/6/21 Bj?rn Dyresen <bjorn@dyresen.net>: >> >>> Did you try using: >> >>> >> >>> source => "puppet:///filehere" >> >>> >> >>> And then put that file in the file directory of the module? >> >> >> >> I did, and it says "Could not find filebucket main at ..." >> >> >> >>> >> > >> > >> > I had the impression that puppetd was required to serve up files. My >> > local puppet only configs used hard pathnames to a local cache I >> > create. >> >> No, >> >> If you are serving files from modules and are specifing source by: >> >> source => "puppet:///modulename/filename" >> >> and are putting that file in the filedir of the module it should work. >> Although I don''t know anything about the internal mechanism about this >> I do this at a regular basis while developing modules. There is also >> docs mentioning this here: >> >> http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation >> >> >> >> > > > > ------------------------------------------------------------------ > Russell Adams RLAdams@AdamsInfoServ.com > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---