# List sizes, locations, and images.
print

sizes = driver.list_sizes()
utils.print_objs(sizes)

locations = driver.list_locations()
utils.print_objs(locations)

images = driver.list_images()
utils.print_objs(images[-5:])

print

# Large, node machine to run at GRNET.
size = utils.select_id('m1.large', sizes)
location = utils.select_id('grnet', locations)
image = utils.select_id('BN1EEkPiBx87_uLj2-sdybSI-Xb', images)

# Get ssh key.
home = os.path.expanduser('~')
ssh_public_key_path = os.path.join(home, '.ssh', 'id_dsa.pub')
ssh_private_key_path = ssh_public_key_path.rstrip('.pub')

with open(ssh_public_key_path) as f:
    pubkey = NodeAuthSSHKey(f.read())

# Running nodes...
utils.print_objs(driver.list_nodes())
print
Пример #2
0
# List sizes, locations, and images.
print

sizes = driver.list_sizes()
utils.print_objs(sizes)

locations = driver.list_locations()
utils.print_objs(locations)

images = driver.list_images()
utils.print_objs(images[-5:])

print

# Large, node machine to run at GRNET.
size = utils.select_id('m1.large', sizes)
location = utils.select_id('grnet', locations)
image = utils.select_id('BN1EEkPiBx87_uLj2-sdybSI-Xb', images)

# Get ssh key.
home = os.path.expanduser('~')
ssh_public_key_path = os.path.join(home, '.ssh', 'id_dsa.pub')
ssh_private_key_path = ssh_public_key_path.rstrip('.pub')

with open(ssh_public_key_path) as f:
    pubkey = NodeAuthSSHKey(f.read())

# Running nodes...
utils.print_objs(driver.list_nodes())
print
Пример #3
0
# List sizes, locations, and images.
print

sizes = driver.list_sizes()
utils.print_objs(sizes)

locations = driver.list_locations()
utils.print_objs(locations)

images = driver.list_images()
utils.print_objs(images[-5:])

print

# Large, ubuntu machine to run at GRNET.
size = utils.select_id('m1.large', sizes)
location = utils.select_id('lal', locations)
image = utils.select_id('GJ5vp8gIxhZ1w1MQF16R6MIcNoq', images)

# Get ssh key.
home = os.path.expanduser('~')
ssh_public_key_path = os.path.join(home, '.ssh', 'id_dsa.pub')
ssh_private_key_path = ssh_public_key_path.rstrip('.pub')

with open(ssh_public_key_path) as f:
    pubkey = NodeAuthSSHKey(f.read())

script = ScriptDeployment('touch STRATUSLAB_WAS_HERE')

# Running nodes...
utils.print_objs(driver.list_nodes())
Пример #4
0
# List sizes, locations, and images.
print

sizes = driver.list_sizes()
utils.print_objs(sizes)

locations = driver.list_locations()
utils.print_objs(locations)

images = driver.list_images()
utils.print_objs(images[-5:])

print

# Large, ubuntu machine to run at GRNET.
size = utils.select_id('m1.large', sizes)
location = utils.select_id('lal', locations)
image = utils.select_id('GJ5vp8gIxhZ1w1MQF16R6MIcNoq', images)

# Get ssh key.
home = os.path.expanduser('~')
ssh_public_key_path = os.path.join(home, '.ssh', 'id_dsa.pub')
ssh_private_key_path = ssh_public_key_path.rstrip('.pub')

with open(ssh_public_key_path) as f:
    pubkey = NodeAuthSSHKey(f.read())

script = ScriptDeployment('touch STRATUSLAB_WAS_HERE')

# Running nodes...
utils.print_objs(driver.list_nodes())