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 = <