-
Notifications
You must be signed in to change notification settings - Fork 85
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
fix(map.jinja
): _merge_ defaults and config.get
#115
Conversation
2f41ae0
to
f71ff87
Compare
@myii: fixed the merging, |
Final solution for |
pillar.example
Outdated
|
||
# Just for testing purposes | ||
winner: pillar | ||
added_in_pillar: asdf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make it clear that is being pulled from the correct place, wouldn't it be better to have a different value than the one added_from_lookup
? ie, added_in_pillar: pillar_value
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@javierbertoli I'll update the PR. Thanks for the feedback!
template/defaults.yaml
Outdated
config: '/etc/template' | ||
service: | ||
name: template | ||
# Just here for testing | ||
added_in_defaults: asdf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here?
test resulting config
🎉 This PR is included in version 2.1.6 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
* To distinguish between: - `salt-minion` - `salt-call` - `salt-ssh` * Invoked like `map.jinja`: - `{%- from tplroot ~ "/libsaltcli.jinja" import cli with context %}` * Based upon work done in PRs: saltstack-formulas#102, saltstack-formulas#114 & saltstack-formulas#115
* To distinguish between: - `salt-minion` - `salt-call` - `salt-ssh` * Invoked like `map.jinja`: - `{%- from tplroot ~ "/libsaltcli.jinja" import cli with context %}` * Based upon work done in PRs: saltstack-formulas#102, saltstack-formulas#114 & saltstack-formulas#115 * Finalised from saltstack-formulas/libvirt-formula#71 * Required by saltstack-formulas#186
The merge which was formerly done by
pillar.get(..., merge=True)
has now to be performed bygrains.filter_by
.Tested on FreeBSD with both
salt
andsalt-ssh
.