X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=fuel-plugin%2Fdeployment_scripts%2Fpuppet%2Fmanifests%2Fkvm-install.pp;h=4c04aa0a688b7598c9630d1fff7efa0947785aa0;hb=860e71785b244ba8e7c5a39c7f738302c5a957c7;hp=2b93a13a08aac234d05fac0e26fd0493362ad1f6;hpb=fc3228bd6c2163081143e2231e0574faa9bcaad1;p=kvmfornfv.git diff --git a/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp b/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp index 2b93a13a0..4c04aa0a6 100644 --- a/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp +++ b/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp @@ -1,15 +1,16 @@ -$fuel_settings = parseyaml(file('/etc/compute.yaml')) +$kvm_settings = hiera('fuel-plugin-kvm') if $operatingsystem == 'Ubuntu' { - if $fuel_settings['fuel-plugin-kvm']['use_kvm'] { - package { 'linux-headers-4.1.10-rt10nfv': + if $kvm_settings['use_kvm'] { + package { 'linux-headers-4.4.6-rt14nfv': ensure => "1.0.OPNFV", + notify => Reboot['after_run'], } -> - package { 'linux-image-4.1.10-rt10nfv': + package { 'linux-image-4.4.6-rt14nfv': ensure => "1.0.OPNFV", - } -> - exec {'reboot': - command => "reboot", - path => "/usr/bin:/usr/sbin:/bin:/sbin", + notify => Reboot['after_run'], + } + reboot { 'after_run': + apply => finished, } } else { }