Hey @Alia, follow these steps to install Puppet on Ubuntu.
I'm assuming that you're aware of all the pre-requisites.
In this case, there is one Puppet master and one Puppet agent.
Check for available timezones
timedatectl list-timezones
![](https://www.edureka.co/community/?qa=blob&qa_blobid=8406131644781137600)
Look for the timezone that suits your server and set it, something like this:
sudo timedatectl set-timezone Asia/Kolkata
Install NTP
sudo apt-get update
sudo apt-get -y install ntp
![](https://www.edureka.co/community/?qa=blob&qa_blobid=8078546157132696292)
Enable the official Puppet Labs collection repository with these commands:
cd ~ && wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb
sudo dpkg -i puppetlabs-release-pc1-trusty.deb
sudo apt-get update
![](https://www.edureka.co/community/?qa=blob&qa_blobid=4824226018283197762)
Install the puppetserver package:
sudo apt-get -y install puppetserver
![](https://www.edureka.co/community/?qa=blob&qa_blobid=5743248509195274385)
Configure memory allocation according to the requirement and availability
sudo vi /etc/default/puppetserver
Finally, start the puppet server and then check for the status
sudo service puppetserver restart
![](https://www.edureka.co/community/?qa=blob&qa_blobid=16211837453382707927)
Enable the official Puppet Labs collection repository with these commands and then finally install puppet agent on all the agent nodes
cd ~ && wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb
sudo dpkg -i puppetlabs-release-pc1-trusty.deb
sudo apt-get update
sudo apt-get install puppet-agent
Once installed, start it with the following command:
sudo /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true
Sign Certificates
On your puppet master execute this command which lists down all the certificates
sudo /opt/puppetlabs/bin/puppet cert list
You'll see one certificate from your agent node, execute this to sign it
sudo /opt/puppetlabs/bin/puppet cert sign certi-name
You can view all the signed certificated using this command:
sudo /opt/puppetlabs/bin/puppet cert list --all
And you're good to go :)