Skip to content

Conversation

@ze42
Copy link

@ze42 ze42 commented Jan 24, 2022

PR progress checklist (to be filled in by reviewers)

  • Changes to documentation are appropriate (or tick if not required)
  • Changes to tests are appropriate (or tick if not required)
  • Reviews completed

What type of PR is this?

Primary type

  • [build] Changes related to the build system
  • [chore] Changes to the build process or auxiliary tools and libraries such as documentation generation
  • [ci] Changes to the continuous integration configuration
  • [feat] A new feature
  • [fix] A bug fix
  • [perf] A code change that improves performance
  • [refactor] A code change that neither fixes a bug nor adds a feature
  • [revert] A change used to revert a previous commit
  • [style] Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)

Secondary type

  • [docs] Documentation changes
  • [test] Adding missing or correcting existing tests

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

Describe the changes you're proposing

Fix disable_transparent_hugepages

  • Propery do nothing if set to False
  • Enable service on boot
  • Launch cmd only if not already set

Pillar / config required to test the proposed changes

Could be tested with and without:

mongodb:
  wanted:
    disable_transparent_hugepages: false

Debug log showing how the proposed changes work

Documentation checklist

  • Updated the README (e.g. Available states).
  • Updated pillar.example.

Testing checklist

  • Included in Kitchen (i.e. under state_top).
  • Covered by new/existing tests (e.g. InSpec, Serverspec, etc.).
  • Updated the relevant test pillar.

Additional context

Copy link
Contributor

@noelmcloughlin noelmcloughlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ze42 thanks for PR. Could you get CI working for Arch, probably by updating osfamillymap to avoid triggering the code?

@noelmcloughlin
Copy link
Contributor

ping @ze42

@myii
Copy link
Contributor

myii commented Feb 6, 2022

Hi @ze42 thanks for PR. Could you get CI working for Arch, probably by updating osfamillymap to avoid triggering the code?

This appears to be relevant:

@daks
Copy link
Member

daks commented Feb 7, 2022

The THP feature is not specifically targeted at MongoDB but it's a kernel feature which can affect a lot of other things, shouldn't it be managed elsewhere, in another state or formula?

(we use it for Redis and manage it separately in a file.managed state)

Adrien "ze" Urban added 5 commits July 7, 2022 14:10
`onlyif: False` does not work like expected on salt 3004
seemed to work on 2019
Checks value before running cmd on each run
Just placing the file in etc/init.d would not be enough to keep it after reboot
systemd needs a systemctl daemon-reload before we can enable the service
@ze42
Copy link
Author

ze42 commented Jul 7, 2022

still some problem with rubocop, but I don't have any idea what it is about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants