We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 959b3f5 commit 6d76604Copy full SHA for 6d76604
2 files changed
Vagrantfile
@@ -1,10 +1,5 @@
1
Vagrant.configure(2) do |config|
2
- config.vm.box = "ubuntu/trusty32"
+ config.vm.box = "hashicorp/precise32"
3
4
- config.vm.provision "ansible" do |ansible|
5
- ansible.playbook = "playbook.yml"
6
- ansible.groups = {
7
- "vagrant" => ["default"],
8
- }
9
- end
+ config.vm.provision "shell", path: "scripts/deploy.sh"
10
end
scripts/deploy.sh
@@ -0,0 +1,14 @@
+#!/bin/bash -e
+
+# Create tramp user.
+adduser test
+sudo -u test mkdir -p /home/test/.ssh
+cat $HOME/.ssh/id_rsa.pub | sudo -u test cat > /home/test/.ssh/authorized_keys
+# Register tramp host.
11
+ssh-keygen -t rsa -b 4096 -f $HOME/.ssh/id_rsa -N ''
12
+touch $HOME/.ssh/known_hosts
13
+ssh-keygen -R localhost
14
+ssh-keyscan -H localhost > $HOME/.ssh/known_hosts
0 commit comments