summaryrefslogtreecommitdiffstats
path: root/fuel-plugin/deployment_scripts/puppet/manifests/kvm-install.pp
blob: 2b93a13a08aac234d05fac0e26fd0493362ad1f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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' {
}