SELinuxGame / selinuxgame.org

The code powering selinuxgame.org
http://selinuxgame.org
Other
12 stars 3 forks source link

Vagrantfile does not work for vagrant 1.8.1 #14

Open dkliban opened 7 years ago

dkliban commented 7 years ago
$ sudo vagrant up all_about_context_part_1
Bringing machine 'all_about_context_part_1' up with 'libvirt' provider...
==> all_about_context_part_1: Box 'selinuxgame/all_about_context_part_1' could not be found. Attempting to find and install...
    all_about_context_part_1: Box Provider: libvirt
    all_about_context_part_1: Box Version: >= 0
==> all_about_context_part_1: Loading metadata for box 'selinuxgame/all_about_context_part_1'
    all_about_context_part_1: URL: https://atlas.hashicorp.com/selinuxgame/all_about_context_part_1
==> all_about_context_part_1: Adding box 'selinuxgame/all_about_context_part_1' (v0.0.1-0.2.beta) for provider: libvirt
    all_about_context_part_1: Downloading: https://atlas.hashicorp.com/selinuxgame/boxes/all_about_context_part_1/versions/0.0.1-0.2.beta/providers/libvirt.box
/usr/share/vagrant/lib/vagrant/action/builtin/box_add.rb:361:in `box_add': undefined method `name' for nil:NilClass (NoMethodError)
    from /usr/share/vagrant/lib/vagrant/action/builtin/box_add.rb:266:in `add_from_metadata'
    from /usr/share/vagrant/lib/vagrant/action/builtin/box_add.rb:104:in `call'
    from /usr/share/vagrant/lib/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/lib/vagrant/action/builder.rb:116:in `call'
    from /usr/share/vagrant/lib/vagrant/action/runner.rb:66:in `block in run'
    from /usr/share/vagrant/lib/vagrant/util/busy.rb:19:in `busy'
    from /usr/share/vagrant/lib/vagrant/action/runner.rb:66:in `run'
    from /usr/share/vagrant/lib/vagrant/action/builtin/handle_box.rb:82:in `handle_box'
    from /usr/share/vagrant/lib/vagrant/action/builtin/handle_box.rb:42:in `block in call'
    from /usr/share/vagrant/lib/vagrant/action/builtin/handle_box.rb:36:in `synchronize'
    from /usr/share/vagrant/lib/vagrant/action/builtin/handle_box.rb:36:in `call'
    from /usr/share/vagrant/lib/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/handle_storage_pool.rb:50:in `call'
    from /usr/share/vagrant/lib/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.0.32/lib/vagrant-libvirt/action/set_name_of_domain.rb:35:in `call'
    from /usr/share/vagrant/lib/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
    from /usr/share/vagrant/lib/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/lib/vagrant/action/builder.rb:116:in `call'
    from /usr/share/vagrant/lib/vagrant/action/runner.rb:66:in `block in run'
    from /usr/share/vagrant/lib/vagrant/util/busy.rb:19:in `busy'
    from /usr/share/vagrant/lib/vagrant/action/runner.rb:66:in `run'
    from /usr/share/vagrant/lib/vagrant/action/builtin/call.rb:53:in `call'
    from /usr/share/vagrant/lib/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /usr/share/vagrant/lib/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/lib/vagrant/action/builder.rb:116:in `call'
    from /usr/share/vagrant/lib/vagrant/action/runner.rb:66:in `block in run'
    from /usr/share/vagrant/lib/vagrant/util/busy.rb:19:in `busy'
    from /usr/share/vagrant/lib/vagrant/action/runner.rb:66:in `run'
    from /usr/share/vagrant/lib/vagrant/machine.rb:224:in `action_raw'
    from /usr/share/vagrant/lib/vagrant/machine.rb:199:in `block in action'
    from /usr/share/vagrant/lib/vagrant/environment.rb:561:in `lock'
    from /usr/share/vagrant/lib/vagrant/machine.rb:185:in `call'
    from /usr/share/vagrant/lib/vagrant/machine.rb:185:in `action'
    from /usr/share/vagrant/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'

This is fixed by adding the follwoing to the Vagrantfile

selinuxgame.vm.box_url = "https://atlas.hashicorp.com/selinuxgame/boxes/all_about_context_part_1/versions/0.0.1-0.2.beta/providers/libvirt.box"

on line 16

We need to figuree out how to generalize this.