Use vju (Juju and Vagrant) command to get a fresh Juju local, which haves a clean way to rumble from your host.
Shell Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
brew-formula
share
.gitignore
LICENSE
README.md

README.md

vju

Use vju (Juju and Vagrant) command to get a fresh Juju local, which haves a clean way to rumble from your host.

Dependencies:

  • Vagrant.
  • VirtualBox.
  • Vagrant plugin vagrant-triggers. Use "vju init" and it will install.

Suggested:

  • SSHFS to access files into the containers. In Mac OSX.

Install with Brew.

git clone https://github.com/sebas5384/vju.git
cd ./vju
brew install brew-formula/vju.rb
vju

Only tested in Mac OSX Yosemite.

Examples:

#####################
# Vagrant commands. #
#####################

# Initialize vju by creating a Vagrant file and downloading dependencies.
vju init

# vagrant up, and it will restart the Juju's agents.
vju up

# vagrant suspend
vju down

# vagrant ssh
vju in


########################################################
# Access the machine from your browser using a domain. #
########################################################

# Deploy an Ubuntu machine.
vju deploy ubuntu

# Deploy an Ubuntu machine called trusty-sandbox.
vju deploy ubuntu trusty-sandbox

# Will add something like '10.0.3.175  demo.local' at the end of /etc/hosts file.
vju alias ubuntu/0 ubuntu.local

# Mount the /var/www from the service machine into the host at ./www
vju mount mysite/0:/var/www www
cd www
# Umount the ./www
umount www


###########################
# Any other Juju command. #
###########################

vju status

vju add-relation mysql drupal


#####################################################
# Solve problem when deploying MYSQL charm locally. #
#####################################################

# Create a config file.
echo -e "mysql:\n  dataset-size: 512M" > mysql-config.yaml

# Deploy the charm passing the relative path.
vju deploy --config mysql-config.yaml mysql

Declaimer:

The name "vju" probably is not a final name for this command line tool.