theforeman / foreman_hooks

Run custom hook scripts on Foreman events
http://m0dlx.com/blog/Extending_Foreman_quickly_with_hook_scripts.html
GNU General Public License v3.0
56 stars 50 forks source link

JSON passed to hooks doesn't mention multiple NICs #22

Open anthonyclarka2 opened 9 years ago

anthonyclarka2 commented 9 years ago

I've noticed that the JSON data passed into the script doesn't mention more than one NIC.

It would be useful for our server build/deploy process if I could grab extra MAC addresses on host creation (we'd use that for things like DNS entries for the extra NICs, linking different servers together in our applications, etc etc)

Alternatively, should the "interfaces" section be populated? It's currently empty in the JSON I'm getting (from 1.7.3)