It uses apt::pin like so,
https://github.com/puppetlabs/puppetlabs-docker/blob/7c7c38c09548b0e0ebdf92643f59efca93430e2b/manifests/repos.pp#L39-L43

On Fri, Sep 6, 2019 at 4:11 PM Stefan Lasiewski <slasiew...@lbl.gov> wrote:

> Hi all,
>
> I'm using Puppet 5 to install Docker like so:
>
> class { 'docker':
>    version                     => 5:18.09.9~3-0~ubuntu-bionic,
> }
>
>
> We'd like to control the version of Docker that's running using the Puppet
> manifest. That is, we want to prevent the unintentional upgrade of Docker
> when someone logs into the system and runs `apt upgrade`.
>
> The Docker module has an option named in_upstream_package_source
> <https://forge.puppet.com/puppetlabs/docker/readme#pin_upstream_package_source>,
> but from the description, I'm a little unclear if this 'locks' or 'holds' a
> package version.
>
> Does the Docker module actually 'lock' the Docker package to a specific
> version?
>
> Thank you,
>
> -= Stefan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/d0e7e865-9b87-44bc-aa60-b071881078c0%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/d0e7e865-9b87-44bc-aa60-b071881078c0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CACkW_L7AuPJLG8n-ZtLAxR_0orxH9h1Qn3hR5_ALtS8S1kOy7g%40mail.gmail.com.

Reply via email to