Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[fuel-plugin] Set default grub entry for kernel
[kvmfornfv.git]
/
fuel-plugin
/
deployment_scripts
/
puppet
/
manifests
/
kvm-install.pp
diff --git
a/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp
b/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp
index
fba3e38
..
a723574
100644
(file)
--- a/
fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp
+++ b/
fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp
@@
-6,6
+6,14
@@
case $::operatingsystem {
$kernel_kit = ["linux-headers-${version}", "linux-image-${version}"]
$kernel_src = "/usr/src/linux-headers-${version}"
$kernel_src_link = "/lib/modules/${version}/build"
$kernel_kit = ["linux-headers-${version}", "linux-image-${version}"]
$kernel_src = "/usr/src/linux-headers-${version}"
$kernel_src_link = "/lib/modules/${version}/build"
+
+ shellvar { 'GRUB_DEFAULT':
+ ensure => present,
+ target => '/etc/default/grub',
+ value => "Advanced options for Ubuntu>Ubuntu, with Linux ${version}",
+ quoted => 'double',
+ notify => Exec['update_grub'],
+ }
}
default: {
fail("Unsupported operating system: ${::osfamily}/${::operatingsystem}")
}
default: {
fail("Unsupported operating system: ${::osfamily}/${::operatingsystem}")
@@
-21,6
+29,11
@@
if $kvm_settings['use_kvm'] {
$ensure_link = 'absent'
}
$ensure_link = 'absent'
}
+exec { 'update_grub':
+ command => '/usr/sbin/update-grub',
+ refreshonly => true,
+}
+
package { $kernel_kit:
ensure => $ensure_pkg,
before => File[$kernel_src_link],
package { $kernel_kit:
ensure => $ensure_pkg,
before => File[$kernel_src_link],