Created
July 31, 2022 16:21
-
-
Save gigsforlinux/adbeb401a44fb23a6dae5c784958b74b to your computer and use it in GitHub Desktop.
I'll Install Ansible-Puppet-Vagrant DevOps Tools For You
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt install ansible | |
ansible-inventory --list -y | |
#testing connection | |
ansible all -m ping -u root | |
ansible all -a "df -h" -u root | |
####Install Puppet | |
sudo apt-get update -y | |
###Install puppet server on master node | |
wget https://apt.puppetlabs.com/puppet6-release-focal.deb | |
sudo dpkg -i puppet6-release-focal.deb | |
sudo apt-get update -y | |
sudo apt-get install puppetserver -y | |
sudo nano /etc/default/puppetserver | |
JAVA_ARGS="-Xms1g -Xmx1g -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger" | |
sudo systemctl start puppetserver | |
sudo systemctl enable puppetserver | |
sudo systemctl status puppetserver | |
###Install Vargrant | |
sudo apt install virtualbox | |
curl -O https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_x86_64.deb | |
vagrant --version | |
cd ~/my-vagrant-project | |
vagrant init centos/8 | |
vagrant up | |
vagrant ssh | |
vagrant halt | |
vagrant destroy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment