Hi Christian,
The following manifests should achieve your goal:
package { 'redis':
> ensure => '6',
> provider => 'dnfmodule',
> enable_only => true
> }
or
ensure_packages( [‘redis’], { provider => dnfmodule, ensure =>
> '6', enable_only => true } )
We've managed to reproduce your issue and sadly Puppet does not support
stream in package name. The version should be provided in the ensure field
as stated here
<https://puppet.com/docs/puppet/7/types/package.html#package-attribute-ensure>.
I hope this helps.
Luchi
On Fri, Jul 23, 2021 at 8:26 AM 'Christian Masopust' via Puppet Users <
[email protected]> wrote:
> Hi guys,
>
>
>
> I’m using dnfmodule provider to enable a module on my CentOS 8 systems:
>
>
>
> ensure_packages( ['redis:6'], { provider *=>* dnfmodule, *ensure* *=>*
> present, enable_only *=>* *true* } )
>
>
>
> I would expect that this enables the module at first run and then it
> leaves it untouched, but what I see at any run is
> that it will be „updated“ each time:
>
>
>
> *Notice: /Stage[main]/Gt_redis/Package[redis:6]/ensure: created
> (corrective)*
>
>
>
> Debug output of the puppet run:
>
>
>
> Info: /Package[redis:6]: Starting to evaluate the resource (275 of 506)
>
> Debug: Executing: '/usr/bin/dnf module list -d 0 -e 1'
>
> Debug: Executing: '/usr/bin/dnf module enable -d 0 -e 1 -y redis:6'
>
> Notice: /Stage[main]/Gt_redis/Package[redis:6]/ensure: created (corrective)
>
> Debug: /Package[redis:6]: The container Class[Gt_redis] will propagate my
> refresh event
>
> Info: /Package[redis:6]: Evaluated in 7.61 seconds
>
>
>
>
>
> So, is this an issue in puppet? Or is my resource configuration wrong?
>
>
>
> Thanks,
>
> Christian
>
> --
> 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/000201d77f83%244eb1afb0%24ec150f10%24%40chello.at
> <https://groups.google.com/d/msgid/puppet-users/000201d77f83%244eb1afb0%24ec150f10%24%40chello.at?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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CAL3_yBOxU-cqtNNw51rA7SJGk_MoMoJ29QD4q8uyoEmPMYNZ7g%40mail.gmail.com.