On Tue, 2011-01-04 at 10:52 +0100, David Schmitt wrote:
> On 1/3/2011 10:32 PM, Brice Figureau wrote:
> > Hi,
> >
> > This is my Christmas Gift for the community :)
> > That's something that was haunting me for a long time: a way to manage
> > switch/routers directly from puppet.
> > Unfortunately most of the switches/routers don't run ruby natively and
> > as such can't run puppet.
> >
> > Based on an open-space discussion that happened at PuppetCamp EU in May 
> > 2010, I
> > finally managed to find the time to implement a solution to this problem.
> >
> > This is currently a Proof Of Concept of a puppet type/provider connecting
> > to remote cisco switch/routers running ios to manage:
> >   * interfaces (including ip address, trunking, etc...)
> >   * vlans
> 
> Awesome work, Brice!

Thanks David,

> > I didn't solve the uniqueness of the name of an interface yet (currently
> > it isn't possible to have 2 switches with the same interface name, which is
> > an issue).
> 
> > One possibility would be to use as interface name, the device_url.
> > If anyone has a better idea, let me know.
> 
> 
> It sounds like a problem the composite titles were designed to solve. It 
> should be pretty easy to use something like
> 
>      "ssh://user:[email protected]/FastEthernet/0/1"

Yes, that was what I was thinking about.

In fact I'd love to be able to do:

router {
  "myisprouter":
     device_url => "ssh://user:[email protected]";
}

interface {
 "myisprouter/FastEthernet0/1":
   ...
}

And then the interface would be smart enough to autorequire the router
and pickup the correct device url.

Do you think it's possible?

> as title. Perhaps this would even work with parameter defaults, though 
> I'm a bit hazy on the details here.

Hmm, can you elaborate? I must admit I'm not really up to date on
provider/type development (those are my first attempts).

> > Please comment as usual :)
> 
> Like, with standing ovations? ;-)

That would be awesome ;-) but real critiques are good too :)
-- 
Brice Figureau
Follow the latest Puppet Community evolutions on www.planetpuppet.org!

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

Reply via email to