diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-11 12:27:35 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-11 12:27:35 -0300 |
commit | a324c9c0840733903f45c5baaf05ba9388d6237b (patch) | |
tree | aa4f0a94d041f000649f2bec654bef0a7b1ef4f1 /manifests/kvm/kvmx/instance.pp | |
parent | 5ca1af4c74c9bde2a9e2c14e1bd54c4899ddf5f5 (diff) | |
download | puppet-virtual-a324c9c0840733903f45c5baaf05ba9388d6237b.tar.gz puppet-virtual-a324c9c0840733903f45c5baaf05ba9388d6237b.tar.bz2 |
KVMX: custom config for servers
Diffstat (limited to 'manifests/kvm/kvmx/instance.pp')
-rw-r--r-- | manifests/kvm/kvmx/instance.pp | 62 |
1 files changed, 61 insertions, 1 deletions
diff --git a/manifests/kvm/kvmx/instance.pp b/manifests/kvm/kvmx/instance.pp index 6b19f3a..c8c7d31 100644 --- a/manifests/kvm/kvmx/instance.pp +++ b/manifests/kvm/kvmx/instance.pp @@ -3,7 +3,8 @@ define virtual::kvm::kvmx::instance( $size, $ram, $shell, - $udev = false, + $udev = false, + $supervise = 1, ) { virtual::kvm::instance { $name: udev => $udev, @@ -46,4 +47,63 @@ define virtual::kvm::kvmx::instance( param => 'image', value => "\$HOME/vms/${name}/box.img", } + + virtual::kvm::kvmx::config { "${name}-net": + vm => $name, + param => 'net', + value => "tap", + } + + virtual::kvm::kvmx::config { "${name}-spice": + vm => $name, + param => 'spice', + value => "0", + } + + virtual::kvm::kvmx::config { "${name}-run_spice_client": + vm => $name, + param => 'run_spice_client', + value => "0", + } + + virtual::kvm::kvmx::config { "${name}-graphics": + vm => $name, + param => 'graphics', + value => "-nographic", + } + + virtual::kvm::kvmx::config { "${name}-sound": + vm => $name, + param => 'sound', + value => "0", + } + + virtual::kvm::kvmx::config_unset { "${name}-shared_folder": + vm => $name, + param => 'shared_folder', + } + + virtual::kvm::kvmx::config { "${name}-format": + vm => $name, + param => 'format', + value => "raw", + } + + virtual::kvm::kvmx::config { "${name}-ssh_support": + vm => $name, + param => 'ssh_support', + value => "n", + } + + virtual::kvm::kvmx::config { "${name}-drive_interface": + vm => $name, + param => 'drive_interface', + value => "virtio,cache=none,index=0,format=raw", + } + + virtual::kvm::kvmx::config { "${name}-supervise_manage": + vm => $name, + param => 'supervise_manage', + value => "${supervise}", + } } |