Roman Alekseev
2014-Mar-19 07:27 UTC
[Puppet Users] Create variable as result of command execution
Hello, What is the best way in puppet to create a variable as result of command below: *$nginx_dir=`/usr/sbin/nginx -V 2> /etc/puppet/nginx.args | /bin/cat /etc/puppet/nginx.args | /usr/bin/awk -F'--http-proxy-temp-path=' {'print $2'} | /usr/bin/awk {'print $1'} | /bin/grep '\/'`* Any advices will be appreciated. -- 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 puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7211e50a-32db-4c68-953e-164edecc1932%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.