Skip to content

Instantly share code, notes, and snippets.

@linuxfemale
Created November 18, 2019 14:37
Show Gist options
  • Save linuxfemale/45bb6d140ef38074ca22ce8deeabd30c to your computer and use it in GitHub Desktop.
Save linuxfemale/45bb6d140ef38074ca22ce8deeabd30c to your computer and use it in GitHub Desktop.
PUPPET 6.0.2 ON UBUNTU 18.04 LTS (BIONIC)
##Installing Puppet Server
wget https://apt.puppetlabs.com/puppet6-release-bionic.deb
sudo dpkg -i puppet6-release-bionic.deb
sudo apt update
sudo apt-get install puppetserver
sudo /opt/puppetlabs/bin/puppetserver --version
##Configuring Puppet Server
sudo nano /etc/default/puppetserver
# Modify this if you'd like to change the memory allocation, enable JMX, etc
JAVA_ARGS="-Xms512m -Xmx512m -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger"
sudo nano /etc/puppetlabs/puppet/puppet.conf
[master]
vardir = /opt/puppetlabs/server/data/puppetserver
logdir = /var/log/puppetlabs/puppetserver
rundir = /var/run/puppetlabs/puppetserver
pidfile = /var/run/puppetlabs/puppetserver/puppetserver.pid
codedir = /etc/puppetlabs/code
dns_alt_names = puppet,puppet.geekflare.com
[main]
certname = puppet.geekflare.com
server = puppet.geekflare.com
environment = production
runinterval = 15m
sudo /opt/puppetlabs/bin/puppetserver ca setup
sudo systemctl enable puppetserver
sudo systemctl start puppetserver
sudo systemctl status puppetserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment