Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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