Skip to content

Commit

Permalink
Merge "Added support to install specific kernel version" into R5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul v3 CI authored and opencontrail-ci-admin committed Jun 12, 2018
2 parents 8eeb4bd + 6673a1d commit d358e76
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions playbooks/roles/configure_instances/tasks/RedHat_kernel.yml
@@ -1,7 +1,18 @@
---
- name: install latest kernel
- name: set new kernel version tag <global>
set_fact:
kernel_version_tag: "{{ contrail_configuration.KERNEL_VERSION }}"
when: contrail_configuration.KERNEL_VERSION is defined

# kernel version under instance data takes precedence over global kernel version
- name: set new kernel version tag <instance>
set_fact:
kernel_version_tag: "{{ instance_data.KERNEL_VERSION }}"
when: instance_data.KERNEL_VERSION is defined

- name: install new kernel version
yum:
name: 'kernel'
name: "{{ ('kernel-' + kernel_version_tag) if kernel_version_tag is defined else 'kernel'}}"
state: latest
register: upgrade_kernel
when: (contrail_configuration.UPGRADE_KERNEL is defined and contrail_configuration.UPGRADE_KERNEL == true) or
Expand Down

0 comments on commit d358e76

Please sign in to comment.