Variable Data Custom Field
CompletedI have a bunch of data that i would like to shove into Device42 via JSON but that data is all variable. I would like a filed where i can set a bunch of data (think Ansible Fact Data) that ends up as output on the API, or an overlay after clicking a link with the JSON pretty Printed. Right now i am in between writing an app that could do this, but it would be much better if it was just baked into the product.
-
Hi Geoffrey,
There are couple of ways you can do this. One is to add the facts as individual custom fields and then using include_cols=custom_fields for the device to get all the custom fields. Obvious issue is with that is that you will possibly have other custom fields in there. Better way will be use the notes field for a particular custom field as shown below. If you pass the device name, key as ansible_facts (example) and the notes as the json for what you want to store. Then in the custom fields data for a device, you can parse the key called ansible_facts (or whatever else you choose to call it).
On a side note, we are thinking about how we can make Device42 work better with orchestration tools. For example, we recently released a Chef sync script: https://github.com/device42/chef_to_device42_sync_py
I will send a private note to you to discuss this further on how we can integrate better with ansible.0 -
Any update on this? We had discussed a JSON type over the phone, and i have not seen one show up in any of the recent patch notes.
0 -
Hi Geoffrey,
Sorry, no update yet. We are working on a 64 bit version of the vApp and we will look into this after that is out.
Thanks,
Raj
0 -
Just checking in to see if you guys have thought about this feature at all?
0 -
Hi Geoff,
There have been few discussions, but we haven't made any changes around it yet. We will be making some changes around application components and adding json fields for some config data etc. That is being worked on currently and it might solve what you are looking to do. We are thinking about this from both data collection and also automation tool perspective.
0 -
Sweet. Thanks for the update!
0
Please sign in to leave a comment.
Comments
6 comments