So I've started to try and use puppet, and I thought i had configured correctly as the node will successfully connect to the master:
C:\Windows\system32>puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for node.mydomain.com
Info: Applying configuration version '1502092203'
Notice: Applied catalog in 0.06 seconds
However, i have made changes to the master via the site.pp by simply adding the helloworld module:
node default {
class { 'helloworld': }
}
with this code:
class helloworld {
notify { 'hello, world!':}
}
this works if i call the site.pp explicitly on the master:
puppetmaster3@192:~$ sudo puppet apply
/etc/puppetlabs/code/environments/production/manifests/site.pp
[sudo] password for puppetmaster3:
Notice: Compiled catalog for 192.168.1.23 in environment production in 0.15 seconds
Notice: hello, world!
Notice: /Stage[main]/Helloworld/Notify[hello, world!]/message: defined 'message' as 'hello, world!'
Notice: Applied catalog in 0.05 seconds
however when i try to verify it it cannot be found as it "doesn't exist":
puppetmaster3@192:~$ puppet parser validate site.pp
Error: One or more file(s) specified did not exist:
[" site.pp\n"]
Error: Try 'puppet help parser validate' for usage
When i run puppet agent on the node, it doesn't pick up the helloworld as shown orignally
I haven't edited the puppet.conf to or environment.conf to specify a manifest as I've used the default locations, do i need to declare them in puppet.conf? because if i try and print the manifest it comes up with this:
puppetmaster3@192:~$ puppet config print manifest
no_manifest