I'm started to learn puppet.
Trying to install port, but get errors.
My example:
If I run [cmd=]/usr/local/sbin/portupgrade -N -M BATCH=yes benchmarks/iperf[/cmd] from the command line, there are no errors.
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.