Matthias Saou
2011-Jun-14 15:26 UTC
[Puppet Users] Setting defaults on scoped definitions : Each Word Needs To Be Capitalized
Hi, The documentation section gives a good example for the "exec" type : http://docs.puppetlabs.com/guides/language_guide.html#resource-defaults But for scoped definitions, I had to figure out that each word needs to be capitalized, not just the first word : Mymod::mydef { ''foo'': } gives Syntax error at ''::mydef'' What works is this (note the second capital ''M'') : Mymod::Mydef { ''foo'': } Could the documentation section about capitalization be updated to include a scoped example and make it clear for everyone? http://docs.puppetlabs.com/guides/language_guide.html#capitalization I''m sure others will bump into this too, or already have :-) Matthias -- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora release 14 (Laughlin) - Linux kernel 2.6.35.13-91.fc14.x86_64 Load : 0.22 0.36 0.46 -- 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.
Ken Barber
2011-Jun-14 15:38 UTC
Re: [Puppet Users] Setting defaults on scoped definitions : Each Word Needs To Be Capitalized
I believe that would be a good addition. You should raise a feature request with category ''Documentation'' so its tracked: http://projects.puppetlabs.com/projects/puppet/issues ken. On Tue, Jun 14, 2011 at 4:26 PM, Matthias Saou <thias@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net> wrote:> Hi, > > The documentation section gives a good example for the "exec" type : > http://docs.puppetlabs.com/guides/language_guide.html#resource-defaults > > But for scoped definitions, I had to figure out that each word needs to > be capitalized, not just the first word : > > Mymod::mydef { ''foo'': } gives Syntax error at ''::mydef'' > > What works is this (note the second capital ''M'') : > > Mymod::Mydef { ''foo'': } > > Could the documentation section about capitalization be updated to > include a scoped example and make it clear for everyone? > http://docs.puppetlabs.com/guides/language_guide.html#capitalization > > I''m sure others will bump into this too, or already have :-) > > Matthias > > -- > Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ > Fedora release 14 (Laughlin) - Linux kernel 2.6.35.13-91.fc14.x86_64 > Load : 0.22 0.36 0.46 > > -- > 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. > >-- 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.
Nick Fagerlund
2011-Jun-14 17:45 UTC
[Puppet Users] Re: Setting defaults on scoped definitions : Each Word Needs To Be Capitalized
On Jun 14, 8:26 am, Matthias Saou <th...@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net> wrote:> Could the documentation section about capitalization be updated to > include a scoped example and make it clear for everyone?http://docs.puppetlabs.com/guides/language_guide.html#capitalizationYes! In fact, I just did that yesterday. It''s not live on the site yet, but you can see the commit here: https://github.com/puppetlabs/puppet-docs/commit/68d0cdc1b2a26a5ed89a204ff59fe73f633d433f -- 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.
Ken Barber
2011-Jun-14 18:16 UTC
Re: [Puppet Users] Re: Setting defaults on scoped definitions : Each Word Needs To Be Capitalized
Nice idea to hire document writers with clairvoyance skills :-). On Tue, Jun 14, 2011 at 6:45 PM, Nick Fagerlund <nick.fagerlund@puppetlabs.com> wrote:> On Jun 14, 8:26 am, Matthias Saou > <th...@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net> > wrote: >> Could the documentation section about capitalization be updated to >> include a scoped example and make it clear for everyone?http://docs.puppetlabs.com/guides/language_guide.html#capitalization > > Yes! In fact, I just did that yesterday. It''s not live on the site > yet, but you can see the commit here: > https://github.com/puppetlabs/puppet-docs/commit/68d0cdc1b2a26a5ed89a204ff59fe73f633d433f > > -- > 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. > >-- 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.
Matthias Saou
2011-Jun-14 20:03 UTC
Re: [Puppet Users] Re: Setting defaults on scoped definitions : Each Word Needs To Be Capitalized
Ken Barber <ken@puppetlabs.com> wrote:> Nice idea to hire document writers with clairvoyance skills :-).I''ll second that! :-) Thanks for the great work : The documentation has really been improving a lot and my general feeling is that "things" are much easier to find than before. Matthias> On Tue, Jun 14, 2011 at 6:45 PM, Nick Fagerlund > <nick.fagerlund@puppetlabs.com> wrote: > > On Jun 14, 8:26 am, Matthias Saou > > <th...@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net> > > wrote: > >> Could the documentation section about capitalization be updated to > >> include a scoped example and make it clear for > >> everyone?http://docs.puppetlabs.com/guides/language_guide.html#capitalization > > > > Yes! In fact, I just did that yesterday. It''s not live on the site > > yet, but you can see the commit here: > > https://github.com/puppetlabs/puppet-docs/commit/68d0cdc1b2a26a5ed89a204ff59fe73f633d433f > > > > -- > > 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. > > > > >-- 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.