如何使用puppet';引用第三方定义的类型/资源;什么是ruby dsl?

如何使用puppet';引用第三方定义的类型/资源;什么是ruby dsl?,puppet,Puppet,我正在尝试使用通过metadata.json包含的第三方资源。该资源在常规的pp清单中运行良好,但如果我使用rb清单,我会得到nomethoderror Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::Compiler failed with error NoMethodError: undefined method `network_routes' for #&

我正在尝试使用通过metadata.json包含的第三方资源。该资源在常规的pp清单中运行良好,但如果我使用rb清单,我会得到nomethoderror

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::Compiler failed with error NoMethodError: undefined method `network_routes' for #<Puppet::DSL::ResourceAPI:0x7350c31>
不工作rb:

network_routes('10.10.1.1', '...')

显示您正在尝试做什么,因为您的问题并不清楚。尝试在Ruby DSL清单中使用名为network_routes的第三方资源。
network_routes('10.10.1.1', '...')