Created
June 20, 2016 04:53
-
-
Save mitake/c86ddc353929d1663c7b102282f7dc8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
export ETCDCTL_API=3 | |
ETCDCTL=bin/etcdctl | |
echo p | $ETCDCTL user add root --interactive=false | |
echo p | $ETCDCTL user add u1 --interactive=false | |
$ETCDCTL role add root | |
$ETCDCTL role add r1 | |
$ETCDCTL user grant root root | |
$ETCDCTL user grant u1 r1 | |
$ETCDCTL role grant r1 readwrite k1 k5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment