×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Vincent Dagonneau
Added: Jun 8, 2016 12:39 PM
Views: 6
Tags: no tags
  1. #!/bin/bash
  2. #
  3. # Script to install a keystone identity server
  4.  
  5. sudo apt-get install mariadb-client
  6.  
  7. mysql \
  8.   --user=${MARIADB_USERNAME} \
  9.   --password=${MARIADB_PASSWORD} \
  10.   --host=${MARIADB_HOST}
  11.   --execute="CREATE DATABASE keystone;
  12.    GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost'  IDENTIFIED BY '${KEYSTONE_DATABASE_PASSWORD}';
  13.    GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY '${KEYSTONE_DATABASE_PASSWORD}';
  14.  "