All-

RHEL 8 and RHEL 9 and their rebuilds and related distros inherited DNF
modularity from Fedora, as a kind of replacement for Software Collections
Library alternate package version.

I've been unable to find the correct puppet idiom to do the following:

1) ensure a particular module stream is enabled *before* installing
   packages from that stream.
2) install the package(s).

I thought that this would work:

  package { 'enable-nodejs18':
    ensure      => 'nodejs:18',
        name        => 'nodejs',
        provider    => 'dnfmodule',
        enable_only => true,
  }

  package { 'nodejs':
    ensure  => installed,
        require => Package['enable-nodejs18'],
  }

But that doesn't work.  I still get the base OS version of 'nodejs'
installed.  The correct module stream isn't enabled (first).  If we
manually (outside puppet) switch the client to the correct stream,
then the 2nd package resource does install the version we want.
Obviously, we want to control the one-time module stream selection in
puppet too.

Can anyone tell me what the correct idiom is to do what I'm trying to
accomplish?

Thanks!

Tim
--
Tim Mooney                                             tim.moo...@ndsu.edu
Enterprise Computing & Infrastructure /
Division of Information Technology    /                701-231-1076 (Voice)
North Dakota State University, Fargo, ND 58105-5164

--
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/e5efed0-5a8-de7a-ecc8-abe1835ec4a%40ndsu.edu.

Reply via email to