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
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
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: /