Puppet is a configuration management tool, similar to Ansible,
Chef and SaltStack. Puppet also can be used for automating infrastrcture as well.
- Configuration management tool
- Used for infrastructure automation as well
- An open source, written in Ruby
- Uses Domain Specific Language (DSL) to describe system configuration
- Comes in two version - Open source & Puppet Enterprise
- Puppet is based in client/server model.
We will see how to setup Puppet Master in Ubuntu 18.0.4.
Watch the steps for setting up Puppet Master:
Install Puppet master on new Ubuntu with medium instance
port 8140 needs to be opened.
Steps:
First let us see how to install Puppet 7.x on Ubuntu 18.0.4.
Modify Puppet Master Hosts file to add hostname of Puppet Master
sudo vi /etc/hosts
Download puppet installables
sudo curl -O https://apt.puppetlabs.com/puppet7-release-bionic.deb
sudo dpkg -i puppet7-release-bionic.deb
sudo apt-get update
Install Puppet
sudo apt-get install puppetserver -y
sudo systemctl enable puppetserver.service
(the above command is to start the service during starting the Ubuntu instance)
Start Puppet Server
sudo systemctl start puppetserver.service(The above command is for starting the server and this may take some time)
sudo systemctl status puppetserver.service
Now press q to come out of window.
This confirms that Puppet Master is installed successfully.
Verify which version of Puppet installed by executing below command:
apt policy puppetserver
sudo gem install aws-sdk-core retries
Done installing documentation for retries after 0 seconds 6 gems installedAlso install AWS SDK for accessing resources in AWS
sudo gem install aws-sdk -v 2.0.42
Done installing documentation for retries after 0 seconds 4 gems installedInstall puppet-labs-aws module
sudo puppet module install puppetlabs-aws
That's it. Puppet Master is setup successfully!!!! You can watch the above steps in YouTube as well.
Why so old Ubuntu version?
ReplyDeleteIf you don't want to work wit the PATH variable, better use the symbolic links:
sudo ln -sf /opt/puppetlabs/bin/puppet /usr/bin/
sudo ln -sf /opt/puppetlabs/puppet/bin/gem /usr/bin/