Last active
October 15, 2019 09:07
-
-
Save efoncubierta/bffa2788eaf1745980d76db1fb7aadb3 to your computer and use it in GitHub Desktop.
Script/instructions to install Serverspec in Amazon Linux 2
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
#!/usr/bin/env bash | |
SERVERSPEC_VERSION=2.41.5 | |
RAKE_VERSION=13.0.0 | |
# Install Ruby | |
sudo amazon-linux-extras enable ruby2.4 | |
sudo yum -y install ruby rubygems ruby-devel | |
# Update gem | |
sudo gem update --system --no-rdoc --no-ri | |
# Install io-console gem | |
sudo yum install -y redhat-rpm-config gcc | |
sudo gem install io-console | |
# Install Serverspec | |
sudo gem install serverspec -v ${SERVERSPEC_VERSION} | |
# Install Rake | |
sudo gem install rake -v ${RAKE_VERSION} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment