Last active
May 23, 2017 07:56
-
-
Save lukehinds/568f97ff7cdc4c2e7b78078142fb951b to your computer and use it in GitHub Desktop.
Vagrant file for openstack puppet testing
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
# -*- 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