Skip to content

Instantly share code, notes, and snippets.

@agaoglu
agaoglu / MockHTable.java
Created October 6, 2010 11:34
MockHTable
/**
* This file is licensed to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Vagrant::Config.run do |config|
(1..1).each do |index|
config.vm.define "riak#{index}".to_sym do |cfg|
ip = "33.33.33.1#{index}"
cfg.vm.box_url = "http://files.vagrantup.com/lucid32.box"
cfg.vm.box = "lucid32"
cfg.vm.network(ip)
cfg.vm.forward_port("ssh", 22, "222#{index}".to_i)
cfg.vm.customize do |vm|
vm.name = "riak#{index}"