thias / puppet-libvirt

Puppet libvirt module
Other
17 stars 55 forks source link

provide port forwards #53

Open tarioch opened 9 years ago

tarioch commented 9 years ago

It would be nice to be able to provide port forwards for nat setups.

A script like

http://www.torrycrass.com/2013/03/09/kvm-qemu-libvirt-nat-and-firewall-networking/

works really nice.

jaggededgedjustice commented 9 years ago

It should be easy enough to provide a way to manage the libvirt hook scripts, that would allow you to set up the natting you require. Since people might want a static file or a template, this would probably require 2 parameters per hook script - something like:

class { 'libvirt ':
  qemu_hook_source => puppet:///some/file,
}

or

class { 'libvirt ':
  qemu_hook_content => template('some/file.erb')
}