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

Adapt for use on multiple operating systems #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Adapt for use on multiple operating systems #7

wants to merge 4 commits into from

Conversation

reidmv
Copy link

@reidmv reidmv commented May 1, 2012

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:

    • bind = undef

    New options:

    • access_times = undef
    • ensure = present
    • groups = 'yes'
    • log_on_failure = undef
    • log_type = undef
    • no_access = undef
    • only_from = undef
    • service_name = $title
    • xtype = undef

reidmv added 2 commits April 29, 2012 21:17
The params class uses facts to set tailored filenames and paths for the
node. This is desireable in order to support multiple operating
systems.
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.
@reidmv
Copy link
Author

reidmv commented May 2, 2012

The reason I'm submitting this pull request btw is that Portland State University (pdxcat) has a fork with extra functionality - the commits in this pull request - that we need for our Amanda Network Backup module. We'd much prefer to have that functionality in the original project (this one) and declare our amanda module's dependency to be on ghoneycutt/xinetd instead of on our fork, pdxcat/xinetd.

It's your call on whether or not you think the commits are good ones and/or whether our fork has diverged too much to merge back in. Either way I appreciate your time in taking a look at it. :-)

reidmv added 2 commits May 8, 2012 11:31
Make sure xinetd.d exists (not all OS packages automatically create
such a file). Also rework init.pp order.
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:
- bind = '0.0.0.0'
+ bind = undef

New options:
+ access_times   = undef
+ ensure         = present
+ groups         = 'yes'
+ log_on_failure = undef
+ log_type       = undef
+ no_access      = undef
+ only_from      = undef
+ service_name   = $title
+ xtype          = undef
@reidmv
Copy link
Author

reidmv commented May 8, 2012

Fixed typo-induced bug wherein the File resource default set require => Package[$xinetd::params::xinetd_service]. Probably pretty obvious what's wrong with that. Only manifested on FreeBSD machines.

@blkperl
Copy link

blkperl commented Jun 21, 2012

@ghoneycutt Any update on whether this will get merged? Should @marut submit it to puppetlabs/puppetlabs-xinetd instead?

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.

2 participants