Hi All, By working on our bootstrap puppet scripts (executed wih standalone puppet), I found a difference between pipe and file parsing : A simple file with a content : $ cat withdollar.pp file { "/tmp/withdoller.txt": content => ''something like echo $1'' } When puppet parses the file : $ puppet withdollar.pp notice: //File[/tmp/withdoller.txt]/content: created file with contents {md5}43f1e562200b79e68ebaf15cd956eaa3 When puppet parses stdin : $ cat withdollar.pp | puppet Could not parse for environment production: Could not find value for $1 I use "puppet pipes" to bootstrap servers, something like : cat manifests/bootstrap/newserver.pp | ssh newserver sudo puppet The workaround is simple (but longer) : cat manifests/bootstrap/newserver.pp | ssh newserver "cat - > /tmp/bootstrap.pp && sudo puppet /tmp/bootstrap.pp" PS. May be my first message in this list, so : "mille mercis pour cet outil fantastique !" :-) -- Alban Peignier - alban.peignier@free.fr http://people.tryphon.org/~alban --~--~---------~--~----~------------~-------~--~----~ 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 Jan 23, 2009, at 3:14 AM, Alban Peignier wrote:> > Hi All, > > By working on our bootstrap puppet scripts (executed wih standalone > puppet), I found a difference between pipe and file parsing : > > A simple file with a content : > > $ cat withdollar.pp > file { "/tmp/withdoller.txt": > content => ''something like echo $1'' > } > > When puppet parses the file : > > $ puppet withdollar.pp > notice: //File[/tmp/withdoller.txt]/content: created file with > contents {md5}43f1e562200b79e68ebaf15cd956eaa3 > > When puppet parses stdin : > > $ cat withdollar.pp | puppet > Could not parse for environment production: Could not find value > for $1 > > I use "puppet pipes" to bootstrap servers, something like : > > cat manifests/bootstrap/newserver.pp | ssh newserver sudo puppet > > The workaround is simple (but longer) : > > cat manifests/bootstrap/newserver.pp | ssh newserver "cat - > > /tmp/bootstrap.pp && sudo puppet /tmp/bootstrap.pp"Wow, that''s, um, wow. Kinda speechless. Could it be related to shell quoting? I wouldn''t think so, because I don''t think the shell interprets the stdout, but they should behave exactly the same. Could you file this as a bug?> > PS. May be my first message in this list, so : "mille mercis pour cet > outil fantastique !" :-)/me fails to dredge up rusty Français from college Welcome to the community, and thanks. :) -- The remarkable thing about Shakespeare is that he really is very good, in spite of all the people who say he is very good. -- Robert Graves --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
On Mon, Jan 26, 2009 at 06:40:54PM -0600, Luke Kanies wrote:> > PS. May be my first message in this list, so : "mille mercis > > pour cet outil fantastique !" :-) > > > /me fails to dredge up rusty Français from collegeFor me, it''s rusty Français from all of before-college (I was raised in Canada), and I made my comprehension roll. It means "A thousand thank-yous for this fantastic utility." -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ 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 wrote:> Could it be related to shell quoting? I wouldn''t think so, because I > don''t think the shell interprets the stdout, but they should behave > exactly the same. > > Could you file this as a bug?"Yes, I can" :) http://projects.reductivelabs.com/issues/1900 -- Alban Peignier - alban.peignier@free.fr http://people.tryphon.org/~alban --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Robin Lee Powell wrote:>> "mille mercis pour cet outil fantastique !" :-) > It means "A thousand thank-yous for this fantastic utility."Exactly :) Many thanks for this great tool -- Alban Peignier - alban.peignier@free.fr http://people.tryphon.org/~alban --~--~---------~--~----~------------~-------~--~----~ 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 Jan 27, 2009, at 2:58 AM, Robin Lee Powell wrote:> > On Mon, Jan 26, 2009 at 06:40:54PM -0600, Luke Kanies wrote: >>> PS. May be my first message in this list, so : "mille mercis >>> pour cet outil fantastique !" :-) >> >> >> /me fails to dredge up rusty Français from college > > For me, it''s rusty Français from all of before-college (I was raised > in Canada), and I made my comprehension roll. It means "A thousand > thank-yous for this fantastic utility."Heh, sorry; I was trying to dredge up an appropriate response en Français and failed, I actually successfully parsed the original phrase (although I like your ''comprehension roll''). Reading is always easier than writing. :) -- I went to a restaurant that serves "breakfast at anytime". So I ordered French Toast during the Renaissance. -- Stephen Wright --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
On Wed, Jan 28, 2009 at 7:26 AM, Luke Kanies <luke@madstop.com> wrote:> Heh, sorry; I was trying to dredge up an appropriate response en > Français and failed,Would that be "de rien, et bienvenue"? --~--~---------~--~----~------------~-------~--~----~ 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 Jan 28, 2009, at 6:18 PM, Rob Chanter wrote:> > On Wed, Jan 28, 2009 at 7:26 AM, Luke Kanies <luke@madstop.com> wrote: >> Heh, sorry; I was trying to dredge up an appropriate response en >> Français and failed, > > Would that be "de rien, et bienvenue"?Oui, merci. -- True Terror is to wake up one morning and discover that your high school class is running the country. -- Kurt Vonnegut --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---