Skip to content

Instantly share code, notes, and snippets.

@efoncubierta
Last active October 15, 2019 09:07
Show Gist options
  • Save efoncubierta/bffa2788eaf1745980d76db1fb7aadb3 to your computer and use it in GitHub Desktop.
Save efoncubierta/bffa2788eaf1745980d76db1fb7aadb3 to your computer and use it in GitHub Desktop.
Script/instructions to install Serverspec in Amazon Linux 2
#!/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