This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source openrc admin admin | |
| # create ssh key for each tenant | |
| # | |
| for x in coke pepsi ; do echo "ssh key for ${x}" ; \ | |
| rm -f id_rsa_${x}* ; ssh-keygen -t rsa -b 2048 -N '' -f id_rsa_${x} ; done | |
| for x in coke pepsi ; do echo "configuring ${x} tenant" ; \ | |
| keystone tenant-create --name ${x} | |
| keystone user-create --name ${x} --tenant ${x} --pass ${x} | |
| keystone user-role-add --user ${x} --role admin --tenant ${x} | |
| done | |
| # Add ssh key and a dedicated router instance to each tenant | |
| # | |
| for x in coke pepsi ; do echo "configuring ${x} tenant key and router" ; \ | |
| source openrc ${x} ${x} ; export OS_PASSWORD=${x} | |
| nova keypair-add --pub-key id_rsa_${x}.pub ${x}_key | |
| testmtnet.sh ${x} | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment