nginx-formula/docs
semantic-release-bot c2fc324238 chore(release): 2.3.2 [skip ci]
## [2.3.2](https://github.com/saltstack-formulas/nginx-formula/compare/v2.3.1...v2.3.2) (2019-11-25)

### Bug Fixes

* **certificates.sls:** prepare `certificates_path` dir separately ([297e3ac](297e3ac400)), closes [#241](https://github.com/saltstack-formulas/nginx-formula/issues/241)
* **release.config.js:** use full commit hash in commit link [skip ci] ([b13ec85](b13ec85433))

### Continuous Integration

* **kitchen:** use `debian-10-master-py3` instead of `develop` [skip ci] ([0665878](066587829c))
* **kitchen:** use `develop` image until `master` is ready (`amazonlinux`) [skip ci] ([e8ed39a](e8ed39a62c))
* **kitchen+travis:** upgrade matrix after `2019.2.2` release [skip ci] ([faefcab](faefcabd65))
* **travis:** apply changes from build config validation [skip ci] ([4125887](41258874a5))
* **travis:** opt-in to `dpl v2` to complete build config validation [skip ci] ([dbeb2da](dbeb2da3e4))
* **travis:** update `salt-lint` config for `v0.0.10` [skip ci] ([a8382b5](a8382b51a0))
* **travis:** use build config validation (beta) [skip ci] ([bbf91c9](bbf91c9f14))
* merge travis matrix, add `salt-lint` & `rubocop` to `lint` job ([567c08c](567c08c9ad))

### Documentation

* **contributing:** remove to use org-level file instead [skip ci] ([2e58d63](2e58d636aa))
* **readme:** update link to `CONTRIBUTING` [skip ci] ([3ff6692](3ff6692590))

### Performance Improvements

* **travis:** improve `salt-lint` invocation [skip ci] ([e586fbe](e586fbeebc))

### Tests

* **pillar/nginx.sls:** add reprodicible snippet based on issue [#241](https://github.com/saltstack-formulas/nginx-formula/issues/241) ([4ba3524](4ba35247ed))
2019-11-25 13:25:12 +00:00
..
AUTHORS.rst chore(release): 2.3.2 [skip ci] 2019-11-25 13:25:12 +00:00
CHANGELOG.rst chore(release): 2.3.2 [skip ci] 2019-11-25 13:25:12 +00:00
README.rst docs(readme): update link to CONTRIBUTING [skip ci] 2019-10-14 11:37:16 +01:00
TOFS_pattern.rst chore: use semantic-release cross-formula standard structure 2019-08-17 16:06:48 +01:00

nginx-formula

Travis CI Build Status Semantic Release

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 nginx and the new method under nginx.ng. The old method has now been removed and nginx.ng has been promoted to be nginx in its place.

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 nginx.ng, simply modify your pillar to promote the entire section under nginx:ng so that it is under nginx instead. So with the editor of your choice, highlight the entire section and then unindent one level. Finish by removing the ng: line.

To migrate from the old nginx, first convert to nginx.ng under v0.56.1 and then follow the steps laid out in the paragraph directly above.

Table of Contents

General notes

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.

Contributing to this repo

Commit message formatting is significant!!

Please see How to contribute for more details.

Available states

nginx

Meta-state for inclusion of all states.

Note: nginx requires the merge parameter of salt.modules.pillar.get(), first available in the Helium release.

nginx.pkg

Installs nginx from package, from the distribution repositories, the official nginx repo or the ppa from Launchpad.

nginx.src

Builds and installs nginx from source.

nginx.certificates

Manages the deployment of nginx certificates.

nginx.config

Manages the nginx main server configuration file.

nginx.service

Manages the startup and running state of the nginx service.

nginx.servers_config

Manages virtual host files. This state only manages the content of the files and does not bind them to service calls.

nginx.servers

Manages nginx virtual hosts files and binds them to service calls.

nginx.passenger

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.

Testing

Linux testing is done with kitchen-salt.

Requirements

  • 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.

bin/kitchen converge

Creates the docker instance and runs the nginx main state, ready for testing.

bin/kitchen verify

Runs the inspec tests on the actual instance.

bin/kitchen destroy

Removes the docker instance.

bin/kitchen test

Runs all of the stages above in one go: i.e. destroy + converge + verify + destroy.

bin/kitchen login

Gives you SSH access to the instance for manual testing.