Information Technology Reference
In-Depth Information
$ mkdir nodes
$ cd nodes
Within the chef-playground/nodes directory, create three files, as shown in Example 11-3 ,
Example 11-4 , and Example 11-5 . When you are done, the chef-playground directory struc-
ture should resemble the following:
chef-playground/
├── .chef
│ ├── devhost.pem
│ ├── devhost.pem.pub
│ ├── knife.rb
│ ├── validator.pem
│ └── validator.pem.pub
└── nodes
├── atwood.json
├── snowman.json
└── susu.json
Example 11-3. chef-playground/nodes/atwood.json
{
"name" : "atwood" ,
"chef_type" : "node" ,
"json_class" : "Chef::Node" ,
"chef_environment" : "_default" ,
"run_list" : [ "recipe[apache]" , "recipe[motd]" ] ,
"automatic" : {
"ipaddress" : "192.168.33.31" ,
"hostname" : "atwood" ,
"fqdn" : "atwood.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" ]
}
}
Example 11-4. chef-playground/nodes/snowman.json
{
"name" : "snowman" ,
Search WWH ::




Custom Search