This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |global_config| | |
# Change the user name so nodes don't conflict | |
user = "vish" | |
aptdir = "/home/vishvananda/aptcache/" | |
global_config.vm.define :chef do |config| | |
ip = "192.168.76.100" | |
# path where code is checked out | |
checkout = "/home/vishvananda/openstack-cookbooks" | |
config.vm.box = "base" | |
config.vm.box_url = "http://images.anso.com/vagrant/maverick64.box" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |global_config| | |
aptdir = (ENV['APTCACHE'] or "#{ENV['HOME']}/aptcache/") | |
checkout = (ENV['COOKBOOKS'] or "#{ENV['HOME']}/openstack-cookbooks") | |
ip_prefix = (ENV['IP_PREFIX'] or "192.168.76.") | |
mac_prefix = (ENV['MAC_PREFIX'] or "080027076") | |
fixed = (ENV['FIXED'] or "10.0.76.0/24") | |
global_config.vm.define :chef do |config| | |
suffix = "100" | |
ip = "#{ip_prefix}#{suffix}" | |
config.vm.box = "base" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |global_config| | |
aptdir = "#{ENV['HOME']}/aptcache/" | |
checkout = "#{ENV['HOME']}/openstack-cookbooks" | |
global_config.vm.define :chef do |config| | |
ip = "192.168.76.100" | |
# path where code is checked out | |
config.vm.box = "base" | |
config.vm.box_url = "http://images.anso.com/vagrant/maverick64.box" | |
config.vm.network ip | |
config.vm.share_folder("v-apt", "/var/cache/apt", aptdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |config| | |
ip = "192.168.76.11" | |
# path where code is checked out | |
checkout = "#{ENV['HOME']}/openstack-cookbooks" | |
config.vm.box = "base" | |
config.vm.box_url = "http://images.ansolabs.com/vagrant/maverick64.box" | |
config.vm.network ip | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "#{checkout}/cookbooks" | |
chef.roles_path = "#{checkout}/roles" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |global_config| | |
aptdir = "#{ENV['HOME']}/aptcache/" | |
checkout = "#{ENV['HOME']}/openstack-cookbooks" | |
global_config.vm.define :chef do |config| | |
ip = "192.168.76.100" | |
# path where code is checked out | |
config.vm.box = "base" | |
config.vm.box_url = "http://images.anso.com/vagrant/maverick64.box" | |
config.vm.network ip | |
config.vm.share_folder("v-apt", "/var/cache/apt", aptdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |config| | |
ip = "192.168.76.10" | |
aptdir = "#{ENV['HOME']}/aptcache/" | |
checkout = "#{ENV['HOME']}/openstack-cookbooks" | |
config.vm.box = "base" | |
config.vm.box_url = "http://images.ansolabs.com/vagrant/maverick64.box" | |
config.vm.network(ip, :mac => "080027666010") | |
config.vm.share_folder("v-apt", "/var/cache/apt", aptdir) | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "#{checkout}/cookbooks" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |global_config| | |
aptdir = "#{ENV['HOME']}/aptcache/" | |
checkout = "#{ENV['HOME']}/openstack-cookbooks" | |
ip_prefix = (ENV['IP_PREFIX'] or "192.168.76.") | |
mac_prefix = (ENV['MAC_PREFIX'] or "080027076") | |
global_config.vm.define :chef do |config| | |
suffix = "100" | |
ip = "#{ip_prefix}#{suffix}" | |
config.vm.box = "base" | |
config.vm.box_url = "http://images.anso.com/vagrant/maverick64.box" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |global_config| | |
aptdir = "#{ENV['HOME']}/aptcache/" | |
checkout = "#{ENV['HOME']}/openstack-cookbooks" | |
ip_prefix = (ENV['IP_PREFIX'] or "192.168.76.") | |
mac_prefix = (ENV['MAC_PREFIX'] or "080027076") | |
fixed = (ENV['FIXED'] or "10.0.76.0/24") | |
global_config.vm.define :chef do |config| | |
suffix = "100" | |
ip = "#{ip_prefix}#{suffix}" | |
config.vm.box = "base" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3.1 | |
import struct | |
class BootRecord: | |
def __init__(self): | |
self.rootdir_cluster = 0 | |
def unpack(self, data): | |
offset = 0 | |
(self.boot_instructions, |
OlderNewer