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:
Doug Hellmann 2017-01-31 11:57:25 -05:00
parent 61e1aa5093
commit 3386881275
1 changed files with 11 additions and 4 deletions

View File

@ -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',