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

RFC: The module must not manage xinetd files and services when $package_ensure == 'absent'. #65

Conversation

bschonec
Copy link

@bschonec bschonec commented May 17, 2022

When uninstalling the xinetd package, this module attempts to manage /etc/xined.conf, /etc/xinetd.d/ files and attempts (in vain) to start the xinetd service.

I couldn't figure out how to open a new issue so I've commented the init.pp file appropriately and am asking for comments on this issue.

I have about 50 servers that need xinetd with the exception of one. In the node's YAML file, I've put "xinetd::package_ensure: absent" and the module fails because it's trying to manage the xinetd files when it shouldn't.

Yes, I realize I could write a conditional check NOT to include ::xinetd::service but then I'd eventually have spaghetti code trying to work around the module's bug. I'm kind of a purist and believe that the module should do no harm even when it's called and the packages don't need to be installed.

@bschonec bschonec force-pushed the package_uninstall_should_not_manage_other_files branch 2 times, most recently from 6333aec to e441b82 Compare May 17, 2022 20:12
@trevor-vaughan
Copy link
Member

Moved into an issue for discussion at #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants