hunk.code_window:    Copyright 2015 Internet Security Research Group
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
  
hunk.labels: replace keep keep keep keep
hunk.after_edit:    Copyright 2015 Electronic Frontier Foundation and others
  
hunk.file_path: letsencrypt-nginx/LICENSE.txt
hunk.type: replace
file: # -*- mode: ruby -*-
  # vi: set ft=ruby :
  
  # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
  VAGRANTFILE_API_VERSION = "2"
  
  # Setup instructions from docs/using.rst
  $ubuntu_setup_script = <<SETUP_SCRIPT
  cd /vagrant
  sudo ./bootstrap/ubuntu.sh
  if [ ! -d "venv" ]; then
    virtualenv --no-site-packages -p python2 venv
    ./venv/bin/pip install -r requirements.txt -e acme -e .[dev,docs,testing] -e letsencrypt-apache -e letsencrypt-nginx
  fi
  SETUP_SCRIPT
  
  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  
    config.vm.define "ubuntu-trusty", primary: true do |ubuntu_trusty|
      ubuntu_trusty.vm.box = "ubuntu/trusty64"
      ubuntu_trusty.vm.provision "shell", inline: $ubuntu_setup_script
      ubuntu_trusty.vm.provider "virtualbox" do |v|
        # VM needs more memory to run test suite, got "OSError: [Errno 12]
        # Cannot allocate memory" when running
        # letsencrypt.client.tests.display.util_test.NcursesDisplayTest
        v.memory = 1024
      end
    end
  
  end
  