On Monday, 22 January 2018 19.23.29 CET ZillaYT wrote:
> I'm using yum (RHEL). However with this approach, don't you have to update
> the file when the major version changes?
With that regex yes, it's a nice way to control upgrade to major versions.
And it also preventing upgrade of a package if someone should run apt
dist-upgrade (equivalent to yum upgrade)
My file for Gitlab looks like this
$ more /etc/apt/preferences.d/gitlab
Package: gitlab-ce
Pin: version /[0-9]+\.[0-9]+\.([5-9]-|[0-9]{2,}-)/
Pin-Priority: 1000
It only upgrade if the package is x.y.5 or higher, the reason for this is
Gitlab tends to be very buggy until around x.y.5 version is released.
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2140276.yyDdSyT0jU%40x1.
For more options, visit https://groups.google.com/d/optout.