From 9640afa78a133dd6b35452f036b489fbf07152cd Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Fri, 2 Aug 2013 16:16:47 -0300 Subject: [PATCH] Using vagrant keys for colab user (vagrant only) --- Vagrantfile | 2 ++ puppet/colab-key.sh | 5 +++++ 2 files changed, 7 insertions(+), 0 deletions(-) create mode 100755 puppet/colab-key.sh diff --git a/Vagrantfile b/Vagrantfile index 4d6f216..6d22c10 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -81,4 +81,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| puppet.manifests_path = "puppet/manifests" puppet.manifest_file = "init.pp" end + + config.vm.provision :shell, :path => "puppet/colab-key.sh" end diff --git a/puppet/colab-key.sh b/puppet/colab-key.sh new file mode 100755 index 0000000..67c1202 --- /dev/null +++ b/puppet/colab-key.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +mkdir -p ~colab/.ssh/ --mode=700 +cp ~vagrant/.ssh/authorized_keys ~colab/.ssh/authorized_keys +chown -fR colab:colab ~colab/.ssh/ -- libgit2 0.21.2