Git Product home page Git Product logo

xinetd's Introduction

xinetd cookbook

OpenCollective OpenCollective License

Description

This cookbook installs and configures the xinetd internet service daemon. It also provides an LWRP for managing xinetd services.

Maintainers

This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.

Requirements

Platforms

This cookbook has been tested on Centos and Ubuntu.

Chef Version

Chef 15.3+

Resources

xinetd_service

The xinetd_service resource allows you to define and enable xinetd services. For example:

xinetd_service "discard" do
  id "discard-stream"
  type "INTERNAL"
  wait false
  socket_type "stream"
  action :enable
end

All options supported in xinetd 2.3.14 are currently supported by this provider.

Note that no type checking is done for attribute values. Values are rendered directly into the xinetd configuration file for that service. Array's are coerced to space separated strings while true and false are converted to "yes" and "no", respectively.

The xinetd_service provider will attempt to relaod the xinetd service. Including this cookbooks default recipe before using it will ensure that such a service exists.

Attributes

The default recipe uses the following attributes to render the default xinetd.conf configuration block. See xinetd.conf(5) for their meanings. Boolean values are translated to "yes" and "no" before being rendered and Array's are coerced to space separated strings. Currently, the default attribute values are taken from the example configuration in the xinetd source repository.

  • default['xinetd']['defaults']['log_type']
  • default['xinetd']['defaults']['bind']
  • default['xinetd']['defaults']['per_source']
  • default['xinetd']['defaults']['umask']
  • default['xinetd']['defaults']['log_on_success']
  • default['xinetd']['defaults']['log_on_failure']
  • default['xinetd']['defaults']['v6only']
  • default['xinetd']['defaults']['only_from']
  • default['xinetd']['defaults']['no_access']
  • default['xinetd']['defaults']['passenv']
  • default['xinetd']['defaults']['instances']
  • default['xinetd']['defaults']['disabled']
  • default['xinetd']['defaults']['enabled']
  • default['xinetd']['defaults']['banner']
  • default['xinetd']['defaults']['banner_success']
  • default['xinetd']['defaults']['banner_fail']
  • default['xinetd']['defaults']['groups']
  • default['xinetd']['defaults']['cps']
  • default['xinetd']['defaults']['max_load']

The builtin_services recipe uses the following attributes to determine which of the builtin xinetd services to configure and enable. All are true by default.

  • default['xinetd']['builtin_services']['chargen-stream']['enabled']
  • default['xinetd']['builtin_services']['chargen-dgram']['enabled']
  • default['xinetd']['builtin_services']['daytime-stream']['enabled']
  • default['xinetd']['builtin_services']['daytime-dgram']['enabled']
  • default['xinetd']['builtin_services']['discard-stream']['enabled']
  • default['xinetd']['builtin_services']['discard-dgram']['enabled']
  • default['xinetd']['builtin_services']['echo-stream']['enabled']
  • default['xinetd']['builtin_services']['echo-dgram']['enabled']
  • default['xinetd']['builtin_services']['time-stream']['enabled']
  • default['xinetd']['builtin_services']['time-dgram']['enabled']
  • default['xinetd']['builtin_services']['tcpmux-server']['enabled']

Recipes

default.rb

Installs the xinetd package, renders a basic configuration file, and starts the xinetd service.

builtin_services.rb

This recipe configures stream and datagram services that xinetd implements internally:

  • echo
  • time
  • daytime
  • chargen
  • discard
  • tcpmux-server

By default this recipes configures all services. Individual services can be disabled by using the appropriate attributes (see above.)

Author

Author:: Steven Danna

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website https://opencollective.com/sous-chefs/sponsor/1/website https://opencollective.com/sous-chefs/sponsor/2/website https://opencollective.com/sous-chefs/sponsor/3/website https://opencollective.com/sous-chefs/sponsor/4/website https://opencollective.com/sous-chefs/sponsor/5/website https://opencollective.com/sous-chefs/sponsor/6/website https://opencollective.com/sous-chefs/sponsor/7/website https://opencollective.com/sous-chefs/sponsor/8/website https://opencollective.com/sous-chefs/sponsor/9/website

xinetd's People

Contributors

damacus avatar joelhandwell avatar kitchen-porter avatar obazoud avatar ramereth avatar renovate[bot] avatar stevendanna avatar stgarf avatar tas50 avatar umofomia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xinetd's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • sous-chefs/.github 3.1.1
  • actions/checkout v4
.github/workflows/stale.yml
  • actions/stale v9

  • Check this box to trigger a request for Renovate to run again on this repository

incorrect atrribute name for xinetd service template

I noticed a service wasn't getting disabled when I set disabled to yes.

In /var/log/syslog.log I can see the following:

Jan 21 00:06:49 debian-7 xinetd[3643]: bad service attribute: disabled [file=/etc/xinetd.d/http [line=3]

https://github.com/stevendanna/cookbook-xinetd/blob/master/templates/default/service.erb#L3

I believe the correct atrribute name is actually disable as opposed to it's current incarnation.

Setting disable = yes successfully disabled the service in xinetd for me on this system.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.