Ohai.plugin(:myPlugin) do
provides 'my_asset_tag'
collect_data do
my_uid = File.open('/usr/local/lp/etc/lp-UID').first.chomp
my_asset_tag my_uid
end
end
The plugin shows up in the /etc/chef/ohai
directory and if I run ohai -d /etc/chef/ohai
the plugin shows up but just running ohai my attribute doesn't show.
It does show if run knife node show server -a my_asset_tag
but was hoping to have it show up by running just ohai.
Any help would be greatly appreciated.