[Puppet Users] What do YOU do to catch undefined variables

Larry Fast
Thu, 02 May 2013 20:43:55 -0000

I''m still a puppet newbie and these days I''m struggling with
undefined
variables.  At least once a week I hit an error message like this:
       Error: Failed to apply catalog: '''' is not qualified and
no path was
specified. Please qualify the command or specify a path.

IMO, the core issue is that Puppet has no mechanism for reporting read
attempts on undefined variables.  So my question to the community is, what
do YOU do to catch undefined variables?  If anyone has a first class
solution I''d love to hear it.  But I''m also happy to consider
ANY means to
detect undefined variables. I may resort to explicitly listing all my
variables and checking them with a custom ruby function.