Revision 83aa2ea5
b/snf-deploy/fabfile.py | ||
---|---|---|
1208 | 1208 |
with settings(host_string=env.env.db.ip): |
1209 | 1209 |
uid, user_auth_token, user_uuid = get_auth_token_from_db(env.env.user_email) |
1210 | 1210 |
|
1211 |
pithos_url = "pithos://{0}/images/{1}".format(user_uuid, image)
|
|
1211 |
image_location = "images:{0}".format(image)
|
|
1212 | 1212 |
cmd = """ |
1213 | 1213 |
sleep 5 |
1214 | 1214 |
kamaki image register "Debian Base" {0} --public --disk-format=diskdump --property OSFAMILY=linux --property ROOT_PARTITION=1 --property description="Debian Squeeze Base System" --property size=450M --property kernel=2.6.32 --property GUI="No GUI" --property sortorder=1 --property USERS=root --property OS=debian |
1215 |
""".format(pithos_url)
|
|
1215 |
""".format(image_location)
|
|
1216 | 1216 |
try_run(cmd) |
1217 | 1217 |
|
1218 | 1218 |
@roles("client") |
Also available in: Unified diff