File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed
Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 11Vagrant . configure ( 2 ) do |config |
2- config . vm . box = "ubuntu/trusty32 "
2+ config . vm . box = "hashicorp/precise32 "
33
4- config . vm . provision "ansible" do |ansible |
5- ansible . playbook = "playbook.yml"
6- ansible . groups = {
7- "vagrant" => [ "default" ] ,
8- }
9- end
4+ config . vm . provision "shell" , path : "scripts/deploy.sh"
105end
Original file line number Diff line number Diff line change 1+ #! /bin/bash -e
2+
3+ # Create tramp user.
4+
5+ adduser test
6+ sudo -u test mkdir -p /home/test/.ssh
7+ cat $HOME /.ssh/id_rsa.pub | sudo -u test cat > /home/test/.ssh/authorized_keys
8+
9+ # Register tramp host.
10+
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
You can’t perform that action at this time.
0 commit comments