Hi, In class parameters, things like x="x", y="y${x}" don't always evaluate right (y="yx"), seems random. I'm using 2.7.1
class test1( $servicex = "sonar", $logfoldera = "${homex}/logs", $logfoldere = "${homey}/logs", $logfolderh = "${homez}/logs", $logfolder = "${homex}/logs", $homex = "/var/${servicex}", $homey = "/var/${servicex}", $homez = "/var/${servicex}") { notice($homex) notice($homey) notice($homez) notice("-----") notice($logfoldera) notice($logfoldere) notice($logfolderh) } output : notice: Scope(Class[Test1]): /var/sonar notice: Scope(Class[Test1]): /var/sonar notice: Scope(Class[Test1]): /var/sonar notice: Scope(Class[Test1]): ----- notice: Scope(Class[Test1]): /var/sonar/logs notice: Scope(Class[Test1]): /logs notice: Scope(Class[Test1]): /logs Note the last two messages should print "/var/sonar/logs" Ordering the paramenters in the order they are needed gets the same result. Just by changing the name of the parameters from class test1 to test2 I get different evaluations of the variables, one is right and two are wrong, you can see that in this gist https://gist.github.com/1250837 Am I doing something wrong? is interpolation not supposed to work with class parameters? Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ubA3F3GClqcJ. 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.