From e25c79da76fcd20b5654920553ffbe8f40d7c5ce Mon Sep 17 00:00:00 2001 From: Wilfried OLLIVIER Date: Wed, 30 Jan 2019 09:41:39 +0100 Subject: [PATCH] Add Vagrantfile --- .gitignore | 1 + Vagrantfile | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 .gitignore create mode 100644 Vagrantfile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..997ca2f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vagrant \ No newline at end of file diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..0a6393d --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,90 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# find ssh pub key +def guess_public_key + %w(ecdsa rsa dsa).each do |method| + path = File.expand_path "~/.ssh/id_#{method}.pub" + return IO.read path if File.exist? path + end + fail 'Public key not found.' +end + +# provision script +provision = <