Note: This document covers open source releases of Puppet version 3.8 and lower. For current versions, you should see instructions for installing the latest version of Puppet or installing Puppet Enterprise.
On *nix platforms without native packages available, you can install Puppet with a tarball of source code. This is even more unwieldy than using RubyGems and is almost never recommended, but it might be necessary in some cases.
Before installing Puppet, make sure you’ve looked at the pre-install tasks.
lsb_release. See your OS’s documentation for details about its LSB tools.
sudo gem install json_pure, but if not, you’ll need to download the source from the project’s site and install it manually.
Download the latest
.tar.gz files containing the Puppet, Facter, and Hiera sources.
Optionally, you can also download the corresponding
.asc files and verify the signature of each tarball.
Unarchive the Facter, Hiera, and Puppet tarballs, then navigate to each resulting directory and run:
sudo ruby install.rb
Note: Read our tips on upgrading before upgrading your Puppet deployment.
To upgrade to the latest versions of Puppet, Facter, and Hiera, download new tarballs and run the install scripts again.
After upgrading, restart the
puppet service and, if applicable, the Puppet master web server.
Source tarballs lack some of the conveniences that native packages have. To prepare for the post-install tasks, do the following:
The Puppet master service needs a
puppet user and group. If this node might ever act as a Puppet master server, do the following:
sudo puppet resource group puppet ensure=present
sudo puppet resource user puppet ensure=present gid=puppet shell='/sbin/nologin'
This step is optional on agents.
To run Puppet agent as a service, you need an init script (or whatever your OS’s equivalent is).
Because each platform handles init scripts differently, you must find one specific to your operating system or build one yourself based on what you know about your chosen operating system. The
ext directory in the Puppet source includes several example init scripts or service configurations for various operating systems:
Do not start the
puppet or Puppet master services yet.
When you install with tarballs, your confdir might be empty or missing. Populate it with these required files:
productionenvironment, as described in the directory environments page.
puppet --version. This should output the version of Puppet you now have installed.
At this point, Puppet is installed, but it isn’t configured or running. You should now do the post-install tasks.