download all servers and private images
Make it easier to demo by having it download everything instead of things that exist only in my account. Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
61e1aa5093
commit
3386881275
|
@ -42,10 +42,17 @@ def main():
|
|||
|
||||
tasks = []
|
||||
|
||||
# for server in cloud.list_servers():
|
||||
# tasks.extend(res.server(server))
|
||||
tasks.extend(res.server(cloud.get_server('dev1')))
|
||||
tasks.extend(res.image(cloud.get_image('testvol1-img1')))
|
||||
# FIXME(dhellmann): We want the list of things to download to be
|
||||
# part of the inputs to the program, but for now let's just grab
|
||||
# all servers and private images..
|
||||
|
||||
for server in cloud.list_servers():
|
||||
tasks.extend(res.server(server))
|
||||
|
||||
for image in cloud.list_images():
|
||||
if image.visibility != 'private':
|
||||
continue
|
||||
tasks.extend(res.image(image))
|
||||
|
||||
playbook = [
|
||||
{'hosts': 'localhost',
|
||||
|
|
Loading…
Reference in New Issue