Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
using jsonpath instead of grep is more elegant
Browse files Browse the repository at this point in the history
  • Loading branch information
christianh814 committed Oct 2, 2018
1 parent fcb1917 commit 639d8ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cns.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,9 @@ ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/openshift-gluste
Export `HEKETI_CLI_SERVER` with the route (and admin user/password) so you can connect to the API

```
export HEKETI_CLI_SERVER=http://$(oc get routes heketi-storage --no-headers -n glusterfs | awk '{print $2}')
export HEKETI_CLI_SERVER=http://$(oc get routes heketi-storage -n glusterfs -o jsonpath='{.spec.host}')
export HEKETI_CLI_KEY=$(oc get secrets heketi-storage-admin-secret -n glusterfs -o jsonpath='{.data.key}' | base64 -d)
export HEKETI_CLI_USER=admin
```

I would save this in `/etc/bashrc`
Expand Down

0 comments on commit 639d8ef

Please sign in to comment.