This is a Vagrant 1.7+ plugin that adds a Junos guest to Vagrant, allowing for OS detection and initial configuration
NOTE: This plugin requires Vagrant 1.7+,
Features
- Detect vSRX guest instances automatically, or via Vagrantfile. The default boxes on Juniper's Atlas site have
config.vm.guest
explicitly set to Junos. - Set the hostname via Vagrantfile -
config.vm.hostname
- Support Vagrantfile SSH settings -
config.ssh.private_key_path
, etc. - Network configuration of ge-0/0/1.0 through ge-0/0/9.0 (dhcp or static)
- TBD: anything you request via issues
Usage
Install using standard Vagrant 1.7+ plugin installation methods. The fastest way to get started is to use the standard Vagrant Cloud images:
$ vagrant plugin install vagrant-junos
...
... (create a Vagrant environment in a directory):
$ vagrant init juniper/ffp-12.1X46-D20.5
...
$ vagrant up
Quick Start
TODO: Add docs on Vagrantfile settings
Configuration
TODO: Add docs on Vagrantfile settings, and Ruby snippets
Development
To work on the vagrant-junos
plugin, clone this repository out, and use
Bundler to get the dependencies:
$ bundle
Once you have the dependencies, verify the unit tests pass with rake
:
$ bundle exec rake
If those pass, you're ready to start developing the plugin. You can test
the plugin without installing it into your Vagrant environment by just
creating a Vagrantfile
in the top level of this directory (it is gitignored)
and add the following line to your Vagrantfile
Vagrant.require_plugin "vagrant-junos"
Use bundler to execute Vagrant:
$ bundle exec vagrant up juniper/ffp-12.1X46-D20.5
Notes
Other than installing this plugin, the next recommended step is to check out the boxes at Juniper's Atlas site.