Saltstack Official Apt-Cacher Formula
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. .. _readme:
  2. apt-cacher-formula
  3. ==================
  4. |img_travis| |img_sr|
  5. .. |img_travis| image:: https://travis-ci.com/saltstack-formulas/apt-cacher-formula.svg?branch=master
  6. :alt: Travis CI Build Status
  7. :scale: 100%
  8. :target: https://travis-ci.com/saltstack-formulas/apt-cacher-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. A SaltStack formula that is empty. It has dummy content to help with a quick
  14. start on a new formula and it serves as a style guide.
  15. .. contents:: **Table of Contents**
  16. General notes
  17. -------------
  18. See the full `SaltStack Formulas installation and usage instructions
  19. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
  20. If you are interested in writing or contributing to formulas, please pay attention to the `Writing Formula Section
  21. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#writing-formulas>`_.
  22. If you want to use this formula, please pay attention to the ``FORMULA`` file and/or ``git tag``,
  23. which contains the currently released version. This formula is versioned according to `Semantic Versioning <http://semver.org/>`_.
  24. See `Formula Versioning Section <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#versioning>`_ for more details.
  25. Contributing to this repo
  26. -------------------------
  27. **Commit message formatting is significant!!**
  28. Please see :ref:`How to contribute <CONTRIBUTING>` for more details.
  29. Available states
  30. ----------------
  31. .. contents::
  32. :local:
  33. ``apt-cacher.server``
  34. ^^^^^^^^^^^^^^^^^^^^^
  35. Installs the apt-cacher package.
  36. ``apt-cacher.client``
  37. ^^^^^^^^^^^^^^^^^^^^^
  38. Sets up the system to use the apt-cacher server as the caching proxy.
  39. ``apt-cacher.ng.server``
  40. ^^^^^^^^^^^^^^^^^^^^^^^^
  41. Install and configure apt-cacher-ng.
  42. Supports Debian(ish) distributions and FreeBSD.
  43. ``apt-cacher.ng.server.package``
  44. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  45. Installs the apt-cacher-ng package.
  46. ``apt-cacher.ng.server.config``
  47. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  48. Installs the apt-cacher-ng config.
  49. ``apt-cacher.ng.server.service``
  50. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  51. Manages the startup and running state of the apt-cacher-ng service.
  52. ``apt-cacher.ng.client``
  53. ^^^^^^^^^^^^^^^^^^^^^^^^
  54. Sets up the system to use the apt-cacher-ng server as the caching proxy.
  55. Testing
  56. -------
  57. Linux testing is done with ``kitchen-salt``.
  58. Requirements
  59. ^^^^^^^^^^^^
  60. * Ruby
  61. * Docker
  62. .. code-block:: bash
  63. $ gem install bundler
  64. $ bundle install
  65. $ bin/kitchen test [platform]
  66. Where ``[platform]`` is the platform name defined in ``kitchen.yml``,
  67. e.g. ``debian-9-2019-2-py3``.
  68. ``bin/kitchen converge``
  69. ^^^^^^^^^^^^^^^^^^^^^^^^
  70. Creates the docker instance and runs the ``apt-cacher`` main state, ready for testing.
  71. ``bin/kitchen verify``
  72. ^^^^^^^^^^^^^^^^^^^^^^
  73. Runs the ``inspec`` tests on the actual instance.
  74. ``bin/kitchen destroy``
  75. ^^^^^^^^^^^^^^^^^^^^^^^
  76. Removes the docker instance.
  77. ``bin/kitchen test``
  78. ^^^^^^^^^^^^^^^^^^^^
  79. Runs all of the stages above in one go: i.e. ``destroy`` + ``converge`` + ``verify`` + ``destroy``.
  80. ``bin/kitchen login``
  81. ^^^^^^^^^^^^^^^^^^^^^
  82. Gives you SSH access to the instance for manual testing.