diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-11-10 17:02:24 -0500 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2016-11-14 08:50:43 -0500 |
commit | ce4034672fa8f2371b8bbf52ff04747583b4edda (patch) | |
tree | 34403dafc484ebb4f0379dc577aad3330facd3ac /roles/etcd/etcdctl.sh | |
parent | a5f4561d8cdfd974705105275f718cee9bb249ad (diff) | |
download | openshift-ce4034672fa8f2371b8bbf52ff04747583b4edda.tar.gz openshift-ce4034672fa8f2371b8bbf52ff04747583b4edda.tar.bz2 openshift-ce4034672fa8f2371b8bbf52ff04747583b4edda.tar.xz openshift-ce4034672fa8f2371b8bbf52ff04747583b4edda.zip |
Add updates for containerized
Diffstat (limited to 'roles/etcd/etcdctl.sh')
-rw-r--r-- | roles/etcd/etcdctl.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/etcd/etcdctl.sh b/roles/etcd/etcdctl.sh new file mode 100644 index 000000000..0e324a8a9 --- /dev/null +++ b/roles/etcd/etcdctl.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Sets up handy aliases for etcd, need etcdctl2 and etcdctl3 because +# command flags are different between the two. Should work on stand +# alone etcd hosts and master + etcd hosts too because we use the peer keys. +etcdctl2() { + /usr/bin/etcdctl --cert-file /etc/etcd/peer.crt --key-file /etc/etcd/peer.key --ca-file /etc/etcd/ca.crt -C https://`hostname`:2379 ${@} +} + +etcdctl3() { + ETCDCTL_API=3 /usr/bin/etcdctl --cert /etc/etcd/peer.crt --key /etc/etcd/peer.key --cacert /etc/etcd/ca.crt --endpoints https://`hostname`:2379 ${@} +} |