I'm trying to pass some tags in device metadata. The devices are created as expected, but they are not tagged. I'm certain that the tag IDs I'm passing are correct.
{
"name": "monitored",
"description": "Monitored",
"json_class": "Chef::Role",
"default_attributes": {
"serverdensity": {
"token": "xxxxxxxxxxxxxxx",
"account": "xxxxxxx.serverdensity.io",
"device_group": "xxxxxxxx"
},
"serverdensity-xxxxxxxx": {
"tags": [
"xxxxxxxxxxxx",
"xxxxxxxxxxxx"
]
}
},
"override_attributes": {
},
"chef_type": "role",
"run_list": [
"recipe[serverdensity-xxx]"
],
"env_run_lists": {
}
}
include_recipe 'serverdensity'
serverdensity node.name do
metadata :tags => node['serverdensity-xxx']['tags']
end