Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 4.0.0 < 7.0.0
- , , ,
Start using this module
Add this module to your Puppetfile:
mod 'alexharvey-disable_transparent_hugepage', '1.5.0'
Learn more about managing modules with a PuppetfileDocumentation
disable_transparent_hugepage
Table of contents
Overview
This module disables Transparent Hugepages (THP) on Linux platforms as required by applications such as MongoDB and Redis. The procedure is based on recommendations published at mongodb.org.
The module changes the /sys/kernel/mm/transparent_hugepage/enabled
and /sys/kernel/mm/transparent_hugepage/defrag
settings, adds an init service to ensure the changes persist across reboots, and if applicable, configures tuned.
Usage
Basic use:
include disable_transparent_hugepage
Development
Please read CONTRIBUTING.md before contributing.
Testing
Make sure you have:
- rake
- bundler
Install the necessary gems:
bundle install
To run the tests from the root of the source code:
bundle exec rake spec
To run the acceptance tests:
To run the acceptance tests:
BEAKER_set=centos-66-x64 bundle exec rake spec/acceptance
BEAKER_set=centos-72-x64 bundle exec rake spec/acceptance
etc.
Release
This module uses Puppet Blacksmith to publish to the Puppet Forge.
Ensure you have these lines in ~/.bash_profile
:
export BLACKSMITH_FORGE_URL=https://forgeapi.puppetlabs.com
export BLACKSMITH_FORGE_USERNAME=alexharvey
export BLACKSMITH_FORGE_PASSWORD=xxxxxxxxx
Build the module and push to Forge:
bundle exec rake module:push
Clean the pkg dir (otherwise Blacksmith will try to push old copies to Forge next time you run it and it will fail):
bundle exec rake module:clean
2020-04-20 - Version 1.5.0
- Add support for RHEL 8/CentOS 8 (@fraenki).
2019-07-13 - Version 1.4.1
- Notify rather than before (@theosotr).
2019-06-11 - Version 1.4.0
- Update code to match latest MongoDB instructions.
- Resolve Issue #5 for bugs on RHEL 6.
2018-06-23 - Version 1.3.0
- Update Rspec boilerplate.
- Remove deprecated service_provider feature.
2016-05-28 - Version 1.2.1
- Make Forge's Lint happy. Again.
2016-05-28 - Version 1.2.0
- additional test.
- deprecation notice on service_provider.
- improved Gemfile & Rakefile.
2016-04-11 - Version 1.1.1
- Make lint happy.
- Add .travis.yml.
2016-04-11 - Version 1.1.0
- Fix ordering bug.
- Add Beaker tests and nodesets for Ubuntu, CentOS & Debian.
2016-03-15 - Version 1.0.3
- Make Forge's Lint happy.
2016-03-13 - Version 1.0.2
- Rename hugepages for interface consistency.
2016-03-13 - Version 1.0.1
- Fix version compare bug.
2016-03-12 - Version 1.0.0
- Initial public release.
The MIT License (MIT) Copyright (c) 2016 Alex Harvey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.