Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx includes: Move templates dir, fix 'No such file' error #687

Merged
merged 5 commits into from
Dec 1, 2016

Conversation

fullyint
Copy link
Contributor

This PR fixes #517, preventing the message that occurs if users have no Nginx includes templates: roles/wordpress-setup/templates/includes.d: No such file or directory.
Docs in roots/docs#57

What changes for users?

  • Users will no longer see 'No such file' error.
  • Everything continues to function as is, but users will see a deprecation warning until they move templates to nginx-includes (directory name configurable via nginx_includes_templates_path).
  • Users now have option to set nginx_includes_d_cleanup: false to prevent Trellis from removing unmanaged confs from remote.

More possibilities and options will come in the Nginx hooks PR #688. For example, the current Nginx includes are limited in that files can only be included in one spot within the conf, within the site's primary server block. #688 will make it possible add lines or includes elsewhere (outside server block, etc.).

Copy link
Member

@swalkinshaw swalkinshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 much better

@fullyint fullyint merged commit 78400a9 into master Dec 1, 2016
@fullyint fullyint deleted the nginx-includes branch December 1, 2016 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nginx included templates broken on Ansible 2.x
2 participants