Skip to content

Instantly share code, notes, and snippets.

Vish (Ishaya) Abrams vishvananda

View GitHub Profile
View Vagrantfile
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"
View devserver.rb
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"
View Vagrantfile
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)
View Vagrantfile
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"
View Vagrantfile
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)
View Vagrantfile
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"
View Vagrantfile
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"
View Vagrantfile
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"
View fat.py
#!/usr/bin/python3.1
import struct
class BootRecord:
def __init__(self):
self.rootdir_cluster = 0
def unpack(self, data):
offset = 0
(self.boot_instructions,
You can’t perform that action at this time.