I have the following in my site.pp node "pclient.example.com" inherits default {} When I try to start puppetmaster it gives me the following error Starting puppetmaster: Syntax error at ''pclient.example.com'' at /etc/puppet/manifests/site.pp:24 When I change the node declaration to this node ''pclient.example.com'' inherits default {} puppetmaster starts up fine. Is there a special difference between single quotes and double quotes within puppet? --------------------------------- Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Jul 5, 2007, at 11:58 AM, Brent Clements wrote:> I have the following in my site.pp > > node "pclient.example.com" inherits default {} > > When I try to start puppetmaster it gives me the following error > > Starting puppetmaster: Syntax error at ''pclient.example.com'' at / > etc/puppet/manifests/site.pp:24 > > When I change the node declaration to this > > node ''pclient.example.com'' inherits default {} > > puppetmaster starts up fine. > > Is there a special difference between single quotes and double > quotes within puppet?Hmm, I thought I''d changed that so that double quotes are also legal. It''s kind of a weird situation. If you use double quotes, then you''d expect variables to get interpolated, but they won''t, because the string is evaluated at parse time, not run time. So, it always behaves like it''s single quoted, even when double quoted. I suppose the lack of support for double quotes is a bug, though. -- A motion to adjourn is always in order. --Robert Heinlein --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 05 July 2007, Luke Kanies wrote:> On Jul 5, 2007, at 11:58 AM, Brent Clements wrote: > > I have the following in my site.pp > > > > node "pclient.example.com" inherits default {} > > > > When I try to start puppetmaster it gives me the following error > > > > Starting puppetmaster: Syntax error at ''pclient.example.com'' at / > > etc/puppet/manifests/site.pp:24 > > > > When I change the node declaration to this > > > > node ''pclient.example.com'' inherits default {} > > > > puppetmaster starts up fine. > > > > Is there a special difference between single quotes and double > > quotes within puppet? > > Hmm, I thought I''d changed that so that double quotes are also legal. > > It''s kind of a weird situation. If you use double quotes, then you''d > expect variables to get interpolated, but they won''t, because the > string is evaluated at parse time, not run time. So, it always > behaves like it''s single quoted, even when double quoted.You could throw a warning, if you find unquoted $ in the hostname. That would follow the principle of least surprise. Regards, David - -- - - hallo... wie gehts heute? - - *hust* gut *rotz* *keuch* - - gott sei dank kommunizieren wir über ein septisches medium ;) -- Matthias Leeb, Uni f. angewandte Kunst, 2005-02-15 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGjeyj/Pp1N6Uzh0URAjaBAJ9Q34bnF1LGehgOCbpznNXepTEaiwCgoX84 H/HSsHi68MXYX1mp2gUvMpU=11MW -----END PGP SIGNATURE-----
On Jul 6, 2007, at 2:17 AM, David Schmitt wrote:> You could throw a warning, if you find unquoted $ in the hostname. > That would > follow the principle of least surprise.Anyone willing to apply this fix? Or at least file the bug? -- Life is like playing a violin in public and learning the instrument as one goes on. -- Samuel Butler --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
And hence the problem with OpenSource :-) Luke Kanies <luke@madstop.com> wrote: On Jul 6, 2007, at 2:17 AM, David Schmitt wrote:> You could throw a warning, if you find unquoted $ in the hostname. > That would > follow the principle of least surprise.Anyone willing to apply this fix? Or at least file the bug? -- Life is like playing a violin in public and learning the instrument as one goes on. -- Samuel Butler --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users --------------------------------- It''s here! Your new message! Get new email alerts with the free Yahoo! Toolbar. _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Just so that I don''t offend anyone. What I meant was. It''s hard to find people willing to supply patches to an opensource project because most of us(with exception) are just users of the product rather than developers that can help out and actually do the coding. Though I''d be willing to best 99% of the users of the product wish they could contribute code. Brent Clements <brent_puppet_ml@yahoo.com> wrote: And hence the problem with OpenSource :-) Luke Kanies <luke@madstop.com> wrote: On Jul 6, 2007, at 2:17 AM, David Schmitt wrote:> You could throw a warning, if you find unquoted $ in the hostname. > That would > follow the principle of least surprise.Anyone willing to apply this fix? Or at least file the bug? -- Life is like playing a violin in public and learning the instrument as one goes on. -- Samuel Butler --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users --------------------------------- It''s here! Your new message! Get new email alerts with the free Yahoo! Toolbar._______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users --------------------------------- Sick sense of humor? Visit Yahoo! TV''s Comedy with an Edge to see what''s on, when. --------------------------------- TV dinner still cooling? Check out "Tonight''s Picks" on Yahoo! TV. _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Jul 6, 2007, at 9:43 AM, Brent Clements wrote:> Just so that I don''t offend anyone. What I meant was. It''s hard to > find people willing to supply patches to an opensource project > because most of us(with exception) are just users of the product > rather than developers that can help out and actually do the > coding. Though I''d be willing to best 99% of the users of the > product wish they could contribute code.Why can''t you contribute code? I don''t understand. I''m by no means a C developer, but I was able to contribute plenty of patches to Cfengine, and although Puppet''s code paths are never as clean as I would like, they can''t hold a candle to Cfengine''s code labyrinth. In the two years I worked heavily on and with Cfengine, I went from being afraid of C and large programs to being confident enough to write my own, and all it took was my trying. Sure, this bit is a modification of the parser, but it''s not as hard as you apparently fear, and Ruby is an insanely approachable language. Most of the rest of Puppet is pretty darn approachable, especially for those areas most people are interested in, like adding and modifying providers. Check the code out, then spend half an hour looking around, seeing if you can fix some of the things that annoy you. The worst you''ll lose is half an hour, but you might gain both the features you''re dreaming about and the ability to start bugging other people about how easy it is to contribute. :) -- Sabbagh''s Second Law: The biggest problem with communication is the illusion that it has occurred. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
My apologies. I was making more of a general statement rather than implying specifics. Luke Kanies <luke@madstop.com> wrote: On Jul 6, 2007, at 9:43 AM, Brent Clements wrote:> Just so that I don''t offend anyone. What I meant was. It''s hard to > find people willing to supply patches to an opensource project > because most of us(with exception) are just users of the product > rather than developers that can help out and actually do the > coding. Though I''d be willing to best 99% of the users of the > product wish they could contribute code.Why can''t you contribute code? I don''t understand. I''m by no means a C developer, but I was able to contribute plenty of patches to Cfengine, and although Puppet''s code paths are never as clean as I would like, they can''t hold a candle to Cfengine''s code labyrinth. In the two years I worked heavily on and with Cfengine, I went from being afraid of C and large programs to being confident enough to write my own, and all it took was my trying. Sure, this bit is a modification of the parser, but it''s not as hard as you apparently fear, and Ruby is an insanely approachable language. Most of the rest of Puppet is pretty darn approachable, especially for those areas most people are interested in, like adding and modifying providers. Check the code out, then spend half an hour looking around, seeing if you can fix some of the things that annoy you. The worst you''ll lose is half an hour, but you might gain both the features you''re dreaming about and the ability to start bugging other people about how easy it is to contribute. :) -- Sabbagh''s Second Law: The biggest problem with communication is the illusion that it has occurred. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users --------------------------------- Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Jul 6, 2007, at 12:09 PM, Brent Clements wrote:> My apologies. I was making more of a general statement rather than > implying specifics.I understand that, and I didn''t mean "you" specifically. I''ve just found that the biggest difference between those who can contribute code and those who can''t is that those who can have tried to do so, and those who can''t have not. I think most of you would be surprised at how easy it is to contribute. Remember, good judgement comes from experience, and experience comes from bad judgement. The only way to get good at something is to be wrong as often and as spectacularly as possible. I think I''m pretty patient with users, but I''m fabulously patient with developers -- I really want others helping with the code base, and I''ll gladly walk you through any patches you provide, providing feedback and advice. Feel free to ping, say, Jeff McCune or Matt Palmer if you have doubts. Both of them started in the community with no apparent plans to develop, yet both of them have added significant functionality to the code base. That being said, if anyone has any recommendations on things I can do to make it easier to contribute, I''m all ears. Feel free to email me directly if you prefer. One thing I think would help is to convert to a distributed version control system, since SVN and its ilk make it harder to maintain your own branches while you''re experimenting. -- The brain is a wonderful organ. It starts working the moment you get up in the morning and does not stop until you get into the office. --Robert Frost --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On Jul 6, 2007, at 1:58 PM, Luke Kanies wrote:> On Jul 6, 2007, at 12:09 PM, Brent Clements wrote: > >> My apologies. I was making more of a general statement rather than >> implying specifics. > > I understand that, and I didn''t mean "you" specifically. I''ve just > found that the biggest difference between those who can contribute > code and those who can''t is that those who can have tried to do so, > and those who can''t have not. > > I think most of you would be surprised at how easy it is to > contribute. >I''ll second that, I found and provided a patch for the biggest problem I encountered in the first week that I started using puppet. It probably took less than two hours to find and fix a simple bug, which doesn''t seem to bad to me since this was my first exposure to ruby code.> One thing I think would help is to convert to a distributed version > control system, since SVN and its ilk make it harder to maintain your > own branches while you''re experimenting. >Having gone down that road (and back) I''d advise against that. Distributed systems tend to be more complex and harder for people to deal with when they don''t already have a firm grasp of VCS concepts. Subversion has the advantage of being extremely easy to get started with (you really only have to explain checkout, update, and diff to someone just getting started) and having GUI tools (like TortoiseSVN) that can get them started. Most of the people who fall into this category won''t be creating their own branches anyway, and when you get serious developers involved who want to create their own branches, you can either trust them to be serious developers and give them the ability to create branches in the repository, or they can use svk and get the benefits of a distributed system without forcing the casual user and occasional developer to deal with anything more complex than the basic subversion tools. -- Jason Kohles email@jasonkohles.com http://www.jasonkohles.com/ "A witty saying proves nothing." -- Voltaire
On Jul 9, 2007, at 8:44 AM, Jason Kohles wrote:>> > Having gone down that road (and back) I''d advise against that. > Distributed > systems tend to be more complex and harder for people to deal with > when > they don''t already have a firm grasp of VCS concepts. Subversion has > the > advantage of being extremely easy to get started with (you really > only have > to explain checkout, update, and diff to someone just getting > started) and > having GUI tools (like TortoiseSVN) that can get them started. Most > of the > people who fall into this category won''t be creating their own > branches > anyway, and when you get serious developers involved who want to > create > their own branches, you can either trust them to be serious > developers and > give them the ability to create branches in the repository, or they > can use > svk and get the benefits of a distributed system without forcing the > casual > user and occasional developer to deal with anything more complex than > the basic subversion tools.Because this topic has come up a bunch, I figured I''d turn my response into a blog post: http://www.madstop.com/development/distributed_version_control.html -- I am a kind of paranoiac in reverse. I suspect people of plotting to make me happy. --J. D. Salinger --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com