I'm aware of the version option but I still think "present" should be able
see that an older version is installed even if a newer version had been
installed and removed. That is the defined behavior of "present", after all.

On Sun, Jul 12, 2015 at 4:02 AM, Lowe Schmidt <[email protected]> wrote:

> Setting the specific version instead of present should be enough.
>
> [...]
> ensure => 1.3.2,
> [...]
>
> for example.
>
> --
> Lowe Schmidt | +46 723 867 157
>
> On 10 July 2015 at 18:58, Randall Smith <[email protected]> wrote:
>
>> Greetings,
>>
>> I'm using puppet 3.8.1 on ubuntu precise. My manifest includes a very
>> simple package to install docker.
>>
>>   package { $docker::params::docker_package_name:
>>     ensure => present,
>>     require => Class["docker::params"],
>>   }
>>
>> I recently manually updated the docker package using apt-get on the
>> server. The upgrade caused problems so I rolled it back. This is what dpkg
>> shows for the docker package.
>>
>> # dpkg -l | grep docker
>> rc  lxc-docker-1.3.2                 1.3.2
>> amd64        Linux container runtime
>> rc  lxc-docker-1.3.3                 1.3.3
>> amd64        Linux container runtime
>> rc  lxc-docker-1.4.0                 1.4.0
>> amd64        Linux container runtime
>> rc  lxc-docker-1.4.1                 1.4.1
>> amd64        Linux container runtime
>> ii  lxc-docker-1.5.0                 1.5.0
>> amd64        Linux container runtime
>> rc  lxc-docker-1.7.0                 1.7.0
>> amd64        Linux container runtime
>>
>> That's what I want. Unfortunately, puppet sees the docker package as
>> being purged and then re-installs/upgrades it (which I don't want). That
>> would make sense if I had the package configured as 'latest' but it's
>> configured as 'present'. What is going on and how do I prevent this from
>> happening in the future?
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/puppet-users/8fd0fa46-a6c1-4b01-b537-c84a59574763%40googlegroups.com
>> <https://groups.google.com/d/msgid/puppet-users/8fd0fa46-a6c1-4b01-b537-c84a59574763%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAC-wWcSh1z0Mz9gvx51dn%2Bk%2BCerrz6z%2B0q4RMU%3DA0aejREy6nw%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAC-wWcSh1z0Mz9gvx51dn%2Bk%2BCerrz6z%2B0q4RMU%3DA0aejREy6nw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Randall Smith
Computing Services
Adams State University
http://www.adams.edu/
719-587-7741

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CADLyeqxoX4uy_vuBTM14kBn%3DXjf3dzS2E8%3DZ_%3DaC%2BYxSUwH8fQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to