我已经设置了 puppet,并对 puppet 设备管理进行了适当的调整。我已为交换机 catalyst 2950 设置了设备配置。证书请求和签名工作正常,但实际使用 puppet 设备命令配置交换机时,它会失败并出现错误。
# puppet device -v
Info: starting applying configuration to switch1 at telnet://root:[email protected]/
Info: Retrieving plugin
Info: Caching catalog for switch1
Info: Applying configuration version '1370021478'
Error: Could not prefetch interface provider 'cisco': Unknown switchport mode: dynamic desirable for FastEthernet0/1
Notice: /Stage[main]//Node[switch1]/Interface[Fa0/1]/description: defined 'description' as 'Hello Switch'
Error: /Stage[main]//Node[switch1]/Interface[Fa0/1]: Could not evaluate: undefined method `command' for #<Puppet::Type::Interface:0x7fde25cc23a0>
Notice: Finished catalog run in 7.96 seconds
我能得到一些帮助吗?
谢谢,vatsa
答案1
有一个带有可用修复程序的拉取请求https://github.com/puppetlabs/puppet/pull/4301. 应用补丁后它就会起作用。