- echo "Your installation is now complete, follow these steps for configuring the osmclient:"
- echo
- echo "1. Get the NBI IP with the following command:"
- echo
- echo "juju status --format yaml | yq r - applications.nbi-k8s.address"
- echo
- echo "2. Create the OSM_HOSTNAME environment variable with the NBI IP"
- echo
- echo "export OSM_HOSTNAME=<NBI-IP>"
- echo
- echo "3. Add the previous command to your .bashrc for other Shell sessions"
- echo
- echo "export OSM_HOSTNAME=<previous-IP> >> ~/.bashrc"
- echo
- echo "DONE"
+ echo "Your installation is now complete, follow these steps for configuring the osmclient:"
+ echo
+ echo "1. Get the NBI IP with the following command:"
+ echo
+ echo NBI_IP='`juju status --format json | jq -rc '"'"'.applications."nbi-k8s".address'"'"'`'
+ echo
+ echo "2. Create the OSM_HOSTNAME environment variable with the NBI IP"
+ echo
+ echo "export OSM_HOSTNAME=\$NBI_IP"
+ echo
+ echo "3. Add the previous command to your .bashrc for other Shell sessions"
+ echo
+ echo "echo \"export OSM_HOSTNAME=\$NBI_IP\" >> ~/.bashrc"
+ echo
+ echo "DONE"
+ fi