OK my bad...I have included the string "baseurl=" in the actual baseurl attribute....silly me. please ignore.
On Wednesday, 6 May 2020 17:10:28 UTC+1, Andy Hall wrote: > > 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 > > the parser seems to be as follows: > https://github.com/ruby/ruby/blob/master/lib/uri/rfc3986_parser.rb > > thanks !! > > -- 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/b27d756a-3f03-40ec-b58a-fc1e8675ce61%40googlegroups.com.