diff --git a/stack.sh b/stack.sh index b44dec90ee..7a5ed048c0 100755 --- a/stack.sh +++ b/stack.sh @@ -1296,8 +1296,9 @@ fi save_stackenv # Update/create user clouds.yaml file. -# clouds.yaml will have a `devstack` entry for the `demo` user for the `demo` -# project. +# clouds.yaml will have +# - A `devstack` entry for the `demo` user for the `demo` project. +# - A `devstack-admin` entry for the `admin` user for the `admin` project. # The location is a variable to allow for easier refactoring later to make it # overridable. There is currently no usecase where doing so makes sense, so @@ -1320,6 +1321,16 @@ $TOP_DIR/tools/update_clouds_yaml.py \ --os-username demo \ --os-password $ADMIN_PASSWORD \ --os-project-name demo +$TOP_DIR/tools/update_clouds_yaml.py \ + --file $CLOUDS_YAML \ + --os-cloud devstack-admin \ + --os-region-name $REGION_NAME \ + --os-identity-api-version $IDENTITY_API_VERSION \ + $CA_CERT_ARG \ + --os-auth-url $KEYSTONE_AUTH_URI/v$IDENTITY_API_VERSION \ + --os-username admin \ + --os-password $ADMIN_PASSWORD \ + --os-project-name admin # Wrapup configuration