Before we can run Puppet on the new machine, we need to add a node declaration for it.
On the new server, edit
/home/git/puppet/manifests/nodes.pp
and add the following section:node 'demo2' { include nginx }
Now run Puppet:
ubuntu@demo2:~$ sudo puppet apply /home/git/puppet/manifests/site.pp --modulepath=/home/git/puppet/modules/ Notice: /Stage[main]/Nginx/Package[nginx]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Nginx/File[/etc/nginx/sites-enabled/default]/ensure: defined content as '{md5}0750fd1b8da76b84f2597de76c1b9bce' Notice: /Stage[main]/Nginx/Service[nginx]/ensure: ensure changed 'stopped' to 'running' Notice: /Stage[main]/Nginx/Service[nginx]: Triggered 'refresh' from 1 events Notice: Finished catalog run in 11.84 seconds