Saltstack Official Syslog-NG Formula
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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