diff options
author | Dolph Mathews <dolph.mathews@gmail.com> | 2012-10-03 18:19:43 +0000 |
---|---|---|
committer | Dolph Mathews <dolph.mathews@gmail.com> | 2012-10-04 13:48:12 +0000 |
commit | c585193788af20fcf6dc7e84d95725ddf299c8c4 (patch) | |
tree | e8a0a651a4d00556a397d40df7044fbab49ed2ac /tools | |
parent | 1262a07277468dd48ba2167849fecf4c4766784b (diff) | |
download | keystone-c585193788af20fcf6dc7e84d95725ddf299c8c4.tar.gz |
Replaced underscores with dashes
Change-Id: I8e59891c6a532b9aaeffd2b69608ae4c7a4d2ab7
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/sample_data.sh | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/tools/sample_data.sh b/tools/sample_data.sh index ced89dc48..3a9ae0578 100755 --- a/tools/sample_data.sh +++ b/tools/sample_data.sh @@ -120,16 +120,16 @@ NETADMIN_ROLE=$(get_id keystone role-create --name=netadmin) # Add Roles to Users in Tenants -keystone user-role-add --user_id $ADMIN_USER --role_id $ADMIN_ROLE --tenant_id $ADMIN_TENANT -keystone user-role-add --user_id $DEMO_USER --role_id $MEMBER_ROLE --tenant_id $DEMO_TENANT -keystone user-role-add --user_id $DEMO_USER --role_id $SYSADMIN_ROLE --tenant_id $DEMO_TENANT -keystone user-role-add --user_id $DEMO_USER --role_id $NETADMIN_ROLE --tenant_id $DEMO_TENANT -keystone user-role-add --user_id $DEMO_USER --role_id $MEMBER_ROLE --tenant_id $INVIS_TENANT -keystone user-role-add --user_id $ADMIN_USER --role_id $ADMIN_ROLE --tenant_id $DEMO_TENANT +keystone user-role-add --user-id $ADMIN_USER --role-id $ADMIN_ROLE --tenant-id $ADMIN_TENANT +keystone user-role-add --user-id $DEMO_USER --role-id $MEMBER_ROLE --tenant-id $DEMO_TENANT +keystone user-role-add --user-id $DEMO_USER --role-id $SYSADMIN_ROLE --tenant-id $DEMO_TENANT +keystone user-role-add --user-id $DEMO_USER --role-id $NETADMIN_ROLE --tenant-id $DEMO_TENANT +keystone user-role-add --user-id $DEMO_USER --role-id $MEMBER_ROLE --tenant-id $INVIS_TENANT +keystone user-role-add --user-id $ADMIN_USER --role-id $ADMIN_ROLE --tenant-id $DEMO_TENANT # TODO(termie): these two might be dubious -keystone user-role-add --user_id $ADMIN_USER --role_id $KEYSTONEADMIN_ROLE --tenant_id $ADMIN_TENANT -keystone user-role-add --user_id $ADMIN_USER --role_id $KEYSTONESERVICE_ROLE --tenant_id $ADMIN_TENANT +keystone user-role-add --user-id $ADMIN_USER --role-id $KEYSTONEADMIN_ROLE --tenant-id $ADMIN_TENANT +keystone user-role-add --user-id $ADMIN_USER --role-id $KEYSTONESERVICE_ROLE --tenant-id $ADMIN_TENANT # Services @@ -139,13 +139,13 @@ keystone service-create --name=nova \ --description="Nova Compute Service") NOVA_USER=$(get_id keystone user-create --name=nova \ --pass="$SERVICE_PASSWORD" \ - --tenant_id $SERVICE_TENANT \ + --tenant-id $SERVICE_TENANT \ --email=nova@example.com) -keystone user-role-add --tenant_id $SERVICE_TENANT \ - --user_id $NOVA_USER \ - --role_id $ADMIN_ROLE +keystone user-role-add --tenant-id $SERVICE_TENANT \ + --user-id $NOVA_USER \ + --role-id $ADMIN_ROLE if [[ -n "$ENABLE_ENDPOINTS" ]]; then - keystone endpoint-create --region RegionOne --service_id $NOVA_SERVICE \ + keystone endpoint-create --region RegionOne --service-id $NOVA_SERVICE \ --publicurl 'http://localhost:$(compute_port)s/v1.1/$(tenant_id)s' \ --adminurl 'http://localhost:$(compute_port)s/v1.1/$(tenant_id)s' \ --internalurl 'http://localhost:$(compute_port)s/v1.1/$(tenant_id)s' @@ -156,7 +156,7 @@ keystone service-create --name=ec2 \ --type=ec2 \ --description="EC2 Compatibility Layer") if [[ -n "$ENABLE_ENDPOINTS" ]]; then - keystone endpoint-create --region RegionOne --service_id $EC2_SERVICE \ + keystone endpoint-create --region RegionOne --service-id $EC2_SERVICE \ --publicurl http://localhost:8773/services/Cloud \ --adminurl http://localhost:8773/services/Admin \ --internalurl http://localhost:8773/services/Cloud @@ -168,13 +168,13 @@ keystone service-create --name=glance \ --description="Glance Image Service") GLANCE_USER=$(get_id keystone user-create --name=glance \ --pass="$SERVICE_PASSWORD" \ - --tenant_id $SERVICE_TENANT \ + --tenant-id $SERVICE_TENANT \ --email=glance@example.com) -keystone user-role-add --tenant_id $SERVICE_TENANT \ - --user_id $GLANCE_USER \ - --role_id $ADMIN_ROLE +keystone user-role-add --tenant-id $SERVICE_TENANT \ + --user-id $GLANCE_USER \ + --role-id $ADMIN_ROLE if [[ -n "$ENABLE_ENDPOINTS" ]]; then - keystone endpoint-create --region RegionOne --service_id $GLANCE_SERVICE \ + keystone endpoint-create --region RegionOne --service-id $GLANCE_SERVICE \ --publicurl http://localhost:9292/v1 \ --adminurl http://localhost:9292/v1 \ --internalurl http://localhost:9292/v1 @@ -185,7 +185,7 @@ keystone service-create --name=keystone \ --type=identity \ --description="Keystone Identity Service") if [[ -n "$ENABLE_ENDPOINTS" ]]; then - keystone endpoint-create --region RegionOne --service_id $KEYSTONE_SERVICE \ + keystone endpoint-create --region RegionOne --service-id $KEYSTONE_SERVICE \ --publicurl 'http://localhost:$(public_port)s/v2.0' \ --adminurl 'http://localhost:$(admin_port)s/v2.0' \ --internalurl 'http://localhost:$(admin_port)s/v2.0' @@ -196,7 +196,7 @@ keystone service-create --name="nova-volume" \ --type=volume \ --description="Nova Volume Service") if [[ -n "$ENABLE_ENDPOINTS" ]]; then - keystone endpoint-create --region RegionOne --service_id $VOLUME_SERVICE \ + keystone endpoint-create --region RegionOne --service-id $VOLUME_SERVICE \ --publicurl 'http://localhost:8776/v1/$(tenant_id)s' \ --adminurl 'http://localhost:8776/v1/$(tenant_id)s' \ --internalurl 'http://localhost:8776/v1/$(tenant_id)s' @@ -213,13 +213,13 @@ if [[ -n "$ENABLE_SWIFT" ]]; then --description="Swift Service") SWIFT_USER=$(get_id keystone user-create --name=swift \ --pass="$SERVICE_PASSWORD" \ - --tenant_id $SERVICE_TENANT \ + --tenant-id $SERVICE_TENANT \ --email=swift@example.com) - keystone user-role-add --tenant_id $SERVICE_TENANT \ - --user_id $SWIFT_USER \ - --role_id $ADMIN_ROLE + keystone user-role-add --tenant-id $SERVICE_TENANT \ + --user-id $SWIFT_USER \ + --role-id $ADMIN_ROLE if [[ -n "$ENABLE_ENDPOINTS" ]]; then - keystone endpoint-create --region RegionOne --service_id $SWIFT_SERVICE \ + keystone endpoint-create --region RegionOne --service-id $SWIFT_SERVICE \ --publicurl 'http://localhost:8080/v1/AUTH_$(tenant_id)s' \ --adminurl 'http://localhost:8080/v1/AUTH_$(tenant_id)s' \ --internalurl 'http://localhost:8080/v1/AUTH_$(tenant_id)s' @@ -233,13 +233,13 @@ if [[ -n "$ENABLE_QUANTUM" ]]; then --description="Quantum Service") QUANTUM_USER=$(get_id keystone user-create --name=quantum \ --pass="$SERVICE_PASSWORD" \ - --tenant_id $SERVICE_TENANT \ + --tenant-id $SERVICE_TENANT \ --email=quantum@example.com) - keystone user-role-add --tenant_id $SERVICE_TENANT \ - --user_id $QUANTUM_USER \ - --role_id $ADMIN_ROLE + keystone user-role-add --tenant-id $SERVICE_TENANT \ + --user-id $QUANTUM_USER \ + --role-id $ADMIN_ROLE if [[ -n "$ENABLE_ENDPOINTS" ]]; then - keystone endpoint-create --region RegionOne --service_id $QUANTUM_SERVICE \ + keystone endpoint-create --region RegionOne --service-id $QUANTUM_SERVICE \ --publicurl http://localhost:9696 \ --adminurl http://localhost:9696 \ --internalurl http://localhost:9696 @@ -248,11 +248,11 @@ fi # create ec2 creds and parse the secret and access key returned -RESULT=$(keystone ec2-credentials-create --tenant_id=$ADMIN_TENANT --user_id=$ADMIN_USER) +RESULT=$(keystone ec2-credentials-create --tenant-id=$ADMIN_TENANT --user-id=$ADMIN_USER) ADMIN_ACCESS=`echo "$RESULT" | grep access | awk '{print $4}'` ADMIN_SECRET=`echo "$RESULT" | grep secret | awk '{print $4}'` -RESULT=$(keystone ec2-credentials-create --tenant_id=$DEMO_TENANT --user_id=$DEMO_USER) +RESULT=$(keystone ec2-credentials-create --tenant-id=$DEMO_TENANT --user-id=$DEMO_USER) DEMO_ACCESS=`echo "$RESULT" | grep access | awk '{print $4}'` DEMO_SECRET=`echo "$RESULT" | grep secret | awk '{print $4}'` |