Installing Puppet Agent on Ubuntu 16.04


When trying to install the puppet agent on an Ubuntu 16.04 server the following error appeared

​curl -k https://puppet:8140/packages/current/install.bash | sudo bash
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100 25756  100 25756    0     0   162k      0 –:–:– –:–:– –:–:–  163k
The agent packages needed to support ubuntu-16.04-amd64 are not present on your master.     To add them, apply the pe_repo::platform::ubuntu_1604_amd64 class to your master node and then run Puppet.     The required agent packages should be retrieved when puppet runs on the master, after which you can run the install.bash script again.



On the puppet enterprise server

cd /etc/puppetlabs/code/environments/production/manifests
vi site.pp

Add the following code:

node {
include pe_repo::platform::ubuntu_1604_amd64