diff options
author | Jiang, Yunhong <yunhong.jiang@intel.com> | 2017-08-04 05:05:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-04 05:05:12 +0000 |
commit | 2dd9dea0edaf1157e4cb914240821d22fe1ca5b0 (patch) | |
tree | 21b4de5bd8b00deede8c1191790294ae832b3492 /fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp | |
parent | 4525b15e86b4c7e2d426988c4ec1a11132a9f51b (diff) | |
parent | 10e9106094d2989909eaa0015a45574137b7776c (diff) |
Merge "cleanup: remove fuel plugin since fuel@opnfv uses mcp"
Diffstat (limited to 'fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp')
-rw-r--r-- | fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp b/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp deleted file mode 100644 index 5f14f1a9f..000000000 --- a/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp +++ /dev/null @@ -1,45 +0,0 @@ -$kvm_settings = hiera('fuel-plugin-kvm') - -case $::operatingsystem { - 'Ubuntu': { - $version = '4.4.50-rt62nfv' - $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}") - } - -} - -if $kvm_settings['use_kvm'] { - $ensure_pkg = '1.0.OPNFV' - $ensure_link = 'link' -} else { - $ensure_pkg = 'purged' - $ensure_link = 'absent' -} - -exec { 'update_grub': - command => '/usr/sbin/update-grub', - refreshonly => true, -} - -package { $kernel_kit: - ensure => $ensure_pkg, - before => File[$kernel_src_link], -} - -file { $kernel_src_link: - ensure => $ensure_link, - target => $kernel_src, -} |