On Fri, Jul 22, 2011 at 12:43 PM, David Kavanagh <dkavan...@gmail.com> wrote: > I have this in a class: > $version = '2.0.3',
You have an extra comma at the end. > $repourl = > "http://www.eucalyptussoftware.com/downloads/repo/eucalyptus/$version/yum/downcase($operatingsystem)/$architecture" Can't really call downcase function in the middle of a string you need to create another variable: $dcos = downcase($::operatingsystem) $repourl = "http://www.eucalyptussoftware.com/downloads/repo/eucalyptus/${version}/yum/${dcos}/${::architecture}" This should be what you get: notice: Scope(Class[main]): http://www.eucalyptussoftware.com/downloads/repo/eucalyptus/2.0/yum/centos/ > repourl evaluates to: > http://www.eucalyptussoftware.com/downloads/repo/eucalyptus//yum/downcase(CentOS)/x86_64 > > I included the downcase function as suggested in a previous thread. > So, I notice that isn't evaluated and the $version also isn't > evaluated. Is the version thing because there isn't any order assumed? No variables should be evaluated in order. Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.