Right, I've been using Puppet for approx. 4 hours so have a total n000b question. I've downloaded and installed a puppet module using:
puppet module install resolv_conf
All well and good. It has installed the module into:
/home/user/.puppet/modules/,
again all well and good.
The module shows up when I run puppet module list, which I'm guessing it's supposed to.
So my question is how do I use the module?
I get that somewhere I need to add to a manifest,
class { 'resolv_conf':
nameservers => ['192.168.0.254', '8.8.8.8'],
}
but I'm assuming that I don't add that in the
/home/user/.puppet/modules/resolv_conf/manifests/init.pp file.
I tried creating a folder and init.pp file here
/etc/puppet/modules/resolv_conf/manifests
and added the class to it, but I get
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class resolv_conf at /etc/puppet/modules/resolv_conf/manifests/init.pp:4 on node rarity.home
So I'm a bit stumped. Can some kind soul point me in the right direction?
Fanks :)