- From: Matt Ray <
>
- To:
- Subject: [chef] Re: Ohai Plugin Running External Commands
- Date: Wed, 3 Dec 2014 10:35:27 -0600
Lots of examples in the lib/ohai/plugins/ directory for things called
by Mixlib::ShellOut. Check this
https://github.com/opscode/ohai/blob/master/lib/ohai/plugins/kernel.rb#L102
Thanks,
Matt Ray
Director of Partner Integration :: Chef
:: 512.731.2218
mattray :: GitHub :: IRC :: Twitter
On Wed, Dec 3, 2014 at 10:28 AM, Douglas Garstang
<
>
wrote:
>
Has anyone got any examples of custom ohai plugins calling external shell
>
commands in ruby and returning the result? Having trouble with it. Need to
>
pull some EC2 tags into chef (via AWS CLI) and an ohai plugin seemed like
>
the right idea.
>
>
Doug
>
Archive powered by MHonArc 2.6.16.