Information Technology Reference
In-Depth Information
"chef_type" : "node" ,
"json_class" : "Chef::Node" ,
"chef_environment" : "_default" ,
"run_list" : [ "recipe[apache]" , "recipe[motd]" , "recipe[motd-attributes]" ] ,
"automatic" : {
"ipaddress" : "192.168.33.32" ,
"hostname" : "snowman" ,
"fqdn" : "snowman.playground.local" ,
"os" : "linux" ,
"os_version" : "3.13.0-24-generic" ,
"platform" : "ubuntu" ,
"platform_version" : "14.04" ,
"platform_family" : "debian" ,
"recipes" : [ "apache" , "motd" , "motd-attributes" ]
}
}
Example 11-5. chef-playground/nodes/susu.json
{
"name" : "susu" ,
"chef_type" : "node" ,
"json_class" : "Chef::Node" ,
"chef_environment" : "_default" ,
"run_list" : [ "recipe[apache]" , "recipe[motd]" ] ,
"automatic" : {
"ipaddress" : "192.168.33.33" ,
"hostname" : "susu" ,
"fqdn" : "susu.playground.local" ,
"os" : "linux" ,
"os_version" : "2.6.32-431.el6.x86_64" ,
"platform" : "centos" ,
"platform_version" : "6.5" ,
"platform_family" : "rhel" ,
"recipes" : [ "apache" , "motd" ]
}
}
Once you have the files in the nodes/ subdirectory created, make sure that chef-playground is
the current working directory. Then, run the knife upload command to create the node in-
formation on the server. We'll use this knife upload technique in subsequent chapters of
this topic to pre-populate the chef-zero server with test data before running other knife
commands:
Search WWH ::




Custom Search