Juju quickstart should support vagrant

Bug #1366630 reported by Jorge Castro
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-quickstart
Triaged
Low
Unassigned

Bug Description

We'd like to see:

    juju quickstart developer

Then

a) Install vagrant
b) Set up a barebones Vagrantfile
c) Downloads the Ubuntu Juju vagrantbox
c) Set up shared directories between host OS and the box.
d) Set up a charm structure in this charm directory.

This way people can just get started with a charm developer environment on all three OSes with minimal effort. We talked about this a little bit at the cloud sprint and this bug is meant to be a metabug tracking the workflow.

Revision history for this message
Francesco Banconi (frankban) wrote :

Some notes:
a) Install vagrant

OSX:
brew install caskroom/cask/brew-cask
brew cask install vagrant

UBUNTU:
$ apt-get install vagrant

Detect whether the user already has vbox or vmware installed: if so, use those
with a disclaimer for vmware (not tested, experimental mode).
If none is installed, tell the user to go install vbox (link to vagrant docs).

b) Set up a barebones Vagrantfile

In this example, quickstart is just the arbitrary name assigned to the machine.
$ vagrant add quickstart http://cloud-images.ubuntu.com/vagrant/trusty/current/[name with juju in it]
!!! We need a vagrant image for vmware.
The command above creates a machine template in ~/.vagrant.d/boxes/quickstart
$ vagrant init quickstart
It creates a new configuration for the machine in the current directory.
$ vagrant up
The above must be run from the directory containing the config file, it starts
the box and wait until it's ready. Since we used the "juju" vagrant file, when
the machine is bootstrapped also a juju environment is bootstrapped. Also the
Juju GUI is deployed automatically on the LXC environment.

c) Downloads the Ubuntu Juju vagrantbox
???

c) Set up shared directories between host OS and the box.
This is already done by the ubuntu juju vagrant images.

d) Set up a charm structure in this charm directory.
This is out of scope for quickstart.

Done.

Changed in juju-quickstart:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.