On Tue, Feb 22, 2011 at 1:44 PM, Trevor Vaughan <tvaug...@onyxpoint.com>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> So, I got this working and have played around with it a bit. My feedback is
> below.
>
> 1) You need to include the 'interface' lib path before the puppet lib path
> in RUBYLIB to get this to work.
>
> 2) puppet catalog - doesn't seem to do anything gives the message "Could
> not prepare for execution: Action select already defined for
> Puppet::Interface::Catalog"
>
> 3) Overall, this interface is too slow. I'm thinking this is due to having
> it run the entire puppet codebase startup before delving into things.
> Perhaps this can't be avoided.
>

you don't have to run it from the command line, you can programatically
access all of the interfaces, so you only have to pay the loading cost one
time.

Here is an example where I am doing this:

https://github.com/bodepd/puppet-interface-utils/blob/master/lib/puppet/interface/parser.rb


> One of the things that I would like to see is a fast way of digging into
> the catalog and running system configuration. I'm thinking that fact parsing
> could be avoided for many of these calls and this may provide the reaction
> time that I'm looking for.
>
> I think that the tool does have potential but, for now, the wait time to
> get information out of it is just too high compared with hacking something
> together that can run multiple commands in the same instance and manipulate
> the results.
>
> Thanks,
>
> Trevor
>
>
> - --
> 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)
>
> iQEcBAEBAgAGBQJNZC5HAAoJECNCGV1OLcypU1wH/0w+5VnhjT1u8dD2gSVAHXYl
> GUAJWLlH+VfrtetYburS4SAY1mIqzOS2iYC/bUE2/fVwCvA81msYr6OkxAm/8I8M
> OrpUHsJMCUAMEhX42XvY1HfbV6TJi36Rw6qanFZY4Q+nl9WI2WFA11aD5CBeGhXA
> HjtEHRXaMwA7ulVM8hXs6b1HhX8lxhvx1nSKsmVm2OsAzS20WJ+uAufZdHPVc5VJ
> fT76bUecMNZEMHhcyTLnLRkNQnBIwv1VI7TcgwBNx7M88ZxXc3Jye8ZGnl6v8ms8
> ERfDR4WqKCLoVz5L4ixdR0w7KwB9+h1PYqtQoq3NtcmMAuQU/w+C0eHTJaZmw6Y=
> =Cp1s
> -----END PGP SIGNATURE-----
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To post to this group, send email to puppet-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-dev+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-dev?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to puppet-dev@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to