summaryrefslogtreecommitdiffstats
path: root/fuel-plugin/deployment_scripts/puppet
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2016-05-03 09:22:42 +0800
committerGuo Ruijing <ruijing.guo@intel.com>2016-05-03 10:31:16 +0800
commitfc3228bd6c2163081143e2231e0574faa9bcaad1 (patch)
treea44d48fe8b04121029523ee96a9bbb1936dd19d3 /fuel-plugin/deployment_scripts/puppet
parentbacb4acf4ed1a5b6481d613a6dc2e8c9ccff15db (diff)
Create fuel kvm plugin
Upstream status: NA In Brahmaputra release, KVM plugin functionality was bundled inside the fuel-plugin-qemu. In order for easy maintenance, the KVM plugin functionality would be separated from fuel-plugin-qemu and moved into an independent fuel-plugin-kvm and keep the source code here starting from Colorado release. Change-Id: Id89069234a4529cca40f1887e2d947378f928dd2 Signed-off-by: davidjchou <david.j.chou@intel.com> Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'fuel-plugin/deployment_scripts/puppet')
-rw-r--r--fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp b/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp
new file mode 100644
index 000000000..2b93a13a0
--- /dev/null
+++ b/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp
@@ -0,0 +1,17 @@
+$fuel_settings = parseyaml(file('/etc/compute.yaml'))
+if $operatingsystem == 'Ubuntu' {
+ if $fuel_settings['fuel-plugin-kvm']['use_kvm'] {
+ package { 'linux-headers-4.1.10-rt10nfv':
+ ensure => "1.0.OPNFV",
+ } ->
+ package { 'linux-image-4.1.10-rt10nfv':
+ ensure => "1.0.OPNFV",
+ } ->
+ exec {'reboot':
+ command => "reboot",
+ path => "/usr/bin:/usr/sbin:/bin:/sbin",
+ }
+ } else {
+ }
+} elsif $operatingsystem == 'CentOS' {
+}