Skip to content

mikegager/vagrant-provision

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Provisioning Scripts

Scripts for provisioning machines. Primarly used to provision vagrant instances, but can be used with cloud images or traditional machines as well.

Vagrant

Vagrant.configure(2) do |config|
  config.vm.define "ubuntu1404", primary: true do |guest|
    guest.vm.box = "minimal/trusty64"

    # oracle java 8
    #  optional arguments
    #   type: defaults to "server-jre", but could also be "jre" or "jdk"
    #   version: defaults to "1.8.0_91", but could also be "1.8.0_74"
    config.vm.provision "shell", path: "https://raw.githubusercontent.com/jjlauer/vagrant-provision/master/linux/bootstrap-java8.sh",
      args: ["--type=server-jre"]

    # mysql 5.7
    #  optional arguments
    #   rootpw: defaults to "test"
    #   version: defaults to "5.7.12" but could be any valid 5.7.x version
    #   createdb: defaults to empty but is a database name to create
    config.vm.provision "shell", path: "https://raw.githubusercontent.com/jjlauer/vagrant-provision/master/linux/bootstrap-mysql57.sh",
      args: ["--rootpw=test", "--version=5.7.12", "--createdb=mydb"]
  end
end

Non-vagrant (e.g. in a shell)

curl -O https://raw.githubusercontent.com/jjlauer/vagrant-provision/master/linux/bootstrap-java8.sh
chmod +x ./bootstrap-java8.sh
sudo ./bootstrap-java8.sh

About

Provision scripts for vagrant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%