Closed baby-gnu closed 4 years ago
Best reviewed: commit by commit
Powered by Pull Assistant. Last update df477b2 ... a0af21a. Read the comment docs.
Merged, excellent work @baby-gnu!
@baby-gnu Something worth thinking about (for v6 of map.jinja
?!): how about using Salt targetting grammar instead? See this from the discussion with @OrangeDog in the Slack channel.
https://freenode.logbot.info/saltstack-formulas/20200730#c4572975-c4573065
- - - 16:13 OrangeDog[m] Is it possible to make it less ambiguous? There's nothing stopping there being a grain called config_get_lookup
, or a functionos.family
16:13 myii nebuchadnezzar: Ready to be merged from your end? 16:13 OrangeDog[m] For example, see the targeting grammar 16:14 nebuchadnezzar myii: yes 16:15 myii OK, I'll do that once it's green -- thanks for all of your efforts! 16:15 nebuchadnezzar see you tomorrow ;-) 16:16 myii[m] OrangeDog: Any suggestions? We did have some other ideas but they're lost somewhere in GitHub Discussions (not searchable yet). 16:18 OrangeDog[m] grain:os_family
,G!os_family
,grains[os_family]
,salt:config.get
,module:config.get
,F!config.get
,config.get()
,salt[config.get]
16:19 OrangeDog[m] (edited) ... , G!os_family
,grains[os_family]
,salt:config.get
,module:config.get
,F!config.get
, ... => ... ,G@os_family
,grains[os_family]
,salt:config.get
,module:config.get
,F⊙cg
, ...
:tada: This PR is included in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Note: Checked this across all platforms in Travis and only failing on CentOS-6, as expected from our discussions in Slack/IRC:
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?No.
Related issues and/or pull requests
https://github.com/saltstack-formulas/libvirt-formula/pull/79
Describe the changes you're proposing
Use the new v4
map.jinja
and maintain the compatibility with user pillars by configuring a newmap_jinja:config_get_roots
parameter.The
map.jinja
use the generic exported namemapdata
as in the latestlibvirt-formula
.Pillar / config required to test the proposed changes
It's already provided by
test/salt/pillar/default.sls
.Debug log showing how the proposed changes work
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).Additional context