Commit Graph

9 Commits

Author SHA1 Message Date
Jonathon Anderson
6cb486dbd2
fix(snippets): ignore servers or snippets when undefined
nginx.servers_config wants a lightened copy of the nginx map
to render as json; but, when it was trying to remove the
servers and snippets keys from the map it assumed their presence,
causing a KeyError if they were not present by its use of .pop().

While wrapping these in an "if" clause would likely be more
correct, along with replacing .pop() with del (if jinja even
supports that) the simplest change here is to just specify a
default value for .pop(), which obviates the KeyError.

Fixes #274
2021-06-14 16:25:23 +01:00
Javier Bértoli
622d22f971 feat(servers_config): add require statement to manage dependencies
Also, check config before applying
2021-04-28 09:37:34 -03:00
Tobias Jungel
c03729ae32 fix(servers_config): fixup 05994e1 2021-03-30 01:42:27 +02:00
Tobias Jungel
3825557070 refactor(servers_config): remove unused loop 2021-03-26 21:41:22 +01:00
Tobias Jungel
05994e1b17 fix(servers_config): remove service depedency
* servers_config should run without service dependency. Service is
  managed in servers.sls.
* dropped nginx_service_reload in favor of extending nginx_service
* wait for all file states (create and delete)
* create dirs for symlinked files
2021-03-26 21:40:33 +01:00
sticky-note
8641f0d79a feat(context): pass nginx to snippets and server_config contexts 2020-12-17 13:52:46 +11:00
fthenard
a373bdab79 feat(add purge option): purge sites option 2020-03-30 14:52:05 +02:00
Sammy
d5262ea5df feat(tofs): first implemetation + tplroot
First implementation of TOFS for:
nginx_config, passenger_config, servers_config and snippets
Introduced tplroot on modified files as well
Fixed GH link of nginx.conf file in docs/TOFS_pattern.rst
Fixed test for snippets name pillar
2019-06-04 08:57:21 +11:00
Eric Veiras Galisson
0fc507055d refactor: replace old nginx with nginx.ng
BREAKING CHANGE: all previous `nginx` based configurations must be reviewed;
`nginx.ng` usage must be promoted to `nginx` and any uses of the original
`nginx` will have to be converted.
2019-05-12 17:13:17 +01:00