<s> from __future__ import print_function <EOL> import os <EOL> import pyrax <EOL> pyrax . set_setting ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> creds_file = os . path . expanduser ( "<STR_LIT>" ) <EOL> pyrax . set_credential_file ( creds_file ) <EOL> cs = pyrax . cloudservers <EOL> ubu_image = [ img for img in cs . images . list ( ) <EOL> if "<STR_LIT>" in img . name ] [ <NUM_LIT:0> ] <EOL> flavor_1GB = [ flavor for flavor in cs . flavors . list ( ) <EOL> if flavor . ram == <NUM_LIT> ] [ <NUM_LIT:0> ] <EOL> meta = { "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } <EOL> content = """<STR_LIT>""" <EOL> files = { "<STR_LIT>" : content } <EOL> server = cs . servers . create ( "<STR_LIT>" , ubu_image . id , flavor_1GB . id , <EOL> meta = meta , files = files ) <EOL> print ( "<STR_LIT>" , server . name ) <EOL> print ( "<STR_LIT>" , server . id ) <EOL> print ( "<STR_LIT>" , server . adminPass ) <EOL> print ( "<STR_LIT>" , server . metadata ) <EOL> print ( ) <EOL> print ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" <EOL> "<STR_LIT:content>" ) <EOL> print ( "<STR_LIT>" ) <EOL> print ( ) </s>
