How to access these attributes inside the recipe ??
node[‘platform’]
node[‘hostname’]
Let’s write something that works across different platforms
Now we know that in centos the package name, service name and document root is also different, from ubuntu.
Now i’ll create some variables(attributes), that chef will be able to use, and i’ll call this variable's/attributes with package_name, service_name