SuperTux88's Diaspora Saltstack Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. .. _readme:
  2. diaspora-formula
  3. ================
  4. |img_travis| |img_sr| |img_pc|
  5. .. |img_travis| image:: https://travis-ci.com/saltstack-formulas/diaspora-formula.svg?branch=master
  6. :alt: Travis CI Build Status
  7. :scale: 100%
  8. :target: https://travis-ci.com/saltstack-formulas/diaspora-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. .. |img_pc| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
  14. :alt: pre-commit
  15. :scale: 100%
  16. :target: https://github.com/pre-commit/pre-commit
  17. A saltstack formula to install and configure the distributed social network, `diaspora* <https://diasporafoundation.org/>`_.
  18. .. contents:: **Table of Contents**
  19. :depth: 1
  20. General notes
  21. -------------
  22. See the full `SaltStack Formulas installation and usage instructions
  23. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
  24. If you are interested in writing or contributing to formulas, please pay attention to the `Writing Formula Section
  25. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#writing-formulas>`_.
  26. If you want to use this formula, please pay attention to the ``FORMULA`` file and/or ``git tag``,
  27. which contains the currently released version. This formula is versioned according to `Semantic Versioning <http://semver.org/>`_.
  28. See `Formula Versioning Section <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#versioning>`_ for more details.
  29. If you need (non-default) configuration, please pay attention to the ``pillar.example`` file and/or `Special notes`_ section.
  30. Contributing to this repo
  31. -------------------------
  32. Commit messages
  33. ^^^^^^^^^^^^^^^
  34. **Commit message formatting is significant!!**
  35. Please see `How to contribute <https://github.com/saltstack-formulas/.github/blob/master/CONTRIBUTING.rst>`_ for more details.
  36. pre-commit
  37. ^^^^^^^^^^
  38. `pre-commit <https://pre-commit.com/>`_ is configured for this formula, which you may optionally use to ease the steps involved in submitting your changes.
  39. First install the ``pre-commit`` package manager using the appropriate `method <https://pre-commit.com/#installation>`_, then run ``bin/install-hooks`` and
  40. now ``pre-commit`` will run automatically on each ``git commit``. ::
  41. $ bin/install-hooks
  42. pre-commit installed at .git/hooks/pre-commit
  43. pre-commit installed at .git/hooks/commit-msg
  44. Special notes
  45. -------------
  46. This formula only manages diaspora. You are responsible for installing/configuring PostgreSQL or MariaDB as appropriate.
  47. Available states
  48. ----------------
  49. .. contents::
  50. :local:
  51. ``diaspora``
  52. ^^^^^^^^^^^^
  53. *Meta-state (This is a state that includes other states)*.
  54. This installs diaspora,
  55. manages the diaspora configuration file and then
  56. starts the associated diaspora service.
  57. ``diaspora.install``
  58. ^^^^^^^^^^^^^^^^^^^^
  59. This state will install diaspora from GitHub and has a dependency on ``diaspora.config`` via include list.
  60. ``diaspora.config``
  61. ^^^^^^^^^^^^^^^^^^^
  62. This state will configure diaspora.
  63. ``diaspora.service``
  64. ^^^^^^^^^^^^^^^^^^^^
  65. This state will create and start the diaspora services and has a dependency on ``diaspora.install`` via include list.
  66. Testing
  67. -------
  68. Linux testing is done with ``kitchen-salt``.
  69. Requirements
  70. ^^^^^^^^^^^^
  71. * Ruby
  72. * Docker
  73. .. code-block:: bash
  74. $ gem install bundler
  75. $ bundle install
  76. $ bin/kitchen test [platform]
  77. Where ``[platform]`` is the platform name defined in ``kitchen.yml``,
  78. e.g. ``debian-9-2019-2-py3``.
  79. ``bin/kitchen converge``
  80. ^^^^^^^^^^^^^^^^^^^^^^^^
  81. Creates the docker instance and runs the ``diaspora`` main state, ready for testing.
  82. ``bin/kitchen verify``
  83. ^^^^^^^^^^^^^^^^^^^^^^
  84. Runs the ``inspec`` tests on the actual instance.
  85. ``bin/kitchen destroy``
  86. ^^^^^^^^^^^^^^^^^^^^^^^
  87. Removes the docker instance.
  88. ``bin/kitchen test``
  89. ^^^^^^^^^^^^^^^^^^^^
  90. Runs all of the stages above in one go: i.e. ``destroy`` + ``converge`` + ``verify`` + ``destroy``.
  91. ``bin/kitchen login``
  92. ^^^^^^^^^^^^^^^^^^^^^
  93. Gives you SSH access to the instance for manual testing.