deploy/Vagrantfile
author ymh <ymh.work@gmail.com>
Fri, 30 Nov 2018 10:53:15 +0100
changeset 183 f8f3af9e5c83
parent 180 62bffc051e1c
permissions -rw-r--r--
Change the settings to avoid using Session authentication for rest framework as it raise exceptions in case client and backend are on the same domain On the filter, adapt to take into account new version of django_filters

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

Vagrant.configure("2") do |config|
#  config.vm.box = "maier/alpine-3.6-x86_64"
  config.vm.box = "generic/alpine38"
  config.vm.provider "virtualbox" do |v|
    # v.default_nic_type = "Am79C973"
    v.default_nic_type = "virtio"
  end
  config.vm.network "private_network", ip: "172.16.1.7", auto_config: false
  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