Saltstack Official Syslog-NG Formula
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

README.rst 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. syslog-ng-formula
  2. =================
  3. |img_travis| |img_sr|
  4. .. |img_travis| image:: https://travis-ci.com/saltstack-formulas/syslog-ng-formula.svg?branch=master
  5. :alt: Travis CI Build Status
  6. :scale: 100%
  7. :target: https://travis-ci.com/saltstack-formulas/syslog-ng-formula
  8. .. |img_sr| image:: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
  9. :alt: Semantic Release
  10. :scale: 100%
  11. :target: https://github.com/semantic-release/semantic-release
  12. Formula to set up and configure syslog_ng
  13. .. contents:: **Table of Contents**
  14. General notes
  15. -------------
  16. See the full `SaltStack Formulas installation and usage instructions
  17. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
  18. If you are interested in writing or contributing to formulas, please pay attention to the `Writing Formula Section
  19. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#writing-formulas>`_.
  20. If you want to use this formula, please pay attention to the ``FORMULA`` file and/or ``git tag``,
  21. which contains the currently released version. This formula is versioned according to `Semantic Versioning <http://semver.org/>`_.
  22. See `Formula Versioning Section <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#versioning>`_ for more details.
  23. Contributing to this repo
  24. -------------------------
  25. **Commit message formatting is significant!!**
  26. Please see `How to contribute <https://github.com/saltstack-formulas/.github/blob/master/CONTRIBUTING.rst>`_ for more details.
  27. Available states
  28. ----------------
  29. .. contents::
  30. :local:
  31. ``syslog_ng``
  32. ^^^^^^^^^^^^^
  33. Installs and configures the syslog_ng package.
  34. ``syslog_ng.package``
  35. ^^^^^^^^^^^^^^^^^^^^^
  36. Installs the syslog_ng package and optional packages which may provide additional functionalities.
  37. ``syslog_ng.config``
  38. ^^^^^^^^^^^^^^^^^^^^
  39. This state manages the file ``syslog_ng.conf`` under ``/etc/syslog-ng`` (template found in "syslog_ng/files"). The configuration is populated by values in "syslog_ng/map.jinja" based on the package's default values (and RedHat, Debian, Suse and Arch family distribution specific values), which can then be overridden by values of the same name in pillar.
  40. ``syslog_ng.service``
  41. ^^^^^^^^^^^^^^^^^^^^^
  42. Manages the startup and running state of the syslog_ng service.
  43. Testing
  44. -------
  45. Linux testing is done with ``kitchen-salt``.
  46. Requirements
  47. ^^^^^^^^^^^^
  48. * Ruby
  49. * Docker
  50. .. code-block:: bash
  51. $ gem install bundler
  52. $ bundle install
  53. $ bin/kitchen test [platform]
  54. Where ``[platform]`` is the platform name defined in ``kitchen.yml``,
  55. e.g. ``debian-9-2019-2-py3``.
  56. ``bin/kitchen converge``
  57. ^^^^^^^^^^^^^^^^^^^^^^^^
  58. Creates the docker instance and runs the ``syslog_ng`` main state, ready for testing.
  59. ``bin/kitchen verify``
  60. ^^^^^^^^^^^^^^^^^^^^^^
  61. Runs the ``inspec`` tests on the actual instance.
  62. ``bin/kitchen destroy``
  63. ^^^^^^^^^^^^^^^^^^^^^^^
  64. Removes the docker instance.
  65. ``bin/kitchen test``
  66. ^^^^^^^^^^^^^^^^^^^^
  67. Runs all of the stages above in one go: i.e. ``destroy`` + ``converge`` + ``verify`` + ``destroy``.
  68. ``bin/kitchen login``
  69. ^^^^^^^^^^^^^^^^^^^^^
  70. Gives you SSH access to the instance for manual testing.