Skip to end of metadata
Go to start of metadata

Installing vagrant

sudo gem install vagrant

Create Fedora 16 vagrant box:

Create Fedora 16 vagrant box using veewee:

We use peewee to install (http://www.ducea.com/2011/08/15/building-vagrant-boxes-with-veewee/)

sudo gem install veewee

Got an error for installation of documentation for builder-3.0.0:

ERROR:  While generating documentation for builder-3.0.0
... MESSAGE:   Unhandled special: Special: type=17, text="<!-- HI -->"
... RDOC args: --ri --op /opt/local/lib/ruby/gems/1.8/doc/builder-3.0.0/ri --title Builder -- Easy XML Building --main README.rdoc --line-numbers lib CHANGES Rakefile README README.rdoc TAGS doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-3.0.0 Documentation --quiet

Couldn't find a fix for it, but it seems to be working anyway.

Check install:

vagrant basebox templates

You should get a list of base boxes, including:

(…)
vagrant basebox define '<boxname>' 'Fedora-16-i386'
(…)

Make a place for the box:

mkdir vagrant-veewee
cd vagrant-veewee

If you don't see that on there, make sure you got the latest veewee

Get a base box ready for tweaking:

vagrant basebox define 'fedora-16' 'Fedora-16-i386'

Files in definitions/fedora-16 can be tweaked, I left them untouched.

vagrant basebox build 'fedora-16'

Validate:

vagrant basebox validate 'fedora-16'

Export and add to vagrant:

vagrant basebox export 'fedora-16'
vagrant box add 'fedora-16' 'fedora-16.box'

Setup project:

Initialialize a project (set up some required file for us to edit)

mkdir vagrant_project
cd vagrant_project
vagrant init

Edit the Vagrant file, so that the properties are as marked below

config.vm.box = "fedora-16"
  config.vm.boot_mode = :gui

Test what we got so far:

vagrant up

yay, it's working!

vagrant destroy

Shared Folder:

edit Vagrant

 

config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "fedora-16.pp"
end

 
  • No labels