~justin-fathomdb/nova/justinsb-openstack-api-volumes

« back to all changes in this revision

Viewing changes to nova/auth/novarc.template

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright [2010] [Anso Labs, LLC]
 
2
 
3
#    Licensed under the Apache License, Version 2.0 (the "License");
 
4
#    you may not use this file except in compliance with the License.
 
5
#    You may obtain a copy of the License at
 
6
 
7
#        http://www.apache.org/licenses/LICENSE-2.0
 
8
 
9
#    Unless required by applicable law or agreed to in writing, software
 
10
#    distributed under the License is distributed on an "AS IS" BASIS,
 
11
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
12
#    See the License for the specific language governing permissions and
 
13
#    limitations under the License.
 
14
 
 
15
NOVA_KEY_DIR=$(pushd $(dirname $BASH_SOURCE)>/dev/null; pwd; popd>/dev/null)
 
16
export EC2_ACCESS_KEY="%(access)s"
 
17
export EC2_SECRET_KEY="%(secret)s"
 
18
export EC2_URL="%(ec2)s"
 
19
export S3_URL="%(s3)s"
 
20
export EC2_USER_ID=42 # nova does not use user id, but bundling requires it
 
21
export EC2_PRIVATE_KEY=${NOVA_KEY_DIR}/%(key)s
 
22
export EC2_CERT=${NOVA_KEY_DIR}/%(cert)s
 
23
export NOVA_CERT=${NOVA_KEY_DIR}/%(nova)s
 
24
export EUCALYPTUS_CERT=${NOVA_CERT} # euca-bundle-image seems to require this set
 
25
alias ec2-bundle-image="ec2-bundle-image --cert ${EC2_CERT} --privatekey ${EC2_PRIVATE_KEY} --user 42 --ec2cert ${NOVA_CERT}"
 
26
alias ec2-upload-bundle="ec2-upload-bundle -a ${EC2_ACCESS_KEY} -s ${EC2_SECRET_KEY} --url ${S3_URL} --ec2cert ${NOVA_CERT}"