Issue #20894 has been reported by Jean-Sébastien Hedde.
----------------------------------------
Bug #20894: Weird behaviour with out-of-scope variables and puppet server
https://projects.puppetlabs.com/issues/20894
* Author: Jean-Sébastien Hedde
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* Affected Puppet version: 3.1.1
* Keywords:
* Branch:
----------------------------------------
Hi,
I have a strange problem with my puppet module.
In this module, every manifests use variables defined in a params.pp.
It has worked well but now in new manifest variable stay undef.
Some snippets :
# java.pp
<pre><code class="ruby">
class vm_php::java ($jdkversion = $vm_php::params::jdk_version) {
package { $vm_php::params::jdk_rpm_version:
ensure => present,
provider => rpm,
source => $vm_php::params::jdk_rpm_url
}
[...]
}
</code></pre>
# params.pp
<pre><code class="ruby">
class vm_php::params {
[...]
$jdk_version = '1.7.0'
$jdk_rpm_version = "jdk-${jdk_version}-fcs.x86_64"
$jdk_rpm_url =
'http://rpm.prod.lan/centos/6/os/x86_64/jdk-7-linux-x64.rpm'
[...]
}</code></pre>
Ouput of puppet agent --test --noop :
<pre>
Notice: /Stage[main]/Vm_php::Java/Package[undef]/ensure: current_value absent,
should be present (noop)
</pre>
# Versions
* CentOS release 6.3 (Final)
* puppet : 3.1.1
* puppet-dashboard : 1.2.23
* puppet-server : 3.1.1
* ruby : 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.