-
-
Notifications
You must be signed in to change notification settings - Fork 607
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
add provisioning-hooks directory to operate like deploy-hooks #830
Comments
I'm not sure about this. For one thing, roles depend on order. The ugly solution to that is people naming roles like One goal of Trellis is to still expose Ansible. I think it's important for people to understand the basic playbooks and this abstracts that away a little bit too. |
That could be ugly, a bunch of numbered files. But that's left to people's dev patterns too. Personally, I would create a The abstraction can also be good too, especially as the user base matures and understands Ansible more. My impression would be that the users who intend on adding customizations to Trellis have some understanding of how Ansible works. In order for someone to use the |
Numbered files (for ordering) are often used in configs in distributions like Debian/Ubuntu but also |
I see this is still not dead, but discussion stopped. This would be huge for me. Here's my input:
|
This just isn't on our list of priorities right now but if you want to do the work and put up a PR, then it could potentially move it along. I can't guarantee it would get merged though as I haven't thought much about it lately. |
I'll make a PR for this for sure; it will be 100% optional and only available as people might need it. |
See #882 |
Submit a feature request or bug report
Replace any
X
with your information.What is the current behavior?
Any custom roles/tasks needed during provisioning must be added to the main server.yml, causing conflicts between projects and the trellis base when trying to keep it in sync locally.
What is the expected or desired behavior?
I think it would be a nice feature to just add custom.yml files to a directory that get automatically run during provisioning. So when merging the main trellis base into local projects, custom provisioning additions won't be lost when updating things like the main server.yml file.
Feature Request
Please provide use cases for changing the current behavior:
In my example, I always add a custom backup job that zips and pushes the DB and uploads directory to an Amazon s3 bucket nightly.
Other relevant information:
Added this task to the end of the server.yml
Creating a
custom-roles
folder and dropped two YAML files in there. They executed with no errors. Something like that built in would help guys like me from shooting themselves in the foot.The text was updated successfully, but these errors were encountered: