Changeset 30960

Show
Ignore:
Timestamp:
27.10.2016 14:08:44 (3 years ago)
Author:
davidb
Message:

Switch to using Puppet to provision machine. Strongly based on files developed for spark-hdfs cluster

Location:
other-projects/hathitrust/vagrant-solr-cluster/trunk
Files:
556 added
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/vagrant-solr-cluster/trunk/Vagrantfile

    r30956 r30960  
    22# vi: set ft=ruby : 
    33 
    4 # All Vagrant configuration is done below. The "2" in Vagrant.configure 
    5 # configures the configuration version (we support older styles for 
    6 # backwards compatibility). Please don't change it unless you know what 
    7 # you're doing. 
    84Vagrant.configure("2") do |config| 
    95  # The most common configuration options are documented and commented below. 
     
    1814  config.vm.provider "virtualbox" do |v| 
    1915    v.memory = 1024 
    20     v.cpus = 2 
     16    v.cpus = 1 
    2117  end 
    2218 
    23   config.vm.define "zoo1" do |zoo1| 
    24     zoo1.vm.box = "ubuntu/trusty64" 
    25     zoo1.vm.network "private_network", type: "dhcp" 
     19  config.vm.box = "ubuntu/trusty64" 
     20  #  config.vm.box = "ubuntu/xenial64" 
     21 
     22  config.vm.provision :puppet do |puppet| 
     23     puppet.manifests_path = "manifests" 
     24     puppet.manifest_file  = "base-zookeeper-solr.pp" 
     25     puppet.module_path = "modules" 
    2626  end 
    2727 
    28   config.vm.define "solr1" do |solr1| 
    29     solr1.vm.box = "ubuntu/trusty64" 
    30     solr1.vm.network "private_network", type: "dhcp" 
     28  config.vm.define :zoo1 do |box| 
     29    box.vm.network "private_network", ip: "10.11.0.52" 
     30    box.vm.host_name = "zoo1"   
    3131  end 
    3232 
    33   config.vm.define "solr2" do |solr2| 
    34     solr2.vm.box = "ubuntu/trusty64" 
    35     solr2.vm.network "private_network", type: "dhcp" 
     33  config.vm.define :solr1 do |box| 
     34    box.vm.network "private_network", ip: "10.11.0.53" 
     35    box.vm.host_name = "solr1"   
    3636  end 
    3737 
    38   config.vm.define "solr3" do |solr3| 
    39     solr3.vm.box = "ubuntu/trusty64" 
    40     solr3.vm.network "private_network", type: "dhcp" 
     38  config.vm.define :solr2 do |box| 
     39    box.vm.network "private_network", ip: "10.11.0.54" 
     40    box.vm.host_name = "solr1"   
    4141  end 
     42 
     43  config.vm.define :solr3 do |box| 
     44    box.vm.network "private_network", ip: "10.11.0.55" 
     45    box.vm.host_name = "solr1"   
     46  end 
     47 
     48       
     49#  config.vm.define "zoo1" do |zoo1| 
     50#    zoo1.vm.box = "ubuntu/trusty64" 
     51#    zoo1.vm.network "private_network", type: "dhcp" 
     52#  end 
     53# 
     54#  config.vm.define "solr1" do |solr1| 
     55#    solr1.vm.box = "ubuntu/trusty64" 
     56#    solr1.vm.network "private_network", type: "dhcp" 
     57#  end 
     58# 
     59#  config.vm.define "solr2" do |solr2| 
     60#    solr2.vm.box = "ubuntu/trusty64" 
     61#    solr2.vm.network "private_network", type: "dhcp" 
     62#  end 
     63# 
     64#  config.vm.define "solr3" do |solr3| 
     65#    solr3.vm.box = "ubuntu/trusty64" 
     66#    solr3.vm.network "private_network", type: "dhcp" 
     67#  end 
    4268   
    4369