Re: [Puppet Users] Puppet displays title as 'main'

2013-05-30 Thread avery
Thanks! That's interesting because the documentation consistently refers to the first string following the type of a resource as the "title". Hence, my confusion. I'll email the puppet folks and ask them just to put a note in the docs to clarify this. On Wednesday, May 29, 2013 5:09:50 PM UTC+8

Re: [Puppet Users] Puppet displays title as 'main'

2013-05-29 Thread Erik Dalén
A resource declaration doesn't create a new variable scope, so the $title variable has the value of the scope containing the resource, in this case stage main. On 29 May 2013 08:28, wrote: > I have a file with this code in it: > > notify {'a': > message => "${title}" > } > > The output after

[Puppet Users] Puppet displays title as 'main'

2013-05-28 Thread avery
I have a file with this code in it: notify {'a': message => "${title}" } The output after running 'puppet apply file.pp': notice: main notice: /Stage[main]//Notify[a]/message: defined 'message' as 'main' notice: Finished catalog run in 0.57 seconds I expected this output: notice: a notice: /