Skip to content

Instantly share code, notes, and snippets.

@traylenator
Created October 11, 2013 08:23
Show Gist options
  • Save traylenator/6931397 to your computer and use it in GitHub Desktop.
Save traylenator/6931397 to your computer and use it in GitHub Desktop.
#!/bin/bash
export OS_AUTH_URL=https://openstack.cern.ch:5000/v2.0
export OS_TENANT_ID=cd6c149a-d4e2-471d-98a3-b32b6797f009
export OS_TENANT_NAME="IT FTS"
export OS_CACERT=/etc/pki/tls/certs/CERN-bundle.pem
export OS_USERNAME=straylen
nova list > /dev/null 2>&1
if [ $? != "0" ] ; then
echo "nova list not working"
exit
fi
export AIBS_LANDB_RESPONSIBLE='IT-DEP-PES-PS-SUPPORT'
export AIBS_LANDB_MAINUSER='IT-DEP-PES-PS-SUPPORT'
export AIBS_SSHKEY_NAME='steve_ssh'
export AIBS_HOSTGROUP_NAME='fts/pilot/spare'
export AIBS_VMIMAGE_NAME='SLC6 Server - x86_64 [130624]'
export AIBS_VMFLAVOR_NAME='m1.large'
export AIBS_ENVIRONMENT_NAME="production"
NUMBER=$1
STRING="fts"$NUMBER".cern.ch"
#echo $STRING
ai-bs-vm pet $STRING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment