diff options
author | Thomas Waldmann <tw@waldmann-edv.de> | 2015-09-13 23:39:34 +0200 |
---|---|---|
committer | Thomas Waldmann <tw@waldmann-edv.de> | 2015-09-13 23:39:34 +0200 |
commit | 7bbe17fc773d200c11f12339679fb6e8d35c7a41 (patch) | |
tree | e57969329a522d5b2b46edd33a8eb397396b0534 /Vagrantfile | |
parent | 39a335f6282f1fac66b876b0e5630dba82b1fbcf (diff) |
vagrant: add centos 7 / 64 vm
Diffstat (limited to 'Vagrantfile')
-rw-r--r-- | Vagrantfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile index 03262eb3f..a574a28d8 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -15,6 +15,22 @@ def packages_prepare_precise EOF end +def packages_centos + return <<-EOF + yum install -y epel-release + yum update -y + yum install -y python34 python34-devel + ln -s /usr/bin/python3.4 /usr/bin/python3 + yum install -y openssl-devel openssl + yum install -y libacl-devel libacl + yum install -y lz4-devel + yum install -y fuse-devel fuse pkgconfig + yum install -y fakeroot gcc git + yum install -y python-pip + pip install virtualenv + EOF +end + def packages_debianoid return <<-EOF apt-get update @@ -123,6 +139,12 @@ Vagrant.configure(2) do |config| v.cpus = 2 end + config.vm.define "centos7" do |b| + b.vm.box = "centos/7" + b.vm.provision "packages centos7 64", :type => :shell, :inline => packages_centos + b.vm.provision "prepare user", :type => :shell, :privileged => false, :inline => prepare_user("centos7_64") + end + config.vm.define "trusty64" do |b| b.vm.box = "ubuntu/trusty64" b.vm.provision "packages debianoid", :type => :shell, :inline => packages_debianoid |