summaryrefslogtreecommitdiffstats
path: root/packer/provision
diff options
context:
space:
mode:
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>2017-02-02 09:45:16 -0600
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>2017-02-23 11:31:33 -0600
commit97109732e1e95df21716513256add920fe43d7af (patch)
tree523d3c1b20d8a42ae5b50a7c61892f686cbcefed /packer/provision
parentf387b7b98f2b55607afbddb400512391aa9ac1a4 (diff)
Enable Hugepages
TLDK project requires Hugepages to be enabled. This change enables Hugepages and sets the size to 128. Change-Id: Ie582cdf5ab2c766da268c0a39ed47bc45f31058c Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Diffstat (limited to 'packer/provision')
-rw-r--r--packer/provision/baseline.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/packer/provision/baseline.sh b/packer/provision/baseline.sh
index 87c77769..aaf1fa10 100644
--- a/packer/provision/baseline.sh
+++ b/packer/provision/baseline.sh
@@ -205,6 +205,13 @@ Defaults:jenkins !requiretty
jenkins ALL = NOPASSWD: /usr/bin/update-alternatives
EOF
+ # Enable Hugepages
+ puppet module install thias-sysctl --version 1.0.6
+ puppet apply -e "sysctl {'vm.nr_hugepages': value => '128'}"
+ puppet apply -e "file { '/mnt/huge': ensure => directory }"
+ puppet apply -e "mount { '/mnt/huge': ensure => mounted, atboot => true, \
+ device => 'none', fstype => 'hugetlbfs', options => 'mode=01777' }"
+
# Do any Distro specific installations here
echo "Checking distribution"
FACTER_OS=$(/usr/bin/facter operatingsystem)