Skip to content

Instantly share code, notes, and snippets.

@rakibulinux
Created March 2, 2020 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakibulinux/866bcd2a275ee270a21772aaad235daf to your computer and use it in GitHub Desktop.
Save rakibulinux/866bcd2a275ee270a21772aaad235daf to your computer and use it in GitHub Desktop.
How To Install Puppet On Ubuntu 18.04
#!/bin/sh
sudo apt update
sudo apt install -y ntp ntpdate
sudo ntpdate -u 0.ubuntu.pool.ntp.org
sudo nano /etc/hosts
192.168.1.10 server.itzgeek.local server
wget https://apt.puppetlabs.com/puppet6-release-bionic.deb
sudo dpkg -i puppet6-release-bionic.deb
sudo apt update
sudo apt install -y puppetserver
sudo nano /etc/default/puppetserver
JAVA_ARGS="-Xms512m -Xmx512m -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger"
sudo nano /etc/puppetlabs/puppet/puppet.conf
[master]
dns_alt_names = server.itzgeek.local,server
[main]
certname = server.itzgeek.local
server = server.itzgeek.local
environment = production
runinterval = 15m
sudo /opt/puppetlabs/bin/puppetserver ca setup
#You will get. Generation succeeded. Find your files in /etc/puppetlabs/puppet/ssl/ca
sudo systemctl start puppetserver
sudo systemctl enable puppetserver
sudo systemctl statatus puppetserver
sudo apt install -y puppet-agent
sudo nano /etc/puppetlabs/puppet/puppet.conf
[main]
certname = client.itzgeek.local
server = server.itzgeek.local
environment = production
runinterval = 15m
sudo /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true
puppet --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment