Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: Vagrantfile

Issue 29784602: #11370 - Replace Vagrant box for Debian "jessie" hosts (Closed)
Patch Set: Created May 17, 2018, 10:34 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # coding: utf-8 1 # coding: utf-8
2 # vi: set fenc=utf-8 ft=ruby ts=8 sw=2 sts=2 et: 2 # vi: set fenc=utf-8 ft=ruby ts=8 sw=2 sts=2 et:
3 require 'shellwords' 3 require 'shellwords'
4 require 'yaml' 4 require 'yaml'
5 5
6 # https://issues.adblockplus.org/ticket/170 6 # https://issues.adblockplus.org/ticket/170
7 if !system('python', File.expand_path('../ensure_dependencies.py', __FILE__)) 7 if !system('python', File.expand_path('../ensure_dependencies.py', __FILE__))
8 message = 'Failed to ensure dependencies being up-to-date!' 8 message = 'Failed to ensure dependencies being up-to-date!'
9 raise Vagrant::Errors::VagrantError, message 9 raise Vagrant::Errors::VagrantError, message
10 end 10 end
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 host.vm.provision :shell, :privileged => true, :inline => <<-end 44 host.vm.provision :shell, :privileged => true, :inline => <<-end
45 python /etc/puppet/infrastructure/hiera/install_precise.py 45 python /etc/puppet/infrastructure/hiera/install_precise.py
46 end 46 end
47 47
48 # https://www.vagrantup.com/docs/synced-folders/ 48 # https://www.vagrantup.com/docs/synced-folders/
49 host.vm.synced_folder '.', sync_path, type: sync_type 49 host.vm.synced_folder '.', sync_path, type: sync_type
50 50
51 elsif record['os'] == 'debian-jessie' 51 elsif record['os'] == 'debian-jessie'
52 52
53 # https://www.vagrantup.com/docs/boxes.html 53 # https://www.vagrantup.com/docs/boxes.html
54 host.vm.box = 'debian/contrib-jessie64' 54 host.vm.box = 'sagepe/jessie'
55 host.vm.box_url = 'https://atlas.hashicorp.com/debian/boxes/contrib-jess ie64' 55 host.vm.box_check_update = false
56 56
57 # https://packages.debian.org/jessie/puppet 57 # https://packages.debian.org/jessie/puppet
58 host.vm.provision :shell, :privileged => true, :inline => <<-end 58 host.vm.provision :shell, :privileged => true, :inline => <<-end
59 set -e -- '#{sync_path}' /etc/puppet/hiera.yaml 59 set -e -- '#{sync_path}' /etc/puppet/hiera.yaml
60 if ! which puppet >/dev/null; then 60 if ! which puppet >/dev/null; then
61 apt-get -y update 61 apt-get -y update
62 apt-get -y install puppet apt-transport-https 62 apt-get -y install puppet apt-transport-https
63 fi 63 fi
64 test -e "$1" || ln -s /vagrant "$1" 64 test -e "$1" || ln -s /vagrant "$1"
65 test -e "$2" || ln -s infrastructure/hiera/hiera.yaml "$2" 65 test -e "$2" || ln -s infrastructure/hiera/hiera.yaml "$2"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 end 110 end
111 111
112 # https://github.com/mitchellh/vagrant/issues/1673 112 # https://github.com/mitchellh/vagrant/issues/1673
113 host.ssh.shell = "sh -c 'BASH_ENV=/etc/profile exec bash'" 113 host.ssh.shell = "sh -c 'BASH_ENV=/etc/profile exec bash'"
114 114
115 end 115 end
116 116
117 end 117 end
118 118
119 end 119 end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld