-
Notifications
You must be signed in to change notification settings - Fork 232
remote/config: support drop-in files #1785
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
base: master
Are you sure you want to change the base?
Conversation
c53b3ef to
4bb5a11
Compare
4bb5a11 to
69f1759
Compare
|
Force-pushed to fix a ruff error. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1785 +/- ##
========================================
- Coverage 45.1% 45.1% -0.1%
========================================
Files 172 172
Lines 13608 13612 +4
========================================
Hits 6144 6144
- Misses 7464 7468 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Pass "drop_ins" variable to a template being rendered containing a list of
*.yaml files in a directory named after the template being rendered with
".d" appended. For example when rendering /etc/labgrid/configuration.yaml
a list of files matching /etc/labgrid/configuration.yaml.d/*.yaml will be
available. Then configuration.yaml may be as simple as
{% for f in drop_ins %}
{% include f %}
{% endfor %}
And adding a target is possible by simply creating a file in
/etc/labgrid/configuration.yaml.d directory.
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
69f1759 to
ae26c5d
Compare
|
Force-pushed to fix sphinx syntax. |
|
@steelman Do you still consider this RFC? Otherwise, please remove the marker from the title, so that we can get it merged. |
|
If you're fine, I am fine. Do you think this could/should be tested somehow? |
Pass "dropins" variable to a template being rendered containing a list of
*.yamlfiles in a directory named after the template being rendered with ".d" appended. For example when rendering /etc/labgrid/configuration.yaml a list of files matching/etc/labgrid/configuration.yaml.d/*.yamlwill be available. Thenconfiguration.yamlmay be as simple as{% for f in dropins %}
{% include f %}
{% endfor %}
And adding a target is possible by simply creating a file in
/etc/labgrid/configuration.yaml.ddirectory.