Skip to content

Latest commit

 

History

History

vagrant-ubuntu-14-puppet-java

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Vagrant Ubuntu 14.04 Puppet Java

Simple example showing how to provision a Ubuntu 14.04 VM with Java (jre) using Vagrant and Puppet.

Created and tested on Mac OSX 10.9.5, Vagrant 1.6.3, VirtualBox 4.3.6, otherwise using versions/boxes given in VagrantFile and Puppet config.

Start

# Starts up VM and runs puppet to setup, downloading box if necessary
vagrant up
# can run vagrant ssh and run which java to see jre installed

Details

Used puppetlabs-java v1.1.2 module to puppetize installing java, added using:

puppet module install puppetlabs-java  --modulepath puppet/modules

On the version of ubuntu box I had the java module failed due to missing dependencies and needed to run 'sudo apt-get update' to find them. I added this to the vagrant script using a shell provisioner, though a better solution would be either run in puppet before java class or directly include all packages.

Notes

This is a bare bones example and does not include any security or configuration best practise, so do not use in production.

Any change to the puppet files requires you to run 'vagrant provision' to update.