I want to search the hostname with
searchnode = search(:node, "zookeeper:true")
Want to get output Hostname.fqdn.com
as node but i am not getting it. Maybe I don't know how to access the attribute.
---
driver:
name: vagrant
provisioner:
name: chef_zero
environments_path: test/integration/default/environments
client_rb:
environment: stg
always_update_cookbooks: true
verifier:
name: inspec
platforms:
- name: centos-7.2
suites:
- name: Hostname.fqdn.com
run_list:
- recipe[test-cookbook::test]
data_bags_path: "test/integration/default/data_bags"
attributes: {zookeeper: "true"}