diff --git a/README.md b/README.md index 5c8eb6eef..82dddf58b 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,33 @@ $ sudo vagrant up --no-provision --provider=libvirt $ sudo vagrant provision ``` +## Setup for Vagrant using parallels provider + +* Create vagrant_variables.yml + +``` +$ cp vagrant_variables.yml.sample vagrant_variables.yml +``` + +* Edit `vagrant_variables.yml` and setup the following variables: + +```yml +vagrant_box: parallels/ubuntu-14.04 +``` + +* Create site.yml + +``` +$ cp site.yml.sample site.yml +``` + +* Create VMs + +``` +$ vagrant up --no-provision --provider=parallels +$ vagrant provision +``` + ### For Debian based systems If you want to use "backports", you can set "true" to `ceph_use_distro_backports`. diff --git a/Vagrantfile b/Vagrantfile index 7d4f81739..73147fa5f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -102,6 +102,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| client.vm.provider :libvirt do |lv| lv.memory = MEMORY end + + # Parallels + client.vm.provider "parallels" do |prl| + prl.name = "ceph-client#{i}" + prl.memory = "#{MEMORY}" + end end end @@ -124,6 +130,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| rgw.vm.provider :libvirt do |lv| lv.memory = MEMORY end + + # Parallels + rgw.vm.provider "parallels" do |prl| + prl.name = "ceph-rgw#{i}" + prl.memory = "#{MEMORY}" + end end end @@ -146,6 +158,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| mds.vm.provider :libvirt do |lv| lv.memory = MEMORY end + + # Parallels + mds.vm.provider "parallels" do |prl| + prl.name = "ceph-mds#{i}" + prl.memory = "#{MEMORY}" + end end end @@ -168,6 +186,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| mon.vm.provider :libvirt do |lv| lv.memory = MEMORY end + + # Parallels + mon.vm.provider "parallels" do |prl| + prl.name = "ceph-mon#{i}" + prl.memory = "#{MEMORY}" + end end end @@ -215,6 +239,19 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| lv.memory = MEMORY end + # Parallels + osd.vm.provider "parallels" do |prl| + prl.name = "ceph-osd#{i}" + prl.memory = "#{MEMORY}" + (0..1).each do |d| + prl.customize ["set", :id, + "--device-add", + "hdd", + "--iface", + "sata"] + end + end + # Run the provisioner after the last machine comes up osd.vm.provision 'ansible', &ansible_provision if i == (NOSDS - 1) end diff --git a/vagrant_variables.yml.sample b/vagrant_variables.yml.sample index 28c8729b3..6edb792c9 100644 --- a/vagrant_variables.yml.sample +++ b/vagrant_variables.yml.sample @@ -30,6 +30,7 @@ disks: "[ '/dev/sdb', '/dev/sdc' ]" # Ubuntu: ubuntu/trusty64 # CentOS: bento/centos-7.1 # libvirt CentOS: centos/7 +# parallels Ubuntu: parallels/ubuntu-14.04 # Debian: deb/jessie-amd64 - be careful the storage controller is named 'SATA Controller' # For more boxes have a look at: # - https://atlas.hashicorp.com/boxes/search?utf8=✓&sort=&provider=virtualbox&q=