Re: [Puppet-dev] Adding a new switch type to Puppet Device

2011-09-16 Thread Greg Sutcliffe
On 12 September 2011 21:53, Brice Figureau wrote: > You'll see when reading Nan's code that the biggest difference in the > cisco and F5 stuff is the transport. The F5 provider Nan created uses > directly the F5 http API, because its better (and certainly easier) than > emulating a human typing co

Re: [Puppet-dev] Adding a new switch type to Puppet Device

2011-09-12 Thread Greg Sutcliffe
On 12 September 2011 18:26, Nan Liu wrote: > Yes with some work around required. You need to export RUBYLIB with > the appropriate path. See example and known limitation section: > https://github.com/puppetlabs/puppetlabs-f5 > > In my limited experience, seems easier to dev/test with puppet > reso

[Puppet-dev] Adding a new switch type to Puppet Device

2011-09-12 Thread Greg Sutcliffe
Hi all, I guess this is mainly aimed at Brice, but feel free to chime in :) I'm starting to implement Allied Telesis switches in puppet device, since we have a pressing need to control them properly. I've managed to get login and facts working, so I'm happy with my progress thus far, but I curr

Re: [Puppet-dev] Re: [PATCH 1/1] Add insync? checks to Onyx Point Concat module

2011-06-13 Thread Greg Sutcliffe
On 13 June 2011 10:24, Peter Meier wrote: > > > If you deleted the target, it wont recreated. What is diff(filea,fileb) > > returning when one of its arguments does not exist ? > > it looks like it returns an empty string. I fixed this in my work on the > module[1]. > > ~pete Eeek, how did I mi

[Puppet-dev] [PATCH 1/1] Add insync? checks to Onyx Point Concat module

2011-06-03 Thread Greg Sutcliffe
Hi all, As my first foray into types and providers (and as suggested on the -users list), here is a patch for Onyx Point's Concat type which implements insync? for both concat_build and concat_fragment. It's probably ugly, and I need to learn, so feedback is welcome :) Trevor, I'll do a pull r