Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made Deb8 VF find IP correctly #1065

Merged
merged 2 commits into from
Dec 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ansible/Vagrantfile.Debian8
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ echo "*** '$VAGRANT_MOUNT/playbooks/hosts' file for ansible-playbook contains **
cat $VAGRANT_MOUNT/playbooks/hosts
echo "---------------------------------------------------------------------------------------"
# Get IPs of the VM, and output to shared folder
ifconfig | grep "inet" | awk '{print $2}' | sed 's/addr://' >> /vagrant/playbooks/AdoptOpenJDK_Unix_Playbook/hosts.tmp
ip address show | grep -e "\\binet\\b" | cut -d' ' -f6 | cut -d/ -f1 >> /vagrant/playbooks/AdoptOpenJDK_Unix_Playbook/hosts.tmp
# Put the host machine's IP into the authorised_keys file on the VM
[ -r /vagrant/id_rsa.pub ] && mkdir -p $HOME/.ssh && cat /vagrant/id_rsa.pub >> $HOME/.ssh/authorized_keys
SCRIPT
Expand All @@ -36,7 +36,7 @@ SCRIPT
Vagrant.configure("2") do |config|

config.vm.define :adoptopenjdkD8 do |adoptopenjdkD8|
adoptopenjdkD8.vm.box = "debian/jessie64"
adoptopenjdkD8.vm.box = "roboxes/debian8"
adoptopenjdkD8.vm.synced_folder ".", "/vagrant"
adoptopenjdkD8.vm.hostname = "adoptopenjdkD8"
adoptopenjdkD8.vm.network :private_network, type: "dhcp"
Expand Down