Commit Graph

22 Commits

Author SHA1 Message Date
Jeff Geerling 227d1326ca Fix rule 208 lint issues. 2020-08-20 22:37:17 -05:00
Jeff Geerling e89289d5f1 Fix Ansible 2.8 deprecation warnings for bare vars. 2019-05-31 22:32:09 -05:00
Jeff Geerling 695e0dc519 Fixes #175: root_group var should be used for vhosts file, RedHat setup. 2018-11-21 20:31:12 -06:00
Jeff Geerling 67c8be8106 Fix some Ansible Lint issues and set up yaml-lint options. 2018-09-25 22:42:06 -05:00
Oskar Schöldström 7b47c3de12 vhost_filename -> filename 2017-06-03 09:01:09 -05:00
Oskar Schöldström 98b736f479 Add optional vhost_filename option to nginx_vhosts 2017-06-03 08:48:00 -05:00
Oskar Schöldström 5e41c6b1f9 Issue #95: Add support for setting template on a per vhost basis 2017-04-26 19:37:36 -05:00
Oskar Schöldström 36cd4d3aec Allow users to extend config files through template inheritance 2017-04-22 16:26:45 -05:00
Oskar Schöldström 0d931c53c3 Remove legacy vhosts.conf file 2017-04-22 10:03:18 -05:00
Oskar Schöldström 9cf49ac6c2 when statements should not include jinja2 templating delimiters 2017-04-21 07:46:45 -05:00
Oskar Schöldström f8a04dd544 Write vhost configurations to separate config files 2017-04-21 07:25:18 -05:00
Olivier LOCARD f01357976c restart instead of reload after remove default. 2016-10-06 13:59:29 +02:00
Jeff Geerling 23f92af920 Tweak syntax and docs for vhosts config. 2016-09-24 10:35:18 -05:00
Jeff Geerling ee5cd31375 Merge pull request #60 from danlamanna/fix-nginx-vhost-path-customization
Create the Nginx vhost path directory
2016-09-24 10:33:51 -05:00
Pedro Nofuentes e03f85d4c3 Added vhosts filename variable to allow set it up 2016-06-28 11:35:43 +02:00
Dan LaManna 8aa51642b4 Create the Nginx vhost path directory
In particular, the default /usr/local/etc/nginx/sites-enabled directory does not
exist on installation of Nginx on FreeBSD.
2016-06-04 02:03:11 -04:00
Aleksandr Vinokurov 5294d77fa3 Remove new config validation, Fix #41
NOTE: current nginx config validation process breaks SELinux context
for pid file, as described in #41

Restart of nginx is not needed for configuration changes and is
replaced with reload, which will validate config before applying it,
leaving running nginx process untouched in case of any validation
errors.

Restart handler left in support.
2016-01-22 12:56:30 +03:00
cmacrae a248416a4d Ensuring all instances that notify 'restart nginx' also validate first 2015-12-22 16:55:29 +00:00
cmacrae fd6b8c8e6b Addning handler for Nginx config validation:
Although the 'validate' param was added for the deployment of
/etc/nginx.conf - this validation process will only be triggered upon
changes.
So, if a vhost config is updated, but the main config isn't, the
collective config will not be verified.

I've added a new handler 'validate nginx configuration' and added this
to the 'notify' param as a first list item for vhost config changes.

Unfortunately, this will not protect against the deployment of malformed
configuration, however it will prevent the restart of Nginx in such a
situation (as the 'validate nginx configuration' handler should error
out before the 'restart nginx' handler is called).
2015-12-22 16:36:11 +00:00
Asa Gage 73d7140752 updating vhost conditional expressions to check count of list members 2015-12-10 09:00:39 -05:00
Jeff Geerling 90b6ddd1b3 Fixes #11: Add default/simple virtualhost configuration. 2015-02-21 00:02:51 -06:00
Jeff Geerling 7360d9cb0b Major vhosts cleanup in preparation for issue #11. 2015-02-20 23:34:31 -06:00