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

Various improvements related to repos/snapshots/publishes #13

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

bbinet
Copy link
Contributor

@bbinet bbinet commented Feb 14, 2018

And also add support for more options when publishing a new snapshot.

(backward compatibility with existing pillar structure is preserved)

@bbinet
Copy link
Contributor Author

bbinet commented Feb 15, 2018

Please wait before merging this PR.
I will extract the new snapshot publishing capability to a new aptly/server/publish.sls state so that it is not related to mirrors anymore (and can be used to publish repo snapshots too).

Any objection before I start the refactoring?

@fpytloun
Copy link
Member

I am fine with it, go ahead :-)
Only two notes:

  • it's recommended to use aptly-publisher for creating publishes as that tool is idempotent (won't do anything if there's nothing to do)
  • I am planning to add feature to create up-to-date snapshots when publishing with aptly-publisher so it will not be needed to create them by other tools

@bbinet
Copy link
Contributor Author

bbinet commented Feb 15, 2018

Yes, but as discussed in the other PR, I was not able to publish my filtered mirrors with aptly-publisher (probably because of an aptly api bug), so I'm now using salt directly, trying to make the salt formula publishing part idempotent too.

@fpytloun
Copy link
Member

Yes, I am fine with using it this way.

@bbinet
Copy link
Contributor Author

bbinet commented Feb 15, 2018

@fpytloun I've updated the PR with the refactoring and some other improvements:

  • 5891a0c Add support for dropping mirror snapshots
  • 48360ca Fix requirement issue when mirror.update is false
  • 4e6621a Fix missing requirement when engine is not docker
  • eb60e61 Minor renaming simplification
  • f3f9369 Add support for snapshotting repos
  • 1430653 Add support for publishing snapshots
  • fde4d3c Only run aptly repo add if packages are available in pkg_dir
  • ec80056 Add support for aptly repo add -remove-files option
  • f4610cb Add pillar example in readme for aptly server publish

Every commit include a specific self-contained feature so that it is easier to review.

@bbinet
Copy link
Contributor Author

bbinet commented Feb 16, 2018

I've updated the pull request with a new feature to add support for aptly repo include to be able to import .changes files (from dpkg-genchanges).
This also add support for importing gpg keys to verify .changes signature.

So here are now the various improvements of this PR:

  • 5891a0c Add support for dropping mirror snapshots
  • 48360ca Fix requirement issue when mirror.update is false
  • 4e6621a Fix missing requirement when engine is not docker
  • eb60e61 Minor renaming simplification
  • 93fdfa8 Add support for snapshotting repos
  • 09091ae Add support for publishing snapshots
  • 5491532 Only run aptly repo add if packages are available in pkg_dir
  • 84515a4 Add support for aptly repo add -remove-files option
  • 1b62c7a Add pillar example in readme for aptly server publish
  • 8de16c0 Add support for aptly repo include
  • d71b350 Fix pillar example for gpgkeys syntax in readme
  • 9fc0ef7 Cosmetics: cleanup .get('var', None) syntax

This PR is now ready to be reviewed.

@bbinet bbinet changed the title Add support for dropping snapshots/publishes Various improvements related to repos/snapshots/publishes Feb 16, 2018
@bbinet
Copy link
Contributor Author

bbinet commented Feb 27, 2018

@fpytloun do you think this can be merged soon?

@bbinet
Copy link
Contributor Author

bbinet commented Jun 13, 2018

@fpytloun any news on this one?

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.

2 participants