Skip to content

yum::versionlock doesn't work as documented #334

@vchepkov

Description

@vchepkov

on RHEL9, when trying to implement versionlock, catalog fails to compile

profile::yum::versionlock:
  - candlepin-0:4.4.10-1.el9.*
  - candlepin-selinux-0:4.4.10-1.el9.*

  if $versionlock {
    $versionlock.each | String $v| {
      yum::versionlock { $v: }
    }
  }

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Package name must be formatted as Yum::RpmName, not 'String'. See Yum::Rpmname documentation for details. (file: /opt/puppetlabs/server/data/puppetserver/filesync/client/versioned-dirs/puppet-code/production_90afc15b2dd89dcb859edafd5768f4efb3da9462/modules/yum/manifests/versionlock.pp, line: 80, column: 7) (file: /etc/puppetlabs/puppetserver/code/environments/production/site/profile/manifests/yum.pp, line: 39) on node foreman.chepkov.lan

The strings are created by dnf versionlock command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions