Adapt for use on multiple operating systems #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The attached commits make some pretty serious changes to the xinetd module in order to give it support for multiple operating systems and greater flexibility. Commit messages given below in roughly markdown format:
Add xinetd::params class
The params class uses facts to set tailored filenames and paths for the node. This is desireable in order to support multiple operating systems.
Convert files/xinetd.conf to a template
Not all operating systems store their default xinetd configuration file in /etc/xinetd.conf. Converting from a flat file to a template in order to support those operating systems.
Manage xinetd.d, rework init.pp
Make sure xinetd.d exists (not all OS packages automatically create such a file). Also rework init.pp order.
Expand xinetd::service options
Add a bunch of extra xinetd::service parameters. Refactor a bit. Options that default to undef are not given a corresponding line in the xinetd service file, leaving their value to the xinetd default.
Modified options:
New options: