-
Notifications
You must be signed in to change notification settings - Fork 88
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
Depend variables default way to indicate source role name #296
Comments
@drybjed Or - something: 'something'
role: 'debops.nginx' ? |
The use of |
It is just not widely used in DebOps yet. Probably also because file names are generated based on that. I would propose to sanitize the |
Sure, sounds good. |
Updated my first comment with the currently approved version based on a discussion with @drybjed. Example: - something: 'something'
by_role: 'ROLE_OWNER.ROLE_NAME'
# and
- something: 'something'
by_role:: 'debops.nginx' |
Edited, current approved version
Various roles in DebOps expose dependency variables for other roles to use. Example
ferm__dependent_rules
of debops.ferm.There have been a number of changes in the format how to do this.
The recommended format is:
This applies for all roles. Other keys like
role
are deprecated and might be used for other purposes later.The role which exposes/provides dependency variables has to take care of properly sanitizing the role name. This can be done by
replace(".", "_")
in case the value is used as part of a file name.The text was updated successfully, but these errors were encountered: