Skip to content

Instantly share code, notes, and snippets.

@toanalien
Created May 5, 2020 04:15
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 toanalien/3a03ea48315aa0ec2f616954ef3b4b70 to your computer and use it in GitHub Desktop.
Save toanalien/3a03ea48315aa0ec2f616954ef3b4b70 to your computer and use it in GitHub Desktop.
centos with redis
$install_redis = <<-'SCRIPT'
sudo yum update -y
sudo yum install epel-release yum-utils -y
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y
sudo yum-config-manager --enable remi -y
sudo yum install redis -y
sudo systemctl status redis
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.provision "shell", inline: $install_redis
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment