Formula to set up and configure NGINX.
WARNING: BREAKING CHANGES SINCE v1.0.0 |
---|
Prior to
v1.0.0,
this formula provided two methods for managing NGINX;
the old method under If you are not in a position to migrate, please pin your repo to the final release tag before v1.0.0, i.e. v0.56.1. To migrate from To migrate from the old |
Table of Contents
See the full SaltStack Formulas installation and usage instructions.
If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section.
If you want to use this formula, please pay attention to the FORMULA
file and/or git tag
,
which contains the currently released version. This formula is versioned according to Semantic Versioning.
See Formula Versioning Section for more details.
Commit message formatting is significant!!
Please see How to contribute for more details.
Meta-state for inclusion of all states.
Note: nginx requires the merge parameter of salt.modules.pillar.get(), first available in the Helium release.
Installs nginx from package, from the distribution repositories, the official nginx repo or the ppa from Launchpad.
Builds and installs nginx from source.
Manages the deployment of nginx certificates.
Manages the nginx main server configuration file.
Manages the startup and running state of the nginx service.
Manages virtual host files. This state only manages the content of the files and does not bind them to service calls.
Manages nginx virtual hosts files and binds them to service calls.
Installs and configures Phusion Passenger module for nginx. You need to enable 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 allow the passenger module to work.
Linux testing is done with kitchen-salt
.
- Ruby
- Docker
$ gem install bundler
$ bundle install
$ bin/kitchen test [platform]
Where [platform]
is the platform name defined in kitchen.yml
,
e.g. debian-9-2019-2-py3
.
Creates the docker instance and runs the nginx
main state, ready for testing.
Runs the inspec
tests on the actual instance.
Removes the docker instance.
Runs all of the stages above in one go: i.e. destroy
+ converge
+ verify
+ destroy
.
Gives you SSH access to the instance for manual testing.