summaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>2020-01-24 09:56:30 -0600
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>2020-01-24 10:13:31 -0600
commitd3537760ace67a81f33833f8b4a2224fc8a36842 (patch)
treec05f6d8fc0b995c866c6d02c43a0ab0e1f94022a /packer
parent7df817ddf32f74496f8885cdb9e17a29a98b9db1 (diff)
Modify Ubuntu 16.04 to enable hugepages
This change is to modify Ubuntu 16.04 images to enable hugepages Change-Id: Id5f0494417c1cce25c26032d2f6dfa4526c3f5bf Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Diffstat (limited to 'packer')
-rw-r--r--packer/provision/local-builder.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/packer/provision/local-builder.yaml b/packer/provision/local-builder.yaml
index 31ce7f83..bcdf512e 100644
--- a/packer/provision/local-builder.yaml
+++ b/packer/provision/local-builder.yaml
@@ -63,6 +63,15 @@
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04'
become: true
+ - name: 'Enable hugepages'
+ sysctl:
+ name: vm.nr_hugepages
+ value: '128'
+ reload: no
+ # yamllint disable-line rule:line-length
+ when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04'
+ become: true
+
- name: 'Install FD.io Required 18.04 Packages'
apt:
name: