2018-04-23 14:57:26 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Create admin-openrc.sh from secrets that are in the environment during bootstrap.
|
|
|
|
cat << EOF > /root/admin-openrc.sh
|
|
|
|
#!/bin/bash
|
|
|
|
export OS_TENANT_NAME=admin
|
|
|
|
export OS_USERNAME=admin
|
|
|
|
export OS_PASSWORD=${OS_PASSWORD}
|
2018-09-21 12:03:13 +02:00
|
|
|
export OS_AUTH_URL=https://merlin.hpc.rug.nl:35357/v3
|
2018-04-23 14:57:26 +02:00
|
|
|
export OS_IDENTITY_API_VERSION=3
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# Create demo-openrc.sh
|
|
|
|
cat << EOF > /root/demo-openrc.sh
|
|
|
|
#!/bin/bash
|
|
|
|
export OS_TENANT_NAME=demo
|
|
|
|
export OS_USERNAME=demo
|
|
|
|
export OS_PASSWORD=${OS_DEMO_PASSWORD}
|
2018-09-21 12:03:13 +02:00
|
|
|
export OS_AUTH_URL=https://merlin.hpc.rug.nl:35357/v3
|
2018-04-23 14:57:26 +02:00
|
|
|
export OS_IDENTITY_API_VERSION=3
|
|
|
|
EOF
|