Skip to content

Conversation

@myii
Copy link
Contributor

@myii myii commented Feb 12, 2019

Fixed issues with map.jinja. Since this formula is for reference purposes, I've added the other OS values found in other formulas, in both osfamilymap.yaml and osmap.yaml.

@myii myii requested a review from aboe76 February 12, 2019 07:42
Copy link
Member

@javierbertoli javierbertoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@myii, a couple of suggestions? wdyt?

# vim: ft=yaml
#
# Setup variables using grains['os_family'] based logic.
# Only add key:values that differ from `defaults.yaml`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible that adding all these empty os_familys hashes might confuse a newcomer and let her assume that they have to be listed even if not covered by the formula?

In that case, perhaps the line above can be rephrased, like

# You just need to add the key:values for an `os_family` that differ from `defaults.yaml`.
# Only add an `os_family` which is/will be supported by the formula (empty `os_family`s
# do not need to be listed, just added here as an example)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely, just wanted to revive the useful comment that was in the map.jinja previously and show a list of OSes that formulas support. I do feel like I've come across the use of {} before somewhere... perhaps a situation where the OS family (e.g. Debian) makes no changes to the defaults yet the OS derivative (e.g. Ubuntu) does? Maybe just used to explicitly define the OSes?

In any case, your suggestion is excellent and I'll incorporate that.

@myii
Copy link
Contributor Author

myii commented Feb 12, 2019

@javierbertoli Thanks for the excellent review. I'll get those done soon and pushed into this PR.

@myii
Copy link
Contributor Author

myii commented Feb 12, 2019

@javierbertoli I've applied those changes in b5c4987. Thanks again for your feedback.

Copy link
Member

@javierbertoli javierbertoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! I think it's ready to merge. Thanks, @myii !

@aboe76 aboe76 merged commit a143add into saltstack-formulas:master Feb 12, 2019
@myii myii deleted the PR_map-and-yaml branch February 12, 2019 20:54
@myii
Copy link
Contributor Author

myii commented Feb 12, 2019

@aboe76 @javierbertoli Thanks to both of you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants