[Puppet Users] Re: Writing a properly-formed custom type (configxml)

2010-05-17 Thread Ty C
This post enlightened me. http://groups.google.com/group/puppet-users/browse_thread/thread/449e106437c3f673/ca9ff7055797f18c?lnk=gst I've split configxml into a provider and a type and it appears to work properly now. In more detail, I rewrote "attributes" as a property. All logic is moved into an

[Puppet Users] Re: Writing a properly-formed custom type (configxml)

2010-05-19 Thread Ty C
On May 19, 12:04 am, Marc Fournier wrote: > Just wondering if you are planning to publish your work once it's > finished ? I've been doing this sort of thing using Exec's of > "xmlstarlet", but a pure puppet type is much smarter ! Allow me to publish it here. The code: * Assumes error-free oper

[Puppet Users] Providing stdin to exec

2011-02-21 Thread Ty C
Hi Everybody, We've several use cases where we'd like to define stdin as an exec param. My searches didn't reveal anything relevant, but I did dredge up a 3-year old, unimplemented ticket concerning this matter: https://projects.puppetlabs.com/issues/653 Here is a mock-up of a Puppet passage t