The top-level directory for Puppet manifests is usually named
puppet
, so first of all create this in your home directory:ubuntu@demo:~$ cd /home/ubuntu ubuntu@demo:~$ mkdir puppet
Within this directory, create a subdirectory named
manifests
:ubuntu@demo:~$ cd puppet ubuntu@demo:~/puppet$ mkdir manifests
Move your existing
site.pp
file into themanifests
subdirectory:ubuntu@demo:~/puppet$ mv ../site.pp manifests/
Check that everything still works:
ubuntu@demo:~/puppet$ puppet apply manifests/site.pp Notice: Finished catalog run in 0.03 seconds
Your directory structure should now look as shown in the following diagram:
So far we've only dealt with one server, the demo server. But of course Puppet can manage many machines, each with different configurations, so we need a way to tell Puppet which configuration belongs to each machine.
This is done with a node declaration ("node" is the Puppet term for an individual...