2
0
Эх сурвалжийг харах

vagrant: add centos 7 / 64 vm

Thomas Waldmann 9 жил өмнө
parent
commit
7bbe17fc77
1 өөрчлөгдсөн 22 нэмэгдсэн , 0 устгасан
  1. 22 0
      Vagrantfile

+ 22 - 0
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