Commit 9640afa78a133dd6b35452f036b489fbf07152cd

Authored by Sergio Oliveira
1 parent ca129ce1

Using vagrant keys for colab user (vagrant only)

Showing 2 changed files with 7 additions and 0 deletions   Show diff stats
Vagrantfile
... ... @@ -81,4 +81,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
81 81 puppet.manifests_path = "puppet/manifests"
82 82 puppet.manifest_file = "init.pp"
83 83 end
  84 +
  85 + config.vm.provision :shell, :path => "puppet/colab-key.sh"
84 86 end
... ...
puppet/colab-key.sh 0 → 100755
... ... @@ -0,0 +1,5 @@
  1 +#!/bin/bash
  2 +
  3 +mkdir -p ~colab/.ssh/ --mode=700
  4 +cp ~vagrant/.ssh/authorized_keys ~colab/.ssh/authorized_keys
  5 +chown -fR colab:colab ~colab/.ssh/
... ...