I have set up Puppet master/agent in Oracle VirtualBox using Vagrant and installed netdev_stdlib
on both master and agent according to instruction in the README.
I have set up module path to /etc/puppet/modules/netdev_stdlib
where standard library stdlib
also exists.
The master node is puppet.example.com
and agent is node01.example.com
.
My manifest file is as follows:
node default {
file { "/tmp/example_ip": ensure => present }
include stdlib # No error on this line
# include netdev_stdlib # Uncomment this line will cause error
netdev_device { $hostname: }
}
However, when I run puppet agent -t
on the client I got
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type netdev_device at /etc/puppet/manifests/site.pp:17 on node node01.example.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run
I tried to use include netdev_stdlib
in the manifest file site.pp
, but Puppet couldn't find the class netdev_stdlib
. However, include stdlib
is fine.
include stdlib
is unnecessary. – Matt Schuchard