diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-08 12:54:21 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-08 12:55:56 +0300 |
commit | 5dd552d949c03059557f3cc3c6f7a320a0bf9e01 (patch) | |
tree | aba85ca9dc5fef85be8c8f7df923313b6600db92 /Vagrantfile | |
parent | aur: 0.0.2-1 (diff) | |
download | linux-status-5dd552d949c03059557f3cc3c6f7a320a0bf9e01.tar.gz linux-status-5dd552d949c03059557f3cc3c6f7a320a0bf9e01.zip |
aur: add Vagrantfile, Makefile, etc.
Diffstat (limited to '')
-rw-r--r-- | Vagrantfile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..e9f3b7a --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,32 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +NAME = 'Egor Tensin' +EMAIL = 'Egor.Tensin@gmail.com' + +Vagrant.configure("2") do |config| + config.vm.box = "archlinux/archlinux" + + config.vm.provider "libvirt" do |v| + v.cpus = 2 + v.memory = 4096 + end + + # Install the required packages: + config.vm.provision "shell", inline: <<-SHELL +#!/usr/bin/env bash +set -o errexit -o nounset -o pipefail +pacman --noconfirm -Syu base-devel git + SHELL + + # Working with the git repository: + config.vm.provision "shell", privileged: false, inline: <<-SHELL +#!/usr/bin/env bash +set -o errexit -o nounset -o pipefail +git config --global user.name '#{NAME}' +git config --global user.email '#{EMAIL}' + SHELL + config.ssh.forward_agent = true + + config.vm.provision :reload +end |