Skip to content
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

Add ubuntu map.jinja #45

Merged
merged 4 commits into from
May 28, 2019

Conversation

jdkelleher
Copy link
Contributor

This work was based on a suggestion to update map.jinja instead of pillars.example as had been submitted for pull request #41. While working through the changes needed to include Ubuntu defaults, other bits of neatness were included:

  • updated repositories entries for reasonable naming across Debian and Ubuntu entries
  • updated repo entries for security as syntax differs between Debian and Ubuntu
  • added repo entries for -updates (previously known as volatile)
  • updated map to use explicitly use grain os instead of implicitly use os_family
  • removed distribution_updates variable - syntax was Debian specific and invalid for Ubuntu
  • tested against Debian/stretch and Ubuntu/xenial

jdkelleher and others added 3 commits May 4, 2019 08:14
Syncing fork to the original repository
updated repositories entries for sane naming across Debian and Ubuntu entries
updated repo entries for security as syntax differs between Debian and Ubuntu
added repo entries for -updates (previously known as volatile)
updated map to use explicitly use grain os instead of implicitly use os_family
removed distribution_updates variable - syntax was Debian specific and invailid for Ubuntu
tested against Debian/stretch and Ubuntu/xenial
@myii
Copy link
Member

myii commented May 27, 2019

@jdkelleher Thanks for this. We've got a bit of a conflict with #44 now. Let's see if we can find a resolution in that PR, so that this PR can be merged without issues.

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.

@jdkelleher a suggestion to make it backward compatible

apt/map.jinja Outdated
@@ -21,18 +20,68 @@
'default_url': 'http://deb.debian.org/debian/',
'default_keyring_package': 'debian-archive-keyring',
'repositories': {
'sane_default': {
'default': {
Copy link
Member

Choose a reason for hiding this comment

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

@jdkelleher Although I prefer the names you set more than the old ones, changing these will be backward incompatible for users of this formula in the case that the formula was used as-is (with no pillar data): the existing repos sane_default-binary.list and security-stable-binary.list will still exist and the new ones (default-binary.list and default-security-binary.list) will be created, giving a warning that the entries are duplicated.

I'd suggest you keep the old names for the Debian part, so your PR is backward compatible and can be merged. We can later submit another PR to rename these and allow to delete specific entries (which is not currently supported).

wdyt?

Copy link
Contributor Author

@jdkelleher jdkelleher May 27, 2019

Choose a reason for hiding this comment

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

Makes perfect sense to me. I was thinking about the entry deletion gap when I was making updates, but moved forward without a solution.

Should I update and resubmit or is there a cleaner way to bring that into this branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@javierbertoli I just committed the requested updates. Please let me know if anything else is needed. Thanks.

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.

Great @jdkelleher, thanks!

@myii myii merged commit a34d721 into saltstack-formulas:master May 28, 2019
@myii
Copy link
Member

myii commented May 28, 2019

@jdkelleher Thanks, this has been merged. @javierbertoli Besides gratitude for the review, let me know when you're ready to merge #44.

@jdkelleher jdkelleher deleted the add-ubuntu-map.jinja branch April 20, 2020 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants