Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module leaves entries unhandled on upgrade #3

Open
hhenkel opened this issue Feb 14, 2019 · 3 comments
Open

Module leaves entries unhandled on upgrade #3

hhenkel opened this issue Feb 14, 2019 · 3 comments

Comments

@hhenkel
Copy link

hhenkel commented Feb 14, 2019

Red Hat decided to remove the "shpchp" kernel module in RHEL 7.6. When upgrading a machine from RHEL 7.5 to 7.6 where the "shpchp" module was previously managed it seems like you end up in a state where you can't get rid of it.

Wouldn't it be better to manage the whole file / the complete content of the files from the module?

@galexrt
Copy link
Owner

galexrt commented Feb 14, 2019

@hhenkel The file is managed but only when for adding a module.
When autoload: false it should also be removed, which is currently not implemented.

needs to be absent when autoload: false and the other way around.

Do you see this as a way to fix your issue or would adding state: (absent|present) for the modules sound better?

@hhenkel
Copy link
Author

hhenkel commented Feb 15, 2019

@galexrt I think it might be much easier not to use "lineinfile" but create the file as a whole with the data provided.
I think it is counter intuitive to set something to absent - imho it makes more sense to have everything in a file if it is explicitly mentioned.

I can do a poc and create a pr if it is easier to discuss.

@galexrt
Copy link
Owner

galexrt commented Feb 15, 2019

@hhenkel A poc PR sounds good! 👍

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

No branches or pull requests

2 participants