xentaur

diff xentaur.py @ 68:f652fab38c7a

ec2 parameters small fixes
author Igor Chubin <igor@chub.in>
date Mon Jan 11 19:36:56 2010 +0200 (2010-01-11)
parents 6c145935ece5
children
line diff
     1.1 --- a/xentaur.py	Mon Jan 11 13:01:35 2010 +0200
     1.2 +++ b/xentaur.py	Mon Jan 11 19:36:56 2010 +0200
     1.3 @@ -28,7 +28,11 @@
     1.4  
     1.5  # ec2 settings
     1.6  ec2_dns_domain='ec2.xgu.ru'
     1.7 -ec2_zone="us-east-1a"
     1.8 +ec2_zone="eu-west-1b"
     1.9 +ec2_volume_name="vol-86d234ef"
    1.10 +ec2_ssh_secret_key="~/.ec2/id_rsa-eu-keypair"
    1.11 +ec2_ssh_keypair="eu-keypair"
    1.12 +ec2_ami="ami-a62a01d2"
    1.13  
    1.14  domain='dyn1'
    1.15  from xendomain import *
    1.16 @@ -120,11 +124,10 @@
    1.17      f.write("""
    1.18  NETWORK=%(network)s
    1.19  INSTANCES_NUMBER=%(instances_number)s
    1.20 -INSTANCE_AMI=ami-b21ff8db
    1.21 -INSTANCE_AMI=ami-7cfd1a15
    1.22 -VOLUME_NAME=vol-28d13141
    1.23 -SSH_SECRET_KEY=~/.ec2/id_rsa-pstam-keypair
    1.24 -SSH_KEYPAIR=pstam-keypair
    1.25 +INSTANCE_AMI=%(ec2_ami)s
    1.26 +VOLUME_NAME=%(ec2_volume_name)s
    1.27 +SSH_SECRET_KEY=%(ec2_ssh_secret_key)s
    1.28 +SSH_KEYPAIR=%(ec2_ssh_keypair)s
    1.29  EC2_ZONE=%(ec2_zone)s
    1.30  DOMAIN=%(ec2_dns_domain)s
    1.31  SCRIPTS_PATH=%(path_scripts)s
    1.32 @@ -135,7 +138,12 @@
    1.33  
    1.34          "ec2_dns_domain"    : ec2_dns_domain,
    1.35          "ec2_zone"          : ec2_zone,
    1.36 +        "ec2_ssh_secret_key": ec2_ssh_secret_key,
    1.37 +        "ec2_ssh_keypair"   : ec2_ssh_keypair,
    1.38 +        "ec2_volume_name"   : ec2_volume_name,
    1.39 +        "ec2_ami"           : ec2_ami,
    1.40      })
    1.41 +
    1.42      f.write("start_emulators()\n{\n%s\n}\n"%make_start_emulators())
    1.43      f.close()
    1.44