diff options
Diffstat (limited to 'packer')
-rw-r--r-- | packer/provision/baseline.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packer/provision/baseline.sh b/packer/provision/baseline.sh index 87c777699..aaf1fa100 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) |