{"id":6380,"date":"2014-11-11T11:30:12","date_gmt":"2014-11-11T02:30:12","guid":{"rendered":"http:\/\/www.creationline.com\/?p=6380"},"modified":"2023-08-29T13:49:10","modified_gmt":"2023-08-29T04:49:10","slug":"chef-solo%e3%81%8b%e3%82%89chef-client%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e3%83%a2%e3%83%bc%e3%83%89%e3%81%b8%e3%81%ae%e7%a7%bb%e8%a1%8c-opschef_ja-getchef_ja","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380","title":{"rendered":"Chef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c #opschef_ja #getchef_ja"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u5148\u306e\u8a18\u4e8b <a href=\"\/lab\/6085\">[\u548c\u8a33] \u30bd\u30ed\u304b\u3089\u30bc\u30ed\u3078: Chef Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c<\/a> \u3067\u53d6\u308a\u4e0a\u3052\u3089\u308c\u3066\u3044\u308b<strong>\u300cChef-Zero\u300d\u306f\u4e00\u65e6\u5fd8\u308c\u307e\u3057\u3087\u3046<\/strong>\u3002\u79c1\u9054\u306f\u300cChef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c\u300d\u3092\u884c\u3044\u306a\u3044\u305f\u3044\u306e\u3067\u3042\u3063\u3066\u3001\u300cChef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u306e\u6280\u8853\u80cc\u666f\u3067\u3042\u308bChef-Zero\u300d\u306b\u3064\u3044\u3066\u6df1\u304f\u77e5\u308a\u305f\u3044\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u300cChef-Solo\u304b\u3089Chef-Zero\u3078\u79fb\u884c\u300d\u306e\u3088\u3046\u306b\u8aa4\u89e3\u3057\u305f\u8a00\u308f\u308c\u65b9\u3092\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u6b21\u306b\u7c21\u5358\u306b\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>Chef-Solo\u3067\u306f\u6b21\u56f3\u306e\u3088\u3046\u306b\u3001\u30ed\u30fc\u30ab\u30eb\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u4e0a\u306b\u3042\u308bCookbook\u3084Attribute\u306a\u3069\u306e\u30dd\u30ea\u30b7\u30fc\u3092\u53c2\u7167\u3057\u3066\u53ce\u675f\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><!-- chef-solo.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-solo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6383\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-solo.png\" alt=\"chef-solo\" width=\"303\" height=\"204\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-solo.png 303w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-solo-141x95.png 141w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/><\/a><\/p>\n<p>Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3067\u306f\u6b21\u56f3\u306e\u3088\u3046\u306b\u3001Chef-Zero\u3068\u3044\u3046\u8a00\u3046\u306a\u308c\u3070\u30e9\u30c3\u30d1\u30fc\u3092<strong>\u81ea\u52d5\u7684\u306b<\/strong>\u4ecb\u3057\u3066\u30ed\u30fc\u30ab\u30eb\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u4e0a\u306b\u3042\u308b\u30dd\u30ea\u30b7\u30fc\u3068Node Object\u3092\u53c2\u7167\u3057\u3066\u53ce\u675f\u3092\u884c\u3044\u307e\u3059\u3002\u300c\u81ea\u52d5\u7684\u306b\u300d\u3068\u3044\u3046\u90e8\u5206\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3001\u5225\u306bChef-Zero\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3060\u3068\u304b\u3001\u5b58\u5728\u3092\u610f\u8b58\u3057\u306a\u3051\u3070\u3044\u3051\u306a\u3044\u3068\u304b\u3001\u305d\u306e\u3088\u3046\u306a\u3053\u3068\u306f\u901a\u5e38\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><!-- chef-client-local-mode.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-client-local-mode.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6382\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-client-local-mode.png\" alt=\"chef-client-local-mode\" width=\"303\" height=\"204\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-client-local-mode.png 303w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-client-local-mode-141x95.png 141w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/><\/a><\/p>\n<p>Chef-Client\u3068Chef-Server\u306b\u3088\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30b5\u30fc\u30d0\u30e2\u30fc\u30c9\u3067\u306f\u6b21\u56f3\u306e\u3088\u3046\u306b\u3001Chef-Client\u306fChef-Server\u306b\u554f\u3044\u5408\u308f\u305b\u3001Node Object\u3068\u306e\u6bd4\u8f03\u3092\u884c\u3044\u3001\u30dd\u30ea\u30b7\u30fc\u3092\u53d7\u3051\u53d6\u3063\u3066\u53ce\u675f\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><!-- chef-client.png \/\/--><a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-client.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6381\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-client.png\" alt=\"chef-client\" width=\"303\" height=\"204\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-client.png 303w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-client-141x95.png 141w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/><\/a><\/p>\n<p>\u3059\u306a\u308f\u3061\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3068\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306b\u5b58\u5728\u3059\u308b\u30dd\u30ea\u30b7\u30fc\u3068Node Object\u3092\u3042\u305f\u304b\u3082Chef-Server\u306b\u5b58\u5728\u3059\u308b\u304b\u306e\u3088\u3046\u306b\u6271\u3046\u3053\u3068\u306e\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3001\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306bChef-Zero\u3092\u4f7f\u3063\u3066\u3044\u308b\u306b\u904e\u304e\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3060\u304b\u3089\u3001Chef-Zero\u306e\u3053\u3068\u306f\u3072\u3068\u307e\u305a\u77e5\u3089\u306a\u3044\u3067\u3044\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u306e\u5229\u70b9\u306f\u3001<\/p>\n<ul>\n<li>Solo\u975e\u5bfe\u5fdc\u306eCookbook\u3092Chef-Server\u3092\u4f7f\u308f\u305a\u306b\u5229\u7528\u3067\u304d\u308b\u3002\u4ee3\u8868\u7684\u306a\u4f8b\u306f<a href=\"http:\/\/docs.getchef.com\/dsl_recipe_method_search.html\">search\u6a5f\u80fd<\/a>\u3002<\/li>\n<li>\u30ed\u30fc\u30ab\u30eb\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306bNode Object\u3084\u6c38\u7d9a\u7684\u306aAttribute\u3092\u4fdd\u6301\u3067\u304d\u308b\u3002<\/li>\n<li>\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u304b\u3089\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30b5\u30fc\u30d0\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c\u304c\u6bd4\u8f03\u7684\u7c21\u5358\u306b\u3067\u304d\u308b\u3002\u305d\u306e\u9006\u3082\u3067\u304d\u308b\u3002<\/li>\n<\/ul>\n<p>\u306a\u3069\u304c\u6319\u3052\u3089\u308c\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3067\u306f\u3001Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u306e\u4f8b\u3092\u3044\u304f\u3064\u304b\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u4e0b\u6e96\u5099<\/h2>\n<p>\u74b0\u5883\u3068\u3057\u3066Ubuntu 12.04 LTS\u306bChef DK 0.3.2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~$ sudo dpkg -i chefdk_0.3.2-1_amd64.deb<br \/>\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 chefdk \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059 ... \u73fe\u5728 49086 \u500b\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002)<br \/>\n(chefdk_0.3.2-1_amd64.deb \u304b\u3089) chefdk \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...<br \/>\nchefdk (0.3.2-1) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...<br \/>\nThank you for installing Chef Development Kit!<br \/>\nubuntu@ubuntu:~$<br \/>\n<\/code><\/p>\n<p>\u300c<strong>chef generate repo<\/strong>\u300d\u30b3\u30de\u30f3\u30c9\u3067<a href=\"http:\/\/docs.getchef.com\/essentials_repository.html\">chef-repo<\/a>\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u964d\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u307e\u3059\u3002<\/p>\n<p><code><br \/>\nubuntu@ubuntu:~$ chef generate repo chef-repo<br \/>\nCompiling Cookbooks...<br \/>\nRecipe: code_generator::repo<br \/>\n* directory[\/home\/ubuntu\/chef-repo] action create<br \/>\n- create new directory \/home\/ubuntu\/chef-repo<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\n(diff output suppressed by config)<br \/>\nubuntu@ubuntu:~$ <\/code><\/p>\n<p><code><code><\/code><\/code><\/p>\n<p>ubuntu@ubuntu:~$ tree -a chef-repo<br \/>\nchef-repo<br \/>\n\u251c\u2500\u2500 LICENSE<br \/>\n\u251c\u2500\u2500 README.md<br \/>\n\u251c\u2500\u2500 Rakefile<br \/>\n\u251c\u2500\u2500 certificates<br \/>\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 README.md<br \/>\n\u251c\u2500\u2500 chefignore<br \/>\n\u251c\u2500\u2500 config<br \/>\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 rake.rb<br \/>\n\u251c\u2500\u2500 cookbooks<br \/>\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 README.md<br \/>\n\u251c\u2500\u2500 data_bags<br \/>\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 README.md<br \/>\n\u251c\u2500\u2500 environments<br \/>\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 README.md<br \/>\n\u2514\u2500\u2500 roles<br \/>\n\u2514\u2500\u2500 README.md<\/p>\n<p><code><br \/>\n<\/code><\/p>\n<p><code>6 directories, 10 files<br \/>\nubuntu@ubuntu:~$<br \/>\n<\/code><\/p>\n<p>chef-repo\u306fgit\u7ba1\u7406\u4e0b\u306b\u7f6e\u3044\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u624b\u9806\u306f\u7279\u306b\u8a18\u8f09\u3057\u307e\u305b\u3093\u3002<a href=\"\/lab\/6265\">Chef Starter Kit\u306e\u6d3b\u7528<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>ntp Cookbook\u3092\u5229\u7528<\/h2>\n<p><a href=\"https:\/\/supermarket.getchef.com\/cookbooks\/ntp\">ntp<\/a> Cookbook\u3092\u4f8b\u3068\u3057\u3066\u7528\u3044\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife cookbook site install ntp -o cookbooks<br \/>\nWARNING: No knife configuration file found<br \/>\nInstalling ntp to \/home\/ubuntu\/chef-repo\/cookbooks<br \/>\nChecking out the master branch.<br \/>\nCreating pristine copy branch chef-vendor-ntp<br \/>\nDownloading ntp from the cookbooks site at version 1.6.5 to \/home\/ubuntu\/chef-repo\/cookbooks\/ntp.tar.gz<br \/>\nCookbook saved: \/home\/ubuntu\/chef-repo\/cookbooks\/ntp.tar.gz<br \/>\nRemoving pre-existing version.<br \/>\nUncompressing ntp version 1.6.5.<br \/>\nremoving downloaded tarball<br \/>\n1 files updated, committing changes<br \/>\nCreating tag cookbook-site-imported-ntp-1.6.5<br \/>\nChecking out the master branch.<br \/>\nUpdating af5ff5c..00c932e<br \/>\nFast-forward<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\nCookbook ntp version 1.6.5 successfully installed<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>Role\u3092JSON\u5f62\u5f0f\u3067\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u300c<strong>\"json_class\": \"Chef::Role\"<\/strong>\u300d\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3092\u5fd8\u308c\u308b\u3068\u53ce\u675f\u6642\u306b\u300c<strong>ERROR: undefined method `run_list_for'<\/strong>\u300d\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p><code lang=\"javascript\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ vi roles\/ntp.json<br \/>\n{<br \/>\n\"json_class\": \"Chef::Role\",<br \/>\n\"name\": \"ntp\",<br \/>\n\"description\": \"ntp basic\",<br \/>\n\"default_attributes\": {<br \/>\n\"ntp\": {<br \/>\n\"servers\": [<br \/>\n\"0.ubuntu.pool.ntp.org\",<br \/>\n\"1.ubuntu.pool.ntp.org\",<br \/>\n\"2.ubuntu.pool.ntp.org\",<br \/>\n\"3.ubuntu.pool.ntp.org\"<br \/>\n]<br \/>\n}<br \/>\n},<br \/>\n\"run_list\": [<br \/>\n\"recipe[ntp]\"<br \/>\n]<br \/>\n}<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<h3>Chef-Solo\u3067\u306e\u9069\u7528<\/h3>\n<p>Chef-Solo\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306bCookbook\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068Role\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ vi solo.rb<br \/>\ncurrent_dir = File.absolute_path( File.dirname(__FILE__) )<br \/>\ncookbook_path [ \"#{current_dir}\/cookbooks\" ]<br \/>\nrole_path \"#{current_dir}\/roles\"<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>Chef-Solo\u306b\u4e0e\u3048\u308bJSON\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><code lang=\"javascript\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ vi ubuntu.json<br \/>\n{ \"run_list\": \"role[ntp]\" }<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u3067\u306f\u3001Chef-Solo\u3067\u3053\u308c\u3092\u9069\u7528\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ sudo chef-solo -c solo.rb -j ubuntu.json<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\nStarting Chef Client, version 11.16.0<br \/>\nCompiling Cookbooks...<br \/>\nConverging 9 resources<br \/>\nRecipe: ntp::default<br \/>\n* package[ntp] action install<br \/>\n- install version 1:4.2.6.p3+dfsg-1ubuntu3.1 of package ntp<br \/>\n* package[ntpdate] action install (up to date)<br \/>\n* directory[\/var\/lib\/ntp] action create (up to date)<br \/>\n* directory[\/var\/log\/ntpstats\/] action create (up to date)<br \/>\n* cookbook_file[\/etc\/ntp.leapseconds] action create<br \/>\n- create new file \/etc\/ntp.leapseconds<br \/>\n- update content in file \/etc\/ntp.leapseconds from none to 274665<br \/>\n--- \/etc\/ntp.leapseconds\t2014-11-06 11:46:40.217680840 +0900<br \/>\n+++ \/tmp\/.ntp.leapseconds20141106-3646-mlugex\t2014-11-06 11:46:40.229680841 +0900<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\n- change mode from '' to '0644'<br \/>\n- change owner from '' to 'root'<br \/>\n- change group from '' to 'root'<br \/>\nRecipe: ntp::apparmor<br \/>\n* service[apparmor] action nothing (skipped due to action :nothing)<br \/>\n* cookbook_file[\/etc\/apparmor.d\/usr.sbin.ntpd] action create<br \/>\n- update content in file \/etc\/apparmor.d\/usr.sbin.ntpd from a88a6b to fdf13c<br \/>\n--- \/etc\/apparmor.d\/usr.sbin.ntpd\t2012-06-06 05:12:18.000000000 +0900<br \/>\n+++ \/tmp\/.usr.sbin.ntpd20141106-3646-r8gxtn\t2014-11-06 11:46:40.285680841 +0900<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\n* template[\/etc\/ntp.conf] action create<br \/>\n- update content in file \/etc\/ntp.conf from 4eb9a0 to c2c225<br \/>\n--- \/etc\/ntp.conf\t2012-06-06 05:12:18.000000000 +0900<br \/>\n+++ \/tmp\/chef-rendered-template20141106-3646-d0oz7l\t2014-11-06 11:46:40.293680841 +0900<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\n* service[ntp] action enable (up to date)<br \/>\n* service[ntp] action start (up to date)<br \/>\nRecipe: ntp::apparmor<br \/>\n* service[apparmor] action restart<br \/>\n- restart service service[apparmor]<br \/>\nRecipe: ntp::default<br \/>\n* service[ntp] action restart<br \/>\n- restart service service[ntp]<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">Running handlers:<br \/>\nRunning handlers complete<br \/>\nChef Client finished, 6\/11 resources updated in 9.094053298 seconds<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u9069\u7528\u3067\u304d\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ ps auxwwwf | grep '[ n]tpd'<br \/>\nntp       4226  0.0  0.0  37780  2180 ?        Ss   11:46   0:00 \/usr\/sbin\/ntpd -p \/var\/run\/ntpd.pid -g -u 106:113<br \/>\nubuntu@ubuntu:~\/chef-repo$ <\/code><\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">ubuntu@ubuntu:~\/chef-repo$ grep pool.ntp.org \/etc\/ntp.conf<br \/>\nserver 0.ubuntu.pool.ntp.org iburst<br \/>\nrestrict 0.ubuntu.pool.ntp.org nomodify notrap noquery<br \/>\nserver 1.ubuntu.pool.ntp.org iburst<br \/>\nrestrict 1.ubuntu.pool.ntp.org nomodify notrap noquery<br \/>\nserver 2.ubuntu.pool.ntp.org iburst<br \/>\nrestrict 2.ubuntu.pool.ntp.org nomodify notrap noquery<br \/>\nserver 3.ubuntu.pool.ntp.org iburst<br \/>\nrestrict 3.ubuntu.pool.ntp.org nomodify notrap noquery<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u518d\u5ea6\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ sudo chef-solo -c solo.rb -j ubuntu.json<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\nStarting Chef Client, version 11.16.0<br \/>\nCompiling Cookbooks...<br \/>\nConverging 9 resources<br \/>\nRecipe: ntp::default<br \/>\n* package[ntp] action install (up to date)<br \/>\n* package[ntpdate] action install (up to date)<br \/>\n* directory[\/var\/lib\/ntp] action create (up to date)<br \/>\n* directory[\/var\/log\/ntpstats\/] action create (up to date)<br \/>\n* cookbook_file[\/etc\/ntp.leapseconds] action create (up to date)<br \/>\nRecipe: ntp::apparmor<br \/>\n* service[apparmor] action nothing (skipped due to action :nothing)<br \/>\n* cookbook_file[\/etc\/apparmor.d\/usr.sbin.ntpd] action create (up to date)<br \/>\nRecipe: ntp::default<br \/>\n* template[\/etc\/ntp.conf] action create (up to date)<br \/>\n* service[ntp] action enable (up to date)<br \/>\n* service[ntp] action start (up to date)<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">Running handlers:<br \/>\nRunning handlers complete<br \/>\nChef Client finished, 0\/9 resources updated in 1.165747795 seconds<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u7121\u4e8b\u306b\u53ce\u675f\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3067\u9069\u7528\u3059\u308b<\/h3>\n<p>\u3067\u306fChef Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3067\u9069\u7528\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fntp\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001ntp Cookbook\u306b\u306f<strong>ntp::undo<\/strong>\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u524a\u9664\u3059\u308bRecipe\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u5229\u7528\u3057\u307e\u305b\u3093\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ sudo apt-get purge ntp -y<br \/>\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86<br \/>\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059<br \/>\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86<br \/>\n\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u81ea\u52d5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u3082\u3046\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u307e\u305b\u3093:<br \/>\nlibopts25 libcap2<br \/>\n\u3053\u308c\u3089\u3092\u524a\u9664\u3059\u308b\u306b\u306f 'apt-get autoremove' \u3092\u5229\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u300c\u524a\u9664\u300d\u3055\u308c\u307e\u3059:<br \/>\nntp*<br \/>\n\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9: 0 \u500b\u3001\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: 0 \u500b\u3001\u524a\u9664: 1 \u500b\u3001\u4fdd\u7559: 0 \u500b\u3002<br \/>\n\u3053\u306e\u64cd\u4f5c\u5f8c\u306b 1,511 kB \u306e\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u304c\u89e3\u653e\u3055\u308c\u307e\u3059\u3002<br \/>\n(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059 ... \u73fe\u5728 88343 \u500b\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002)<br \/>\nntp \u3092\u524a\u9664\u3057\u3066\u3044\u307e\u3059 ...<br \/>\n* Stopping NTP server ntpd<br \/>\n...done.<br \/>\nntp \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u3066\u3044\u307e\u3059 ...<br \/>\nman-db \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...<br \/>\nureadahead \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>chef-client\u30b3\u30de\u30f3\u30c9\u3092\u300c<strong>-z (--local-mode)<\/strong>\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3057\u3001chef-solo\u3068\u540c\u69d8\u306b\u300c<strong>-j ubuntu.json<\/strong>\u300d\u3092\u4ed8\u4e0e\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<strong>chef-solo<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u5404\u7a2e\u30d1\u30b9\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u4e0d\u8981\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3067\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ sudo chef-client -z -j ubuntu.json<br \/>\n[2014-11-06T11:48:48+09:00] WARN: No config file found or specified on command line, using command line options.<br \/>\nStarting Chef Client, version 11.16.0<br \/>\nresolving cookbooks for run list: [\"ntp\"]<br \/>\nSynchronizing Cookbooks:<br \/>\n- ntp<br \/>\nCompiling Cookbooks...<br \/>\nConverging 9 resources<br \/>\nRecipe: ntp::default<br \/>\n* package[ntp] action install<br \/>\n- install version 1:4.2.6.p3+dfsg-1ubuntu3.1 of package ntp<br \/>\n* package[ntpdate] action install (up to date)<br \/>\n* directory[\/var\/lib\/ntp] action create (up to date)<br \/>\n* directory[\/var\/log\/ntpstats\/] action create (up to date)<br \/>\n* cookbook_file[\/etc\/ntp.leapseconds] action create (up to date)<br \/>\nRecipe: ntp::apparmor<br \/>\n* service[apparmor] action nothing (skipped due to action :nothing)<br \/>\n* cookbook_file[\/etc\/apparmor.d\/usr.sbin.ntpd] action create<br \/>\n- update content in file \/etc\/apparmor.d\/usr.sbin.ntpd from a88a6b to fdf13c<br \/>\n--- \/etc\/apparmor.d\/usr.sbin.ntpd\t2012-06-06 05:12:18.000000000 +0900<br \/>\n+++ \/tmp\/.usr.sbin.ntpd20141106-4953-1x81mrr\t2014-11-06 11:48:53.577680841 +0900<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\nRecipe: ntp::default<br \/>\n* template[\/etc\/ntp.conf] action create<br \/>\n- update content in file \/etc\/ntp.conf from 4eb9a0 to c2c225<br \/>\n--- \/etc\/ntp.conf\t2012-06-06 05:12:18.000000000 +0900<br \/>\n+++ \/tmp\/chef-rendered-template20141106-4953-1dzer39\t2014-11-06 11:48:53.597680841 +0900<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\n* service[ntp] action enable (up to date)<br \/>\n* service[ntp] action start (up to date)<br \/>\nRecipe: ntp::apparmor<br \/>\n* service[apparmor] action restart<br \/>\n- restart service service[apparmor]<br \/>\nRecipe: ntp::default<br \/>\n* service[ntp] action restart<br \/>\n- restart service service[ntp]<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">Running handlers:<br \/>\nRunning handlers complete<br \/>\nChef Client finished, 5\/11 resources updated in 9.169450451 seconds<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ sudo chef-client -z -j ubuntu.json<br \/>\n[2014-11-06T11:49:44+09:00] WARN: No config file found or specified on command line, using command line options.<br \/>\nStarting Chef Client, version 11.16.0<br \/>\nresolving cookbooks for run list: [\"ntp\"]<br \/>\nSynchronizing Cookbooks:<br \/>\n- ntp<br \/>\nCompiling Cookbooks...<br \/>\nConverging 9 resources<br \/>\nRecipe: ntp::default<br \/>\n* package[ntp] action install (up to date)<br \/>\n* package[ntpdate] action install (up to date)<br \/>\n* directory[\/var\/lib\/ntp] action create (up to date)<br \/>\n* directory[\/var\/log\/ntpstats\/] action create (up to date)<br \/>\n* cookbook_file[\/etc\/ntp.leapseconds] action create (up to date)<br \/>\nRecipe: ntp::apparmor<br \/>\n* service[apparmor] action nothing (skipped due to action :nothing)<br \/>\n* cookbook_file[\/etc\/apparmor.d\/usr.sbin.ntpd] action create (up to date)<br \/>\nRecipe: ntp::default<br \/>\n* template[\/etc\/ntp.conf] action create (up to date)<br \/>\n* service[ntp] action enable (up to date)<br \/>\n* service[ntp] action start (up to date)<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">Running handlers:<br \/>\nRunning handlers complete<br \/>\nChef Client finished, 0\/9 resources updated in 1.263372895 seconds<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u3053\u306e\u3088\u3046\u306bchef-solo\u30b3\u30de\u30f3\u30c9\u306e\u5834\u5408\u3068\u307e\u3063\u305f\u304f\u540c\u3058\u3088\u3046\u306b\u5229\u7528\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u306b\u3088\u308bchef-repo\u306e\u95b2\u89a7\u30fb\u64cd\u4f5c<\/h2>\n<p>\u3053\u3053\u3067\u3001Chef-Client\u306e\u30ed\u30fc\u30ab\u30eb\u30fc\u30e2\u30fc\u30c9\u304cchef-solo\u3068\u7570\u306a\u308b\u91cd\u8981\u306a\u70b9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u5148\u306e\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u306e\u5b9f\u884c\u3067\u3001chef-repo\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u300c<strong>nodes<\/strong>\u300d\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ ls -laF nodes\/ubuntu.json<br \/>\n-rw-r--r-- 1 root root 32285 11\u6708  6 11:49 nodes\/ubuntu.json<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u3053\u3053\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u300c<a href=\"http:\/\/docs.getchef.com\/essentials_node_object.html\">Node Object<\/a>\u300d\u3067\u3059\u3002\u73fe\u5728\u306eNode\u306e\u72b6\u614b\u3084Attribute\u306a\u3069\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<p><code lang=\"javascript\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ view nodes\/ubuntu.json<br \/>\n{<br \/>\n\"name\": \"ubuntu\",<br \/>\n\"normal\": {<br \/>\n\"tags\": [<\/code><\/p>\n<p><code lang=\"javascript\"><br \/>\n<\/code><\/p>\n<p><code lang=\"javascript\">    ]<br \/>\n},<br \/>\n\"default\": {<br \/>\n\"ntp\": {<br \/>\n\"servers\": [<br \/>\n\"0.ubuntu.pool.ntp.org\",<br \/>\n\"1.ubuntu.pool.ntp.org\",<br \/>\n\"2.ubuntu.pool.ntp.org\",<br \/>\n\"3.ubuntu.pool.ntp.org\"<br \/>\n],<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\n\"automatic\": {<br \/>\n\"network\": {<br \/>\n\"interfaces\": {<br \/>\n\"lo\": {<br \/>\n\"mtu\": \"16436\",<br \/>\n\"flags\": [<br \/>\n\"LOOPBACK\",<br \/>\n\"UP\",<br \/>\n\"LOWER_UP\"<br \/>\n],<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\n\"recipes\": [<br \/>\n\"ntp\",<br \/>\n\"ntp::default\",<br \/>\n\"ntp::apparmor\"<br \/>\n],<br \/>\n\"roles\": [<br \/>\n\"ntp\"<br \/>\n]<br \/>\n},<br \/>\n\"run_list\": [<br \/>\n\"role[ntp]\"<br \/>\n]<br \/>\n}<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<h3>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u95b2\u89a7<\/h3>\n<p><strong>knife<\/strong>\u30b3\u30de\u30f3\u30c9\u306e\u5404\u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u306b\u300c<strong>-z (--local-mode)<\/strong>\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3057\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001Node Object\u306e\u307f\u306a\u3089\u305a\u3001\u3053\u306echef-repo\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u60c5\u5831\u3092\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001\u4ee5\u964d\u300cWARNING: No knife configuration file found\u300d\u3068\u3044\u3046\u8b66\u544a\u304c\u983b\u51fa\u3057\u307e\u3059\u304c\u3001<strong>.chef\/knife.rb<\/strong>\u304c\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3067\u3059\u3002\u7701\u7565\u53ef\u80fd\u306a\u306e\u3067\u3001\u4eca\u56de\u306f\u7121\u8996\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife node list -z<br \/>\nWARNING: No knife configuration file found<br \/>\nubuntu<br \/>\nubuntu@ubuntu:~\/chef-repo$<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">ubuntu@ubuntu:~\/chef-repo$ knife node show ubuntu -z<br \/>\nWARNING: No knife configuration file found<br \/>\nNode Name:   ubuntu<br \/>\nEnvironment: _default<br \/>\nFQDN:        ubuntu<br \/>\nIP:          192.168.122.209<br \/>\nRun List:    role[ntp]<br \/>\nRoles:       ntp<br \/>\nRecipes:     ntp, ntp::default, ntp::apparmor<br \/>\nPlatform:    ubuntu 12.04<br \/>\nTags:<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife cookbook list -z<br \/>\nWARNING: No knife configuration file found<br \/>\nntp   1.6.5<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife role show ntp -z<br \/>\nWARNING: No knife configuration file found<br \/>\nchef_type:           role<br \/>\ndefault_attributes:<br \/>\nntp:<br \/>\nservers:<br \/>\n0.ubuntu.pool.ntp.org<br \/>\n1.ubuntu.pool.ntp.org<br \/>\n2.ubuntu.pool.ntp.org<br \/>\n3.ubuntu.pool.ntp.org<br \/>\ndescription:         ntp basic<br \/>\nenv_run_lists:<br \/>\njson_class:          Chef::Role<br \/>\nname:                ntp<br \/>\noverride_attributes:<br \/>\nrun_list:            recipe[ntp]<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<h3>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u64cd\u4f5c<\/h3>\n<p>Role\u3092knife\u30b3\u30de\u30f3\u30c9\u304b\u3089\u4fee\u6b63\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife role edit ntp -z<br \/>\nWARNING: No knife configuration file found<br \/>\nSaved role[ntp]<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife role show ntp -z<br \/>\nWARNING: No knife configuration file found<br \/>\nchef_type:           role<br \/>\ndefault_attributes:<br \/>\nntp:<br \/>\nservers:<br \/>\n0.jp.pool.ntp.org<br \/>\n1.jp.pool.ntp.org<br \/>\n2.ubuntu.pool.ntp.org<br \/>\n3.ubuntu.pool.ntp.org<br \/>\ndescription:         ntp basic<br \/>\nenv_run_lists:<br \/>\njson_class:          Chef::Role<br \/>\nname:                ntp<br \/>\noverride_attributes:<br \/>\nrun_list:            recipe[ntp]<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u3082\u5909\u308f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ git diff<br \/>\ndiff --git a\/roles\/ntp.json b\/roles\/ntp.json<br \/>\nindex 045d224..5a4d567 100644<br \/>\n--- a\/roles\/ntp.json<br \/>\n+++ b\/roles\/ntp.json<br \/>\n@@ -1,12 +1,11 @@<br \/>\n{<br \/>\n-  \"json_class\": \"Chef::Role\",<br \/>\n\"name\": \"ntp\",<br \/>\n\"description\": \"ntp basic\",<br \/>\n\"default_attributes\": {<br \/>\n\"ntp\": {<br \/>\n\"servers\": [<br \/>\n-        \"0.ubuntu.pool.ntp.org\",<br \/>\n-        \"1.ubuntu.pool.ntp.org\",<br \/>\n+        \"0.jp.pool.ntp.org\",<br \/>\n+        \"1.jp.pool.ntp.org\",<br \/>\n\"2.ubuntu.pool.ntp.org\",<br \/>\n\"3.ubuntu.pool.ntp.org\"<br \/>\n]<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u6b21\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u624b\u3067\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ vi roles\/ntp.json<br \/>\nubuntu@ubuntu:~\/chef-repo$ git diff<br \/>\ndiff --git a\/roles\/ntp.json b\/roles\/ntp.json<br \/>\nindex 5a4d567..0a4e92e 100644<br \/>\n--- a\/roles\/ntp.json<br \/>\n+++ b\/roles\/ntp.json<br \/>\n@@ -6,8 +6,8 @@<br \/>\n\"servers\": [<br \/>\n\"0.jp.pool.ntp.org\",<br \/>\n\"1.jp.pool.ntp.org\",<br \/>\n-        \"2.ubuntu.pool.ntp.org\",<br \/>\n-        \"3.ubuntu.pool.ntp.org\"<br \/>\n+        \"2.jp.pool.ntp.org\",<br \/>\n+        \"3.jp.pool.ntp.org\"<br \/>\n]<br \/>\n}<br \/>\n},<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u3082\u3061\u308d\u3093\u3001knife\u30b3\u30de\u30f3\u30c9\u304b\u3089\u3082\u5909\u308f\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife role show ntp -z<br \/>\nWARNING: No knife configuration file found<br \/>\nchef_type:           role<br \/>\ndefault_attributes:<br \/>\nntp:<br \/>\nservers:<br \/>\n0.jp.pool.ntp.org<br \/>\n1.jp.pool.ntp.org<br \/>\n2.jp.pool.ntp.org<br \/>\n3.jp.pool.ntp.org<br \/>\ndescription:         ntp basic<br \/>\nenv_run_lists:<br \/>\njson_class:          Chef::Role<br \/>\nname:                ntp<br \/>\noverride_attributes:<br \/>\nrun_list:            recipe[ntp]<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u53ce\u675f\u3055\u305b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ sudo chef-client -z<br \/>\n[2014-11-06T12:49:15+09:00] WARN: No config file found or specified on command line, using command line options.<br \/>\nStarting Chef Client, version 11.16.0<br \/>\nresolving cookbooks for run list: [\"ntp\"]<br \/>\nSynchronizing Cookbooks:<br \/>\n- ntp<br \/>\nCompiling Cookbooks...<br \/>\nConverging 9 resources<br \/>\nRecipe: ntp::default<br \/>\n* package[ntp] action install (up to date)<br \/>\n* package[ntpdate] action install (up to date)<br \/>\n* directory[\/var\/lib\/ntp] action create (up to date)<br \/>\n* directory[\/var\/log\/ntpstats\/] action create (up to date)<br \/>\n* cookbook_file[\/etc\/ntp.leapseconds] action create (up to date)<br \/>\nRecipe: ntp::apparmor<br \/>\n* service[apparmor] action nothing (skipped due to action :nothing)<br \/>\n* cookbook_file[\/etc\/apparmor.d\/usr.sbin.ntpd] action create (up to date)<br \/>\nRecipe: ntp::default<br \/>\n* template[\/etc\/ntp.conf] action create<br \/>\n- update content in file \/etc\/ntp.conf from c4c6f5 to 7f40b8<br \/>\n--- \/etc\/ntp.conf\t2014-11-06 11:49:38.433680841 +0900<br \/>\n+++ \/tmp\/chef-rendered-template20141106-6541-1m6aoxp\t2014-11-06 12:49:16.355507182 +0900<br \/>\n:<br \/>\n:<br \/>\n:<br \/>\n* service[ntp] action enable (up to date)<br \/>\n* service[ntp] action start (up to date)<br \/>\n* service[ntp] action restart<br \/>\n- restart service service[ntp]<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">Running handlers:<br \/>\nRunning handlers complete<br \/>\nChef Client finished, 2\/10 resources updated in 3.312547399 seconds<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ grep pool.ntp.org \/etc\/ntp.conf<br \/>\nserver 0.jp.pool.ntp.org iburst<br \/>\nrestrict 0.jp.pool.ntp.org nomodify notrap noquery<br \/>\nserver 1.jp.pool.ntp.org iburst<br \/>\nrestrict 1.jp.pool.ntp.org nomodify notrap noquery<br \/>\nserver 2.jp.pool.ntp.org iburst<br \/>\nrestrict 2.jp.pool.ntp.org nomodify notrap noquery<br \/>\nserver 3.jp.pool.ntp.org iburst<br \/>\nrestrict 3.jp.pool.ntp.org nomodify notrap noquery<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u554f\u984c\u306a\u304f\u53ce\u675f\u3067\u304d\u307e\u3057\u305f\u3002Node Object\u3082\u5408\u308f\u305b\u3066\u5909\u308f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><code lang=\"javascript\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ head -15 nodes\/ubuntu.json<br \/>\n{<br \/>\n\"name\": \"ubuntu\",<br \/>\n\"normal\": {<br \/>\n\"tags\": [<\/code><\/p>\n<p><code lang=\"javascript\"><br \/>\n<\/code><\/p>\n<p><code lang=\"javascript\">    ]<br \/>\n},<br \/>\n\"default\": {<br \/>\n\"ntp\": {<br \/>\n\"servers\": [<br \/>\n\"0.jp.pool.ntp.org\",<br \/>\n\"1.jp.pool.ntp.org\",<br \/>\n\"2.jp.pool.ntp.org\",<br \/>\n\"3.jp.pool.ntp.org\"<br \/>\n],<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<h3>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u691c\u7d22<\/h3>\n<p>Chef-Solo\u3067\u306f\u3067\u304d\u306a\u304b\u3063\u305f<a href=\"http:\/\/docs.getchef.com\/knife_search.html\">knife search<\/a>\u3082\u3053\u306e\u3088\u3046\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife search node 'name:ubuntu' -z<br \/>\nWARNING: No knife configuration file found<br \/>\n1 items found<\/code><\/p>\n<p><code lang=\"bash\"><code lang=\"bash\"><\/code><\/code><\/p>\n<p>Node Name: ubuntu<br \/>\nEnvironment: _default<br \/>\nFQDN: ubuntu<br \/>\nIP: 192.168.122.209<br \/>\nRun List: role[ntp]<br \/>\nRoles: ntp<br \/>\nRecipes: ntp, ntp::default, ntp::apparmor<br \/>\nPlatform: ubuntu 12.04<br \/>\nTags:<\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">ubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife search role 'name:ntp' -z<br \/>\nWARNING: No knife configuration file found<br \/>\n1 items found<\/code><\/p>\n<p><code lang=\"bash\"><code lang=\"bash\"><\/code><\/code><\/p>\n<p>chef_type: role<br \/>\ndefault_attributes:<br \/>\nntp:<br \/>\nservers:<br \/>\n0.jp.pool.ntp.org<br \/>\n1.jp.pool.ntp.org<br \/>\n2.jp.pool.ntp.org<br \/>\n3.jp.pool.ntp.org<br \/>\ndescription: ntp basic<br \/>\nenv_run_lists:<br \/>\njson_class: Chef::Role<br \/>\nname: ntp<br \/>\noverride_attributes:<br \/>\nrun_list: recipe[ntp]<\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">ubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<h2>Chef-Zero\u3092\u5c11\u3057\u610f\u8b58\u3057\u3066\u307f\u305f\u3044<\/h2>\n<p>\u3055\u3066\u3001\u3053\u3053\u307e\u3067\u3067Chef-Zero\u304c\u305d\u306e\u9854\u3092\u898b\u305b\u3066\u3044\u305f\u7b87\u6240\u304c\u3042\u3063\u305f\u3067\u3057\u3087\u3046\u304b\uff1f \u307e\u3063\u305f\u304f\u306a\u304b\u3063\u305f\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u3088\u3046\u306bChef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u306fChef-Zero\u3092\u610f\u8b58\u3057\u306a\u304f\u3066\u3082\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001Chef-Zero\u3092\u610f\u8b58\u3057\u3066\u307f\u305f\u3044\u3068\u3044\u3046\u65b9\u306e\u305f\u3081\u306b<strong>knife serve<\/strong>\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u3067Chef-Zero\u3092\u8d77\u52d5\u3057\u3001Chef-Server\u306b\u554f\u3044\u5408\u308f\u305b\u308b\u306e\u3068\u540c\u3058\u3088\u3046\u306bchef-repo\u3092\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>knife serve\u306bchef-repo\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u300c<strong>--chef-repo-path .<\/strong>\u300d\u3092\u4ed8\u4e0e\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife serve --chef-repo-path .<br \/>\nWARNING: No knife configuration file found<br \/>\nServing files from:<br \/>\nrepository at \/home\/ubuntu\/chef-repo<br \/>\nOne version per cookbook<\/code><\/p>\n<p><code lang=\"bash\"><code lang=\"bash\"><\/code><\/code><\/p>\n<p>&gt;&gt; Starting Chef Zero (v2.2.1)...<br \/>\n&gt;&gt; WEBrick (v1.3.1) on Rack (v1.5) is listening at http:\/\/localhost:8889<br \/>\n&gt;&gt; Press CTRL+C to stop<\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\"><\/code><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b localhost:8889 \u3067Chef-Zero\u304c\u8d77\u52d5\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u5bfe\u3057\u3066knife\u30b3\u30de\u30f3\u30c9\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u901a\u5e38\u3067\u306fknife\u30b3\u30de\u30f3\u30c9\u304c\u8a8d\u8a3c\u7528\u306e\u60c5\u5831\u3092\u8981\u6c42\u3059\u308b\u306e\u3067\u3001\u30c0\u30df\u30fc\u306e\u30e6\u30fc\u30b6\u540d\u3068\u79d8\u5bc6\u9375\u3092\u305d\u308c\u305e\u308c\u300c<strong>-u dummy<\/strong>\u300d\u300c<strong>-k \/opt\/chefdk\/embedded\/apps\/test-kitchen\/support\/dummy-validation.pem<\/strong>\u300d\u3068\u3057\u3066\u4e0e\u3048\u3001\u300c<strong>-s http:\/\/localhost:8889<\/strong>\u300d\u3067\u63a5\u7d9a\u5148Chef-Server\u306bChef-Zero\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife node show ubuntu -u dummy -k \/opt\/chefdk\/embedded\/apps\/test-kitchen\/support\/dummy-validation.pem -s http:\/\/localhost:8889<br \/>\nWARNING: No knife configuration file found<br \/>\nNode Name:   ubuntu<br \/>\nEnvironment: _default<br \/>\nFQDN:        ubuntu<br \/>\nIP:          192.168.122.209<br \/>\nRun List:    role[ntp]<br \/>\nRoles:       ntp<br \/>\nRecipes:     ntp, ntp::default, ntp::apparmor<br \/>\nPlatform:    ubuntu 12.04<br \/>\nTags:<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>Node\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>Role\u3092\u7de8\u96c6\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ knife role edit ntp -u dummy -k \/opt\/chefdk\/embedded\/apps\/test-kitchen\/support\/dummy-validation.pem -s http:\/\/localhost:8889<br \/>\nWARNING: No knife configuration file found<br \/>\nSaved role[ntp]<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>knife serve\u306a\u3089\u3070\u3001\u6c38\u7d9a\u7684\u306a\u30c7\u30fc\u30bf\u4fdd\u5b58\u3092\u884c\u308f\u306a\u3044Chef-Zero\u3067\u3082\u3001chef-repo\u306b\u304d\u3061\u3093\u3068\u5909\u66f4\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nubuntu@ubuntu:~\/chef-repo$ git diff<br \/>\ndiff --git a\/roles\/ntp.json b\/roles\/ntp.json<br \/>\nindex 0a4e92e..66cb5ea 100644<br \/>\n--- a\/roles\/ntp.json<br \/>\n+++ b\/roles\/ntp.json<br \/>\n@@ -4,10 +4,10 @@<br \/>\n\"default_attributes\": {<br \/>\n\"ntp\": {<br \/>\n\"servers\": [<br \/>\n-        \"0.jp.pool.ntp.org\",<br \/>\n-        \"1.jp.pool.ntp.org\",<br \/>\n-        \"2.jp.pool.ntp.org\",<br \/>\n-        \"3.jp.pool.ntp.org\"<br \/>\n+        \"0.asia.pool.ntp.org\",<br \/>\n+        \"1.asia.pool.ntp.org\",<br \/>\n+        \"2.asia.pool.ntp.org\",<br \/>\n+        \"3.asia.pool.ntp.org\"<br \/>\n]<br \/>\n}<br \/>\n},<br \/>\nubuntu@ubuntu:~\/chef-repo$<br \/>\n<\/code><\/p>\n<p>\u5b9f\u306fChef-Client\u306e\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3067\u306f\u3001\u3053\u306e\u3088\u3046\u306b\u5185\u90e8\u7684\u306bChef-Zero\u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3001\u666e\u901a\u306fChef-Zero\u3092\u610f\u8b58\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u3068\u3044\u3046\u306e\u306f\u3053\u308c\u307e\u3067\u7d39\u4ecb\u3057\u305f\u901a\u308a\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Chef-Solo\u3068Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u306e\u6bd4\u8f03\u3068\u79fb\u884c\u3001\u305d\u3057\u3066\u8aa4\u89e3\u3055\u308c\u304c\u3061\u306aChef-Zero\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u7279\u306b\u96e3\u3057\u304f\u8003\u3048\u306a\u304f\u3066\u3088\u3044\u3053\u3068\u304c\u4f1d\u308f\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u6b21\u56de\u306f\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3092\u7528\u3044\u3066\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e<a href=\"https:\/\/github.com\/higanworks\/knife-zero\">Knife-Zero<\/a>\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<hr \/>\n<ul>\n<li><a href=\"\/lab\/6085\">[\u548c\u8a33] \u30bd\u30ed\u304b\u3089\u30bc\u30ed\u3078: Chef Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c<\/a><\/li>\n<li><a href=\"\/lab\/2749\">\u8efd\u91cf\u7c21\u6613Chef Server\u300cchef-zero\u300d\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u5148\u306e\u8a18\u4e8b [\u548c\u8a33] \u30bd\u30ed\u304b\u3089\u30bc\u30ed\u3078: Chef Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c \u3067\u53d6\u308a\u4e0a\u3052\u3089\u308c\u3066\u3044\u308b\u300cChef-Zero\u300d\u306f\u4e00\u65e6\u5fd8\u308c\u307e\u3057\u3087\u3046\u3002\u79c1\u9054\u306f\u300cChef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":6383,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[36,31],"tags":[],"class_list":["post-6380","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chef","category-higuchi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Chef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c #opschef_ja #getchef_ja - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"Chef, d-higuchi |\u306f\u3058\u3081\u306b \u5148\u306e\u8a18\u4e8b \u30bd\u30ed\u304b\u3089\u30bc\u30ed\u3078: Chef Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Chef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c #opschef_ja #getchef_ja - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"Chef, d-higuchi |\u306f\u3058\u3081\u306b \u5148\u306e\u8a18\u4e8b \u30bd\u30ed\u304b\u3089\u30bc\u30ed\u3078: Chef Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2014-11-11T02:30:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-29T04:49:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-solo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"303\" \/>\n\t<meta property=\"og:image:height\" content=\"204\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Daisuke Higuchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daisuke Higuchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"12\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"Chef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c #opschef_ja #getchef_ja\",\"datePublished\":\"2014-11-11T02:30:12+00:00\",\"dateModified\":\"2023-08-29T04:49:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380\"},\"wordCount\":299,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2014\\\/11\\\/chef-solo.png\",\"articleSection\":[\"Chef\",\"d-higuchi\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380\",\"name\":\"Chef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c #opschef_ja #getchef_ja - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2014\\\/11\\\/chef-solo.png\",\"datePublished\":\"2014-11-11T02:30:12+00:00\",\"dateModified\":\"2023-08-29T04:49:10+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"Chef, d-higuchi |\u306f\u3058\u3081\u306b \u5148\u306e\u8a18\u4e8b \u30bd\u30ed\u304b\u3089\u30bc\u30ed\u3078: Chef Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2014\\\/11\\\/chef-solo.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2014\\\/11\\\/chef-solo.png\",\"width\":303,\"height\":204},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\\\/6380#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Chef\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/chef\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Chef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c #opschef_ja #getchef_ja\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\",\"name\":\"Daisuke Higuchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"caption\":\"Daisuke Higuchi\"},\"description\":\"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Chef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c #opschef_ja #getchef_ja - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"Chef, d-higuchi |\u306f\u3058\u3081\u306b \u5148\u306e\u8a18\u4e8b \u30bd\u30ed\u304b\u3089\u30bc\u30ed\u3078: Chef Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380","og_locale":"ja_JP","og_type":"article","og_title":"Chef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c #opschef_ja #getchef_ja - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"Chef, d-higuchi |\u306f\u3058\u3081\u306b \u5148\u306e\u8a18\u4e8b \u30bd\u30ed\u304b\u3089\u30bc\u30ed\u3078: Chef Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c","og_url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2014-11-11T02:30:12+00:00","article_modified_time":"2023-08-29T04:49:10+00:00","og_image":[{"width":303,"height":204,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-solo.png","type":"image\/png"}],"author":"Daisuke Higuchi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Daisuke Higuchi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"12\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"Chef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c #opschef_ja #getchef_ja","datePublished":"2014-11-11T02:30:12+00:00","dateModified":"2023-08-29T04:49:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380"},"wordCount":299,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-solo.png","articleSection":["Chef","d-higuchi"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380","url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380","name":"Chef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c #opschef_ja #getchef_ja - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-solo.png","datePublished":"2014-11-11T02:30:12+00:00","dateModified":"2023-08-29T04:49:10+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"Chef, d-higuchi |\u306f\u3058\u3081\u306b \u5148\u306e\u8a18\u4e8b \u30bd\u30ed\u304b\u3089\u30bc\u30ed\u3078: Chef Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-solo.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/11\/chef-solo.png","width":303,"height":204},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/6380#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative"},{"@type":"ListItem","position":3,"name":"Chef","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef"},{"@type":"ListItem","position":4,"name":"Chef-Solo\u304b\u3089Chef-Client\u30ed\u30fc\u30ab\u30eb\u30e2\u30fc\u30c9\u3078\u306e\u79fb\u884c #opschef_ja #getchef_ja"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206","name":"Daisuke Higuchi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","caption":"Daisuke Higuchi"},"description":"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/6380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=6380"}],"version-history":[{"count":1,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/6380\/revisions"}],"predecessor-version":[{"id":65762,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/6380\/revisions\/65762"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/6383"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=6380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=6380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=6380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}