Skip to content
Permalink
Browse files

collect ip

  • Loading branch information...
thanhson1085 committed Dec 11, 2018
1 parent 54e7df3 commit d45765d54be5130933fd3ea9ac81e939376487c6
Showing with 2 additions and 0 deletions.
  1. +2 −0 Vagrantfile.node
@@ -70,6 +70,8 @@ Vagrant.configure('2') do |config|
cd /vagrant
nohup bash ./node.sh<&- &>/vagrant/node.log &
HOST_IP=`ifconfig | grep 'inet' | grep -v inet6 | grep -v '127.0.0.1' | grep -v 'broadcast 172.*.255.255' | awk '{ print $2}'`
consul -http-addr=${MAIN_IP}:8500 kv put tomochain/${HOST_IP} 1
cat .sshKeys >> ~/.ssh/authorized_keys
SHELL

0 comments on commit d45765d

Please sign in to comment.
You can’t perform that action at this time.