Re: [Puppet Users] Complex custom type?

2012-09-21 Thread Jakov Sosic
On 09/17/2012 07:18 PM, Nan Liu wrote: On Sun, Sep 16, 2012 at 2:23 PM, Jakov Sosic jso...@srce.hr wrote: On 09/16/2012 04:47 PM, Stefan Schulte wrote: or the interface property could accept a hash. I have not tried it myself but it should work because the puppetlabs f5 type seems to use it:

Re: [Puppet Users] Complex custom type?

2012-09-17 Thread Nan Liu
On Sun, Sep 16, 2012 at 2:23 PM, Jakov Sosic jso...@srce.hr wrote: On 09/16/2012 04:47 PM, Stefan Schulte wrote: or the interface property could accept a hash. I have not tried it myself but it should work because the puppetlabs f5 type seems to use it:

Re: [Puppet Users] Complex custom type?

2012-09-16 Thread Stefan Schulte
On Fri, Sep 14, 2012 at 06:37:28PM +0200, Jakov Sosic wrote: Hi. I've successfully written and tested three puppet custom types for managing cobbler so far (distro, repo and profile). So far it has been interesting week, learning ruby from zero, learning custom types etc. But I'm really

Re: [Puppet Users] Complex custom type?

2012-09-16 Thread Jakov Sosic
On 09/16/2012 04:47 PM, Stefan Schulte wrote: As you pointed out you can write different types and the system types will create the system with no interfaces at all (if that is possible) and the interface type will add them later on. It's possible to add interfaces later, I just have to check

Re: [Puppet Users] Complex custom type?

2012-09-16 Thread Jakov Sosic
On 09/16/2012 04:47 PM, Stefan Schulte wrote: or the interface property could accept a hash. I have not tried it myself but it should work because the puppetlabs f5 type seems to use it: https://github.com/puppetlabs/puppetlabs-f5#appendix Also, if you don't mind to explain it, or to show by

[Puppet Users] Complex custom type?

2012-09-14 Thread Jakov Sosic
Hi. I've successfully written and tested three puppet custom types for managing cobbler so far (distro, repo and profile). So far it has been interesting week, learning ruby from zero, learning custom types etc. But I'm really satisfied with the results so far. Now I'm trying to figure out how