How to install puppet in ubuntu?
16 Aug '16
0 Shares

How to install puppet in ubuntu?

Puppet is automation tool for managing and configuring multiple number of servers. Let us see, how to install puppet in ubuntu. I’m gonna use AWS EC2 instance to guide you through the steps for installing puppet in the ubuntu instance. It can also be installed in the same way in a physical server, linux workstation or a virtual machine such as VMWare, VirtualBox or Vagrant, etc., But these machines should have internet access. Sudo root access is necessary for performing some of the steps in installing puppet.
1. To prepare the machine for Puppet, we need to set its hostname.
Copy the IP address of your server (here it’s 10.45.665.321) and add this to the /etc/hosts file so that it looks something like this (use your own hostname and domain):

 10.45.665.321 cookbook cookbook.example.com

2. Puppet Packages for Ubuntu will be available from Puppet Labs. Here’s how to install the version for Ubuntu 12.04 Precise:

Download the Puppet Labs repo package:

ubuntu@cookbook:~$ wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb

3. Install the repo package:

ubuntu@cookbook:~$ sudo dpkg -i puppetlabs-release-precise.deb
Selecting previously unselected package puppetlabs-release.
(Reading database … 33975 files and directories currently  installed.)
Unpacking puppetlabs-release (from puppetlabs-release-
precise.deb)
Setting up puppetlabs-release (1.0-5)

4. Update your APT configuration:

ubuntu@cookbook:~$ sudo apt-get update

Note: If you’re not using Ubuntu 12.04 Precise, you can find out how to add the Puppet Labs repos package to your system here:
http://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html

5. Install Puppet:

ubuntu@cookbook:~$ sudo apt-get -y install puppet

Note: If you’re using Apple Mac, you may need to download and install suitable DMG images from Puppet Labs available at:
https://downloads.puppetlabs.com/mac/
If you’re using Windows, you may need to download MSI packages from the Puppet Labs website available at:
https://downloads.puppetlabs.com/windows/

6. Run the following command to check that Puppet is properly installed:

ubuntu@cookbook:~$ puppet –version
3.2.2

If the version of Puppet you’ve installed is not exactly the same as above, it doesn’t matter.  You’ll get whatever is the latest version made available by Puppet Labs. So as long as your version is at least 3.0, you should not be having any trouble running the examples in the series of tutorials provided by us. If you have an older version of Puppet, you may find that some things don’t work or work differently to the way you’d expect. I recommend that you upgrade to Puppet 3.x or later if at all possible.Now that Puppet is set up, you can use it to make some configuration changes by creating a manifest. We’ll see how to do this in the upcoming tutorials.

About arun

Related Posts

Leave a Reply

*