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
Template inheritance #92
Conversation
51ce8b9
to
2d57931
Compare
As an example Drupal VM could then extend with:
|
Can you rebase this one now? Thanks for the help with this! I'd rather not create the new major release for this role until this is finished (it will also give me more time to test pre-DrupalCon... don't want to break things too badly right as more people start downloading for sprints!). |
2d57931
to
c9a6015
Compare
One last request—can you add a short section to the README file explaining the functionality and give one example for how a playbook can add to the template by extending the template or overriding a template? Now that you put this bug in my ear, I'm starting to see a lot of other roles where this would be the best way to keep the main role nice and focused on the 80% case yet allow people to easily configure the thousands of other options they might need (GitLab, Apache, MySQL, Varnish, etc.). |
Once you're okay with the docs, I can open up a similar PR for the varnish role. I think those would be the most useful templates to be able to override downstream in Drupal VM. Edit: Actually just looking at the other configuration templates makes me overwhelmed over how to split them into blocks... |
Thanks! I think starting minimally in the other places makes sense; and it seems that fewer people have had to touch the Varnish templates anyways—it's MySQL (crazy complex), Apache, and Nginx that I seem to have the most complaints about. |
Template inheritance
This is just a POC of allowing template files to be overridden. It's based on #91 so only the last commit actually belongs to this PR.
Should we also add basic out of the box support for SSL?