ghoneycutt/puppet-xinetd — pull request #7 by marut (2012-05-01 01:39:08+00:00)
Title: Adapt for use on multiple operating systems

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