deploy/Vagrantfile
author ymh <ymh.work@gmail.com>
Sat, 15 Sep 2018 01:24:07 +0200
changeset 2 f72ffe8b30b1
parent 0 5f4fcbc80b37
child 5 b26c9c44dd84
permissions -rw-r--r--
Correct deployment

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "maier/alpine-3.6-x86_64"

  config.vm.network "private_network", ip: "172.16.1.7"
  config.vbguest.auto_update = false

  # config.vm.provider :virtualbox do |vb|
  #   vb.gui = true
  # end

  # Enable provisioning with a shell script. Additional provisioners such as
  # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  # documentation for more information about their specific syntax and use.
  # config.vm.provision "shell", inline: <<-SHELL
  #   apt-get update
  #   apt-get install -y python python3
  # SHELL
  config.vm.provision "shell", inline: <<-SHELL
    apk update
    apk upgrade
    apk add python python3
  SHELL
  config.vm.provision "ansible" do |ansible|
    ansible.playbook = "test_playbook.yml"
    ansible.compatibility_mode = "2.0"
  end
end