Skip to content

Instantly share code, notes, and snippets.

@lukehinds
Last active May 23, 2017 07:56
Show Gist options
  • Save lukehinds/568f97ff7cdc4c2e7b78078142fb951b to your computer and use it in GitHub Desktop.
Save lukehinds/568f97ff7cdc4c2e7b78078142fb951b to your computer and use it in GitHub Desktop.
Vagrant file for openstack puppet testing
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.provider "libvirt" do |vb|
vb.memory = "4096"
vb.cpus = "2"
end
config.vm.box_check_update = true
config.vm.hostname = "puppet.example.com"
config.vm.provision :shell, :inline => "rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm"
config.vm.provision :shell, :inline => "yum -y update"
config.vm.provision :shell, :inline => "yum -y install git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel ruby-devel rubygem-bundler"
config.vm.synced_folder "~/repos/openstack/puppet-tripleo", "/etc/puppetlabs/code/environments/production/modules/puppet-tripleo", type: "sshfs"
config.vm.provision :shell, :inline => "gem update --system"
config.vm.provision :shell, :inline => "gem update bundler"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment