Hi, > Try using %x{} instead of system. The system() function returns the > return code of the process, not the output.
> irb> %x{hostname --fqdn}.chomp > => "dagon.fnord.no" That worked, thanks! For the record, this is how it looks like: $new_ip=inline_template("<%= %x{host $hostname|awk '{print \$4}'}.chomp %>") notify { "New IP: $new_ip": } Kind regards, Pablo -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.