Puppet cannot install ports

I'm started to learn puppet.
Trying to install port, but get errors.
My example:
Code:
# cat ./iperf.pp
package { 'benchmarks/iperf':
    ensure => 'installed',
    provider => 'ports',
  }

# puppet apply iperf.pp
Error: Execution of '/usr/local/sbin/portupgrade -N -M BATCH=yes benchmarks/iperf' returned 1: /usr/local/sbin/portupgrade:569:in `chdir': HOME/LOGDIR not set (ArgumentError)
        from /usr/local/sbin/portupgrade:569:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize'
        from /usr/local/sbin/portupgrade:237:in `new'
        from /usr/local/sbin/portupgrade:237:in `main'
        from /usr/local/sbin/portupgrade:2371

Error: /Stage[main]//Package[benchmarks/iperf]/ensure: change from absent to present failed: Execution of '/usr/local/sbin/portupgrade -N -M BATCH=yes benchmarks/iperf' returned 1: /usr/local/sbin/portupgrade:569:in `chdir': HOME/LOGDIR not set (ArgumentError)
        from /usr/local/sbin/portupgrade:569:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize'
        from /usr/local/sbin/portupgrade:237:in `new'
        from /usr/local/sbin/portupgrade:237:in `main'
        from /usr/local/sbin/portupgrade:2371

If I run [cmd=]/usr/local/sbin/portupgrade -N -M BATCH=yes benchmarks/iperf[/cmd] from the command line, there are no errors.
 
Do you have something like
Code:
logdir = something
set in your Puppet configuration? That's the actual complaint of the error message, it seems.
 
I located the bug. If portupgrade version 2.4.9.X, then there is no error. On portupgrade-2.4.10.3 error occurs.
 
Back
Top