ggiamarchi / vagrant-openstack-provider

Use Vagrant to manage OpenStack Cloud instances.
MIT License
247 stars 101 forks source link

Upload image in glance #164

Open ggiamarchi opened 9 years ago

ggiamarchi commented 9 years ago

Additionally to the syntax for using an existing glance image

os.image = 'ubuntu'

we should be able to give information about the image to create it in glance if no image exist for the given name.

Both the following snippets should work

os.image = {
  name: 'ubuntu',
  disk_format: 'qcow2',
  container_format: 'bare',
  url: 'http://my-server/images/ubuntu.qcow2'
}
os.image = {
  name: 'ubuntu',
  disk_format: 'qcow2',
  container_format: 'bare',
  file: '../relative/path/to/the/vagrantfile/ubuntu.qcow2'
}
alnf commented 6 years ago

That would be an awesome feature!