mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-15 01:08:58 +03:00
10 lines
229 B
Bash
Executable File
10 lines
229 B
Bash
Executable File
#!/usr/bin/env bash
|
|
SCRIPTS_DIR=$(dirname $0)
|
|
|
|
for vagrant_box in $($SCRIPTS_DIR/node_names $1)
|
|
do
|
|
ip_address=$(vagrant ssh $vagrant_box -c "hostname -I | cut -d' ' -f2" 2>/dev/null)
|
|
echo "$vagrant_box $ip_address"
|
|
done
|
|
|