In this document we describe an installation of Puppet configuration manager on a Ubuntu Linux 14.04 Trusty Tahr. The installation will be followed by a simple puppet manifest example to make sure that installation was successful and puppet ready to use as standalone deployment.
First we need to inlcude puppet repository to our Ubuntu 14.04 Trusty Tahr Linux system:
$ wget http://apt.puppetlabs.com/puppetlabs-release-trusty.deb
$ sudo dpkg -i puppetlabs-release-trusty.deb 
$ sudo apt-get update
Now we are ready to install an appropriate puppet package which will fetch all necessary prerequisites requirements:
$ sudo apt-get install puppet
After a successful execution of the above command check the puppet version to get a first indication of working puppet manager on your system.
$ puppet --version
3.6.2
In the next step we are ready to test our Puppet installation with a simple puppet manifest file puppet-test.pp, which will do nothing else just create a file /tmp/puppet with a content: "Puppet installation, successful".
$ cat puppet-test.pp
file { '/tmp/puppet':
	content => "Puppet installation, successful",
}

Now we let puppet to act on a our testing manifest file:
$ puppet apply puppet-test.pp
Notice: Compiled catalog for ubuntu in environment production in 0.08 seconds
Notice: /Stage[main]/Main/File[/tmp/puppet]/ensure: defined content as '{md5}f6bb10f21486103a0eac69e3cbe115af'
Notice: Finished catalog run in 0.04 seconds
Cofirm the file exists and has a correct content:
$ cat /tmp/puppet 
Puppet installation, successful


Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top