~pierre-amadio/+junk/c6100-server-14.04-icehouse

« back to all changes in this revision

Viewing changes to README.txt

  • Committer: Pierre Amadio
  • Date: 2014-04-29 14:33:18 UTC
  • Revision ID: pierre.amadio@canonical.com-20140429143318-uc5pr1rbkvfwu8i6
creating user with command line

Show diffs side-by-side

added added

removed removed

Lines of Context:
518
518
 
519
519
#############################
520
520
 
521
 
Create a jumpstart tenant.
522
 
Create a pierre/ubuntu user in the jumpstart tenant.
 
521
#Create a jumpstart tenant.
 
522
keystone tenant-create --name jumpstart 
 
523
JUMPSTART_TENANT=$(keystone tenant-list |grep jumpstart |awk '{print $2}')
 
524
MEMBER_GROUP=$(keystone role-list |grep Member |awk {'print $2'})
 
525
#_MEMBER_GROUP=$(keystone role-list |grep _member_ |awk {'print $2'})
 
526
 
 
527
#Create a pierre/ubuntu user in the jumpstart tenant.
 
528
 
 
529
keystone user-create --name pierre --tenant_id $JUMPSTART_TENANT --pass ubuntu --email none@all.com
 
530
PIERRE_ID=$(keystone user-list |grep pierre|awk {'print $2'})
 
531
keystone user-role-add --user $PIERRE_ID --role $MEMBER_GROUP --tenant_id $JUMPSTART_TENANT
 
532
#keystone user-role-add --user $PIERRE_ID --role $_MEMBER_GROUP --tenant_id $JUMPSTART_TENANT
 
533
 
523
534
 
524
535
Download and push an image:
525
536
http_proxy=http://91.189.89.33:3128/ wget http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img