Created
April 25, 2011 19:58
-
-
Save mrchrisadams/941092 to your computer and use it in GitHub Desktop.
A support gist for an issue raised on github
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
8:55pm redmine ❼» vagrant up ~/Servers/Memset/antiaa1/redmine | |
/Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/vm/network.rb:38:in `verify_no_bridge_collision': undefined method `network_interfaces' for nil:NilClass (NoMethodError) | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/vm/network.rb:16:in `initialize' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/vm/network.rb:15:in `each' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/vm/network.rb:15:in `initialize' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/warden.rb:65:in `new' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/warden.rb:65:in `finalize_action' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/warden.rb:18:in `initialize' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/warden.rb:18:in `map' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/warden.rb:18:in `initialize' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/builder.rb:115:in `new' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/builder.rb:115:in `to_app' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action/builder.rb:120:in `call' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action.rb:131:in `run' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/util/busy.rb:19:in `busy' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/action.rb:131:in `run' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/vm.rb:137:in `up' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/command/up.rb:13:in `execute' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/command/up.rb:8:in `each' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/command/up.rb:8:in `execute' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/task.rb:22:in `send' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/task.rb:22:in `run' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/config.rb:115:in `map' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/core_ext/ordered_hash.rb:73:in `each' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `send' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `invoke' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/lib/vagrant/cli.rb:45:in `up' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/task.rb:22:in `send' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/task.rb:22:in `run' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/thor-0.14.6/lib/thor/base.rb:389:in `start' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/gems/vagrant-0.7.3/bin/vagrant:15 | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/bin/vagrant:19:in `load' | |
from /Users/chrisadams/.rvm/gems/ruby-1.8.7-p334/bin/vagrant:19 |
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
8:55pm redmine ❼» gem list ~/Servers/Memset/antiaa1/redmine 1 ↵ | |
*** LOCAL GEMS *** | |
abstract (1.0.0) | |
archive-tar-minitar (0.5.2) | |
bundler (1.0.12, 1.0.11) | |
bunny (0.6.0) | |
chef (0.9.16, 0.9.14) | |
columnize (0.3.2) | |
erubis (2.7.0, 2.6.6) | |
extlib (0.9.15) | |
ffi (1.0.7, 0.6.3) | |
gemedit (1.0.0) | |
ghost (0.2.8) | |
highline (1.6.1) | |
i18n (0.5.0, 0.4.2) | |
json (1.5.1, 1.4.6) | |
linecache (0.43) | |
mario (0.1.3, 0.0.6) | |
mime-types (1.16) | |
minitest (2.1.0) | |
mixlib-authentication (1.1.4) | |
mixlib-cli (1.2.0) | |
mixlib-config (1.1.2) | |
mixlib-log (1.3.0) | |
moneta (0.6.0) | |
net-scp (1.0.4) | |
net-ssh (2.1.4, 2.0.24) | |
net-ssh-gateway (1.0.1) | |
net-ssh-multi (1.1) | |
ohai (0.6.2, 0.5.8) | |
rake (0.8.7) | |
rest-client (1.6.1) | |
ruby-debug (0.10.4) | |
ruby-debug-base (0.10.4) | |
spatula (0.0.10) | |
ssh-forever (0.2.3) | |
systemu (2.2.0, 1.2.0) | |
thor (0.14.6) | |
uuidtools (2.1.2) | |
vagrant (0.7.3) | |
vagrant-spatula (0.0.2) | |
virtualbox (0.8.3) | |
yajl-ruby (0.8.2) | |
yard (0.6.8, 0.6.6) |
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
require 'rubygems' | |
require 'ghost' | |
Vagrant::Config.run do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "centos-5.5-x64" | |
# The url from where the 'config.vm.box' box will be fetched if it | |
# doesn't already exist on the user's system. | |
# config.vm.box_url = "http://domain.com/path/to/above.box" | |
# Boot with a GUI so you can see the screen. (Default is headless) | |
config.vm.boot_mode = :gui | |
# Assign this VM to a host only network IP, allowing you to access it | |
# via the IP. | |
config.vm.network "33.33.33.10" | |
# Host.delete('redmine.dev') | |
# Host.add('redmine.dev', "33.33.33.10") | |
# Forward a port from the guest to the host, which allows for outside | |
# computers to access the VM, whereas host only networking does not. | |
# config.vm.forward_port "http", 80, 8080 | |
# Share an additional folder to the guest VM. The first argument is | |
# an identifier, the second is the path on the guest to mount the | |
# folder, and the third is the path on the host to the actual folder. | |
config.vm.share_folder "v-data", "/vagrant_data", "data" | |
# Enable provisioning with Puppet stand alone. Puppet manifests | |
# are contained in a directory path relative to this Vagrantfile. | |
# You will need to create the manifests directory and a manifest in | |
# the file base.pp in the manifests_path directory. | |
# | |
# An example Puppet manifest to provision the message of the day: | |
# | |
# # File { owner => 0, group => 0, mode => 0644 } | |
# # | |
# # file { '/etc/motd': | |
# # content => "Welcome to your Vagrant-built virtual machine! | |
# # Managed by Puppet.\n" | |
# # } | |
# | |
# config.vm.provision :puppet do |puppet| | |
# puppet.manifests_path = "manifests" | |
# puppet.manifest_file = "base.pp" | |
# end | |
# Enable provisioning with chef solo, specifying a cookbooks path (relative | |
# to this Vagrantfile), and adding some recipes and/or roles. | |
# | |
# config.vm.provision :chef_solo do |chef| | |
# chef.cookbooks_path = "cookbooks" | |
# chef.add_recipe "mysql" | |
# chef.add_role "web" | |
# | |
# # You may also specify custom JSON attributes: | |
# chef.json.merge!({ :mysql_password => "foo" }) | |
# end | |
# Enable provisioning with chef server, specifying the chef server URL, | |
# and the path to the validation key (relative to this Vagrantfile). | |
# | |
# The Opscode Platform uses HTTPS. Substitute your organization for | |
# ORGNAME in the URL and validation key. | |
# | |
# If you have your own Chef Server, use the appropriate URL, which may be | |
# HTTP instead of HTTPS depending on your configuration. Also change the | |
# validation key to validation.pem. | |
# | |
# config.vm.provision :chef_server do |chef| | |
# chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME" | |
# chef.validation_key_path = "ORGNAME-validator.pem" | |
# end | |
# | |
# If you're using the Opscode platform, your validator client is | |
# ORGNAME-validator, replacing ORGNAME with your organization name. | |
# | |
# IF you have your own Chef Server, the default validation client name is | |
# chef-validator, unless you changed the configuration. | |
# | |
# chef.validation_client_name = "ORGNAME-validator" | |
end |
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
class Project < Thor | |
desc "add_dev_url", "Set up project.dev domain on local machine," | |
def add_dev_url | |
invoke :remove_dev_url | |
Host.add('project.dev', '33.33.33.10') | |
end | |
desc "remove_dev_url", "Remove project.dev url from dns on local machine" | |
def remove_dev_url | |
Host.delete('project.dev') | |
end | |
desc "vagrant_up", "set up VM for development" | |
def vagrant_up | |
invoke :add_dev_url | |
system "vagrant up" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment