I noticed the posts about a ruby DSL, and I was wondering what the future plan is for this functionality. I _just_ noticed this. Originally I was drawn to puppet because of the declarative nature of the DSL and frankly, because I am not that familiar with Ruby. Are we moving towards ruby as the language to describe manifests? -- 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 Sat, Dec 11, 2010 at 3:10 PM, Kevin Beckford <lazyweb@gmail.com> wrote:> I noticed the posts about a ruby DSL, and I was wondering what the future > plan is for this functionality. I _just_ noticed this. > > Originally I was drawn to puppet because of the declarative nature of the > DSL and frankly, because I am not that familiar with Ruby. > > Are we moving towards ruby as the language to describe manifests? >No. The aim of the Puppet DSL was always to provide a simple, readable and declarative language. I believe that over time we accepted changes to the language that a small subset of users needed, and that complicated the Puppet DSL. It''s hard to strike the right balance with an open source project between accepting patches and curating tightly. There are people who already know Ruby who don''t wish to learn the Puppet DSL. We primarily produced the Ruby DSL for them, but also so that some of the more exotic functionality can be provided there, and not in the Puppet DSL. Sometimes you can''t just abstract away your complexity into a function/type/provider/fact, and you need more complexity in the DSL, and hopefully the Ruby DSL achieves this for us. I''m very committed to the Puppet DSL. I think there are huge advantages in having a simple language for describing config management, but also recognize that for some people the Ruby DSL is a better fit. -- Nigel Kersten - Puppet Labs - http://www.puppetlabs.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.
That''s very good to hear, the DSL was much nicer to work with in this domain then Ruby was, for the non Ruby user. I was viewing the DSL like django''s template language, or similar, and that helped a great deal. Thanks for the quick reply. -- 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.
Stupid perennial newbie question but... anybody can paint me an scenario where the Ruby DSL really saves the day and lets you do whatever you need to do? A practical case that shows what are those cases where the Puppet DSL doesnt reach what you need to scratch? Best regards, ------------------------------ Jesús Couto F. -- 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, Dec 13, 2010 at 4:46 AM, Jesús Couto <jesus.couto@gmail.com> wrote:> Stupid perennial newbie question but... anybody can paint me an scenario > where the Ruby DSL really saves the day and lets you do whatever you need to > do? A practical case that shows what are those cases where the Puppet DSL > doesnt reach what you need to scratch? >This blog contains an example that illustrates iteration to dynamically generate resources. This kind of operation would be quite difficult to do with Puppet''s DSL. http://www.puppetlabs.com/blog/ruby-dsl/> Best regards, > ------------------------------ > > Jesús Couto F. > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- 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.