Hello,

I'd like to store an output of a bash command into a variable, and then 
print it to stdout using notify in Puppet.

Main goal: get a list of upgrade-able packages and notify the user about it.

I have tried the below but it doesn't seem to work:

$pkgs_list = $("/usr/bin/apt --simulate upgrade | grep '^Inst' | awk -F ' ' 
'{print $2}'")

notify { "STDOUT: ${pkgs_list}": }

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9793f643-c386-4400-9fba-fd42f3e1269dn%40googlegroups.com.

Reply via email to