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/df05feee-d109-4669-86db-94e122cc9479%40googlegroups.com.

Reply via email to