Just getting started with using chef recently. I have created custom JSON in AWS Opswork and trying to access it as an attribute in Chef recipe, but its failing to grab the JSON values. JSON file looks like.
"log_path" : "/var/log/*.log",
"hosts" : "Some Random Host ID",
"port" : 5000
and I am trying to catch it in recipe as,
log = node['filebeat']['log_path']
hosts = node['filebeat']['hosts']
port = node['filebeat']['port']
But it failed, I have also tried without 'normal'. I got the some null class error.