Skip to content

Instantly share code, notes, and snippets.

@camshaft
Created November 14, 2013 22:08
Show Gist options
  • Save camshaft/7475163 to your computer and use it in GitHub Desktop.
Save camshaft/7475163 to your computer and use it in GitHub Desktop.
bootstrap riak with the datatype bucket types
#!/bin/bash
: ${TYPES:="map set counter"}
for TYPE in $TYPES
do
./bin/riak-admin bucket-type create $TYPE '{"props": {"datatype": "'$TYPE'", "allow_mult": true}}'
./bin/riak-admin bucket-type activate $TYPE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment