bad URI when parsing yumrepo baseurl

23 views
Skip to first unread message

Andy Hall

unread,
May 6, 2020, 12:10:28 PM5/6/20
to Puppet Users
please can someone tell me what is wrong with this as it is a valid URI and should work...
 
 if ($::operatingsystemmajrelease == '5') or ($::operatingsystemmajrelease == '6') {
    yumrepo
{ 'vmware-tools':
      baseurl
=> "baseurl=http://packages.vmware.com/tools/releases/10.1.0/rhel${::operatingsystemmajrelease}/x86_64",
      descr  
=> 'vmware',
      enabled
=> 1,
      gpgcheck
=> 1,
      gpgkey  
=> 'https://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub',
   
}
 
}

Error: Failed to apply catalog: Parameter baseurl failed on Yumrepo[vmware-tools]: Validate method failed for class baseurl: bad URI(is not URI?): baseurl=http://packages.vmware.com/tools/releases/10.1.0/rhel6/x86_64

as you can see this is a real URI: http://packages.vmware.com/tools/releases/10.1.0/rhel5/x86_64


thanks !!

Andy Hall

unread,
May 6, 2020, 12:38:51 PM5/6/20
to Puppet Users
OK my bad...I have included the string "baseurl=" in the actual baseurl attribute....silly me. please ignore.
Reply all
Reply to author
Forward
0 new messages