Useful library helpers in Chef recipes.
instance = ::ChefCookbook::Instance::Helper.new(node)
instance.root # root
instance.user # vagrant
instance.group # vagrant
instance.user_home # /home/vagrant
instance.fqdn # test.box.dev
fqdn
property is obtained from node['fqdn']
or node['ipaddress']
.
MIT @ Alexander Pyatkin