clean up kvm vms

This commit is contained in:
Fredrik Thulin 2018-05-04 14:39:11 +02:00
parent d9393a8ca0
commit 81292466c2
No known key found for this signature in database
GPG key ID: 2707330D4030CCAD
3 changed files with 6 additions and 11 deletions

View file

@ -8,9 +8,6 @@
domain: sunet.se
sunet::rsyslog:
'^kvm.+-.+-\d+\.komreg\.net$':
eid::kvmhost:
jmp.komreg.net:
konsulter:
sunet_iaas_cloud:
@ -21,7 +18,7 @@ jmp.komreg.net:
autoupdate:
kvmfe-fre-3.komreg.net:
eid::kvm_vms:
eid::kvmhost:
vms:
fe-fre-3.komreg.net:
mac: '52:54:20:01:00:01'

View file

@ -1,5 +0,0 @@
class eid::kvm_vms(
Hash $vms
) {
create_resources('eid::cloudimage', $vms)
}

View file

@ -1,6 +1,7 @@
class eid::kvmhost(
$proxy_server = hiera('eid_proxy_server'),
$no_proxy = hiera('eid_no_proxy'),
String $proxy_server = hiera('eid_proxy_server'),
String $no_proxy = hiera('eid_no_proxy'),
Hash $vms = [],
) {
file {
'/etc/cosmos-manual-reboot':
@ -37,4 +38,6 @@ class eid::kvmhost(
line => '8021q',
;
}
create_resources('eduid::cloudimage', $vms)
}