Create a dictionary of hashes in map.jinja for packer#13
Open
allyunion wants to merge 2 commits intosaltstack-formulas:masterfrom
Open
Create a dictionary of hashes in map.jinja for packer#13allyunion wants to merge 2 commits intosaltstack-formulas:masterfrom
allyunion wants to merge 2 commits intosaltstack-formulas:masterfrom
Conversation
baby-gnu
reviewed
Feb 3, 2021
baby-gnu
left a comment
There was a problem hiding this comment.
Hello @allyunion, what do you think of putting that hash in defaults.yml instead of the map.jinja?
For example:
# -*- coding: utf-8 -*-
# vim: ft=yaml
default:
sha256_checksums:
1.6.6: sha256=721d119fd70e38d6f2b4ccd8a39daf6b4d36bf5f7640036acafcaaa967b00c3b
1.6.5: sha256=a49f6408a50c220fe3f1a6192ea21134e2e8f31092c507614cd27ad4f913234b
1.6.4: sha256=a20ec68e9eb6e1d6016481003f705babbecc28e234f8434f3a35f675cb200ea8
1.6.3: sha256=294ae56dccec9da24120b92c22e4c4d0453f1a9d077799611ead2adacceade3eThis way, you will use packer.default.sha256_checksums.
This will keep the map.jinja trivial which will ease any migration to new developpment around map.jinja.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Notes:
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
Describe the changes you're proposing
Pillar / config required to test the proposed changes
Debug log showing how the proposed changes work
Documentation checklist
README(e.g.Available states).pillar.example.Testing checklist
state_top).Additional context