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
>
> This has been tested successfully on some cisco hardware I happened
> to have available (a couple of switch and low-end routers).
>
> The puppet provider can connect to remote switch/routers through
> ssh and/or telnet.
>
Brice
I'm just testing this and I seem to have some tests in error:
/home/james/src/puppet/spec/unit/util/network_device/transport/ssh_spec.rb:8:
undefined method `confine' for #<Class:0xb4e13ed0> (NoMethodError)
from
/var/lib/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/example_group.rb:132:in
`module_eval'
from
/var/lib/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/example_group.rb:132:in
`subclass'
from
/var/lib/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/example_group.rb:119:in
`describe'
from
/var/lib/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/extensions/object.rb:6:in
`describe'
from
/home/james/src/puppet/spec/unit/util/network_device/transport/ssh_spec.rb:7
from
/var/lib/gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:235:in
`load'
from
/var/lib/gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:235:in
`load'
from
/var/lib/gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:225:in
`load_dependency'
from
/var/lib/gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from
/var/lib/gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:225:in
`load_dependency'
from
/var/lib/gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:235:in
`load'
from
/var/lib/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in
`load_spec_files'
from
/var/lib/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in
`map'
from
/var/lib/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in
`load_spec_files'
from
/var/lib/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb:18:in
`run'
from
/var/lib/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:55:in
`run_in_process'
from
/var/lib/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:46:in `run'
from
/var/lib/gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10:in
`autorun'
from /usr/bin/rspec:19
rake aborted!
I presume this is an RSpec incompatibility somewhere?
$ rspec --version
2.5.1
James
--
James Turnbull
Puppet Labs
1-503-734-8571
--
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.