Issue #14152 has been updated by Josh Cooper. Status changed from Accepted to Duplicate
Dup of #9827 ---------------------------------------- Bug #14152: Hooks for dependent settings not called https://projects.puppetlabs.com/issues/14152#change-78914 Author: Jeff Weiss Status: Duplicate Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: While working on #13948, I found that if you have a setting, like `$libdir` that is defined as `$vardir/lib`, when `$vardir` is changed, the hook for `$libdir` is not called with the new interpolated value. This is primarily a problem related to `$libdir`, but it may also affect `$factpath`. Here's a sample of the code that can reproduce the problem <code> <pre> puts "vardir #{Puppet[:vardir]}" puts "libdir #{Puppet[:libdir]}" puts "$LOAD_PATH includes $libdir: #{$LOAD_PATH.include? Puppet[:libdir]}" Puppet[:vardir] = "/tmp/var" puts "vardir #{Puppet[:vardir]}" puts "libdir #{Puppet[:libdir]}" puts "$LOAD_PATH includes $libdir: #{$LOAD_PATH.include? Puppet[:libdir]}" </pre> </code> And here's the output: <code> <pre> $ bin/puppet master --configprint pidfile --trace vardir /var/lib/puppet libdir /var/lib/puppet/lib $LOAD_PATH includes $libdir: true vardir /tmp/var libdir /tmp/var/lib $LOAD_PATH includes $libdir: false /tmp/var/run/master.pid </pre> </code> -- 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 post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
