-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the response.

puppet-lint certainly finds the manifest-based issues but doesn't seem to pick 
up issues in the templates that I can tell so far.

Any suggestions from the Puppet Labs' guys on automated techniques that pick up 
items in templates, functions, and custom types would be most
appreciated since, well, they're the only ones I can think of that'll know how 
to do that.

Thanks,

Trevor

On 01/06/2012 08:40 AM, R.I.Pienaar wrote:
> 
> 
> ----- Original Message -----
> Ah,
> 
> So, if you have an existing code base that you've inherited and
> you're going to be trying the 2.8 series of Puppet, where variable
> scoping is
> mandatory, how would you go about finding all out of scope variables
> without actually writing code to call every portion of the puppet
> code.
> 
> I've used puppetdoc to find issues in the past but it doesn't seem to
> care about variable scope from what I can tell.
> 
> I'll try puppet-lint and see if it picks up on the issues but I'm
> suspecting that it won't since it's probably not compiling the code.
> 
> 
>> The only sane way imho is to diff the catalogs. 
> 
>> The catalogs are based on the variables, vars are interpolated into
>> strings in the catalog and anything like versions, names etc that came
>> from variables would be in the catalog already parsed.
> 
>> So if you diff'd a 2.6 and 2.8 catalog you would know if variable changes
>> affected you.
> 
>> I did some extremely hacky thing to diff catalogs in the past[1] but I have
>> no idea if this still works with 2.7 or 2.8 but I think this is the only
>> real way to tell if you will have changes due to master changes.  Would be
>> nice if there was a migration tool written by someone who actually know
>> the catalog internals :)
> 
>> Of course this does not tell you if the agent will interpret the catalog
>> correctly...
> 
>> [1] https://github.com/ripienaar/puppet-catalog-diff
> 
> 
> Trevor
> 
> On 01/05/2012 08:27 AM, Felix Frank wrote:
>>>> On 01/03/2012 06:15 PM, Trevor Vaughan wrote:
>>>>> Any takers?
>>>>
>>>> Please elaborate on the question.
>>>>
> 
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>>
> 

- -- 
Trevor Vaughan
 Vice President, Onyx Point, Inc.
 email: tvaug...@onyxpoint.com
 phone: 410-541-ONYX (6699)
 pgp: 0x6C701E94

- -- This account not approved for unencrypted sensitive information --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJPBvyfAAoJECNCGV1OLcyp4IAH+wYxC34BUnI54Ie9E4GbCD0C
hPkJwtFBf0isKqv9FHstKrZ7N8v8duPhVXbL9JbjL4VBlVkHHz1x20OAUcoGGa76
oVu01eHkPBRrTCPvEpXZMC/DkZaz97GKq4e/5XxNgsEwfPijht+jIiCpo3i3JHV0
qra/VFjW0kwVFSCNlT5CSN8OF9j2TH+qIFZfDcOfBtV5LydiQkr0i5EMgQF7cOrf
pk303NzDL76i9hEZI0faqZxosn/5pB92joEGwp5SNTqPL7kuUCuk6GGl6UtpoyEQ
NHmHS7MvpEjKCq7b0entwqaGORwebooI5oTroHROUpThPtOeF4WbKrQRDvzEIKw=
=bY+t
-----END PGP SIGNATURE-----

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

<<attachment: tvaughan.vcf>>

Reply via email to