We need to do a few things to make the server ready for installing Puppet.
Set a suitable hostname for your server (ignore any warning from
sudo
):ubuntu@domU-12-31-39-09-51-23:~$ sudo hostname demo ubuntu@domU-12-31-39-09-51-23:~$ sudo su -c 'echo demo >/etc/hostname' sudo: unable to resolve host demo
Log out and log back in to check that the hostname is now correctly set:
ubuntu@demo:~$
Find out the local IP address of the server:
ubuntu@demo:~$ ip addr list |grep eth0$ inet 10.210.86.209/23 brd 10.210.87.255 scope global eth0
Copy the IP address of your server (here it's
10.210.86.209
) and add this to the/etc/hosts
file (use your own hostname and domain):ubuntu@demo:~$ sudo su -c 'echo 10.210.86.209 demo demo.example.com >>/etc/hosts' sudo: unable to resolve host demo