diff options
Diffstat (limited to 'manifests/kvm/images.pp')
-rw-r--r-- | manifests/kvm/images.pp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/manifests/kvm/images.pp b/manifests/kvm/images.pp index 64876e9..1c4e7f4 100644 --- a/manifests/kvm/images.pp +++ b/manifests/kvm/images.pp @@ -4,7 +4,8 @@ class virtual::kvm::images { home => "/usr/local/share/iso", } - file { [ '/usr/local/share/iso', "/usr/local/share/iso/${lsbdistcodename}", "/usr/local/share/iso/${lsbdistcodename}/installer" ]: + file { [ '/usr/local/share/iso', "/usr/local/share/iso/${lsbdistcodename}", + "/usr/local/share/iso/${lsbdistcodename}/installer", "/usr/local/share/iso/${lsbdistcodename}/installer/profiles" ]: ensure => directory, owner => iso, group => iso, @@ -12,13 +13,22 @@ class virtual::kvm::images { require => User['iso'], } + file { "/usr/local/share/iso/${lsbdistcodename}/installer/profiles/kvm.preseed": + ensure => present, + owner => root, + group => root, + mode => '0644', + source => 'puppet:///modules/virtual/kvm/kvm.preseed', + require => File["/usr/local/share/iso/${lsbdistcodename}/installer/profiles"], + } + exec { "build-simple-cdd-${lsbdistcodename}": - command => '/usr/bin/build-simple-cdd --serial-console', + command => '/usr/bin/build-simple-cdd --serial-console --profiles kvm', user => 'iso', timeout => 0, cwd => "/usr/local/share/iso/${lsbdistcodename}/installer", creates => "/usr/local/share/iso/${lsbdistcodename}/installer/images/debian-${lsbdistrelease}-${architecture}-CD-1.iso", - require => [ File["/usr/local/share/iso/${lsbdistcodename}/installer"], Package['simple-cdd'] ], + require => [ File["/usr/local/share/iso/${lsbdistcodename}/installer/profiles/kvm.preseed"], Package['simple-cdd'] ], } exec { "debirf-make-profile-rescue-${lsbdistcodename}": |