docs(readme): improve readme sections
This commit is contained in:
parent
8f89d6eec5
commit
3cc3407cb5
@ -14,8 +14,7 @@ nginx-formula
|
|||||||
:scale: 100%
|
:scale: 100%
|
||||||
:target: https://github.com/semantic-release/semantic-release
|
:target: https://github.com/semantic-release/semantic-release
|
||||||
|
|
||||||
Formula to set up and configure
|
Formula to set up and configure `NGINX <https://www.nginx.com/>`_.
|
||||||
`NGINX <https://www.nginx.com/>`_.
|
|
||||||
|
|
||||||
.. list-table::
|
.. list-table::
|
||||||
:name: banner-breaking-changes-v1.0.0
|
:name: banner-breaking-changes-v1.0.0
|
||||||
@ -69,13 +68,13 @@ Contributing to this repo
|
|||||||
Please see :ref:`How to contribute <CONTRIBUTING>` for more details.
|
Please see :ref:`How to contribute <CONTRIBUTING>` for more details.
|
||||||
|
|
||||||
Available states
|
Available states
|
||||||
================
|
----------------
|
||||||
|
|
||||||
.. contents::
|
.. contents::
|
||||||
:local:
|
:local:
|
||||||
|
|
||||||
``nginx``
|
``nginx``
|
||||||
---------
|
^^^^^^^^^
|
||||||
|
|
||||||
Meta-state for inclusion of all states.
|
Meta-state for inclusion of all states.
|
||||||
|
|
||||||
@ -83,45 +82,75 @@ Meta-state for inclusion of all states.
|
|||||||
first available in the Helium release.
|
first available in the Helium release.
|
||||||
|
|
||||||
``nginx.pkg``
|
``nginx.pkg``
|
||||||
-------------
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
Installs nginx from package, from the distribution repositories, the official nginx repo or the ppa from Launchpad.
|
Installs nginx from package, from the distribution repositories, the official nginx repo or the ppa from Launchpad.
|
||||||
|
|
||||||
``nginx.src``
|
``nginx.src``
|
||||||
-------------
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
Builds and installs nginx from source.
|
Builds and installs nginx from source.
|
||||||
|
|
||||||
``nginx.certificates``
|
``nginx.certificates``
|
||||||
----------------------
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Manages the deployment of nginx certificates.
|
Manages the deployment of nginx certificates.
|
||||||
|
|
||||||
``nginx.config``
|
``nginx.config``
|
||||||
----------------
|
^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Manages the nginx main server configuration file.
|
Manages the nginx main server configuration file.
|
||||||
|
|
||||||
``nginx.service``
|
``nginx.service``
|
||||||
-----------------
|
^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Manages the startup and running state of the nginx service.
|
Manages the startup and running state of the nginx service.
|
||||||
|
|
||||||
``nginx.servers_config``
|
``nginx.servers_config``
|
||||||
------------------------
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Manages virtual host files. This state only manages the content of the files
|
Manages virtual host files. This state only manages the content of the files
|
||||||
and does not bind them to service calls.
|
and does not bind them to service calls.
|
||||||
|
|
||||||
``nginx.servers``
|
``nginx.servers``
|
||||||
-----------------
|
^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Manages nginx virtual hosts files and binds them to service calls.
|
Manages nginx virtual hosts files and binds them to service calls.
|
||||||
|
|
||||||
``nginx.passenger``
|
``nginx.passenger``
|
||||||
-------------------
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Installs and configures Phusion Passenger module for nginx. You need to enable
|
Installs and configures Phusion Passenger module for nginx. You need to enable
|
||||||
the upstream phusion passenger repository with `install_from_phusionpassenger: true`.
|
the upstream phusion passenger repository with `install_from_phusionpassenger: true`.
|
||||||
Nginx will also be installed from that repository, as it needs to be modified to
|
Nginx will also be installed from that repository, as it needs to be modified to
|
||||||
allow the passenger module to work.
|
allow the passenger module to work.
|
||||||
|
|
||||||
|
Testing
|
||||||
|
-------
|
||||||
|
|
||||||
|
Linux testing is done with ``kitchen-salt``.
|
||||||
|
|
||||||
|
``kitchen converge``
|
||||||
|
^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Creates the docker instance and runs the ``template`` main state, ready for testing.
|
||||||
|
|
||||||
|
``kitchen verify``
|
||||||
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Runs the ``inspec`` tests on the actual instance.
|
||||||
|
|
||||||
|
``kitchen destroy``
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Removes the docker instance.
|
||||||
|
|
||||||
|
``kitchen test``
|
||||||
|
^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Runs all of the stages above in one go: i.e. ``destroy`` + ``converge`` + ``verify`` + ``destroy``.
|
||||||
|
|
||||||
|
``kitchen login``
|
||||||
|
^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Gives you SSH access to the instance for manual testing.
|
||||||
|
Loading…
Reference in New Issue
Block a user