{"id":10056,"date":"2013-12-23T11:00:03","date_gmt":"2013-12-23T02:00:03","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=10056"},"modified":"2013-12-22T18:06:20","modified_gmt":"2013-12-22T09:06:20","slug":"%e3%82%b0%e3%83%aa%e3%83%bc%e3%81%ae%e3%82%a4%e3%83%b3%e3%83%95%e3%83%a9%e3%81%ab-chef-%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%97%e3%81%9f%e8%a9%b1","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2013\/12\/10056\/","title":{"rendered":"\u30b0\u30ea\u30fc\u306e\u30a4\u30f3\u30d5\u30e9\u306b Chef \u3092\u5c0e\u5165\u3057\u305f\u8a71"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u672c\u90e8\u306e\u8352\u4e95 (<a href=\"https:\/\/twitter.com\/ryot_a_rai\">@ryot_a_rai<\/a>) \u3067\u3059\u3002\u30b0\u30ea\u30fc\u306e\u30a4\u30f3\u30d5\u30e9\u306e\u30b5\u30fc\u30d0\u7ba1\u7406\u5468\u308a\u3092\u3088\u308a\u826f\u304f\u3059\u308b\u4ed5\u4e8b\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/labs.gree.jp\/blog\/2013\/11\/8799\/\">GREE Advent Calendar 2013<\/a> 23\u65e5\u76ee\u306f\u30b0\u30ea\u30fc\u3067 Chef \u3092\u5c0e\u5165\u3057\u3066\u3044\u304f\u4e0a\u3067\u306e\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h1>Chef \u3068\u306f<\/h1>\n<p>\u307e\u305a\u3001\u7c21\u5358\u306b Chef \u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.getchef.com\/chef\/\">Chef<\/a> \u306f Chef \u793e\uff08\u65e7Opscode\u793e\uff09\u304c\u958b\u767a\u3057\u3066\u3044\u308b\u3001\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3059\u3002Chef \u306f OSS \u3068\u3057\u3066\u958b\u767a\u304c\u9032\u3081\u3089\u308c\u3066\u304a\u308a\u3001\u7121\u6599\u3067\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff08\u6709\u511f\u3067\u30b5\u30dd\u30fc\u30c8\u3092\u53d7\u3051\u305f\u308a\u3001Chef \u793e\u306b\u3088\u3063\u3066\u30db\u30b9\u30c8\u3055\u308c\u305fChef Server\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\uff09\u3002Chef\u3067\u306f\u30ce\u30fc\u30c9\u306e\u3042\u308b\u3079\u304d\u59ff\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u69d8\u306a\u30b3\u30fc\u30c9\u3067\u3001Apache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u306a\u3069\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u8a2d\u5b9a\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >\npackage \"apache2\" do\n  action :install\nend\n\nservice \"apache2\" do\n  supports reload: true\nend\n\ntemplate \"\/etc\/apache2\/apache.conf\" do\n  action :create\n  notifies :reload, \"service[apache2]\"\nend\n<\/pre>\n<p>\u985e\u4f3c\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3068\u3057\u3066\u3001Puppet \u3084 Ansible \u3068\u3044\u3063\u305f\u3082\u306e\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u3046\u3044\u3063\u305f\u30a4\u30f3\u30d5\u30e9\u81ea\u52d5\u5316\u307e\u308f\u308a\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u3064\u3044\u3066\u306f\u30da\u30d1\u30dc\u306e\u5bae\u4e0b\u3055\u3093\u306e <a href=\"http:\/\/mizzy.org\/blog\/2013\/10\/29\/1\/\">\u30a4\u30f3\u30d5\u30e9\u7cfb\u6280\u8853\u306e\u6d41\u308c<\/a> \u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>Chef in \u30b0\u30ea\u30fc<\/h1>\n<p>\u3055\u3066\u3001\u30b0\u30ea\u30fc\u3067\u306eChef\u307e\u308f\u308a\u306e\u69cb\u6210\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u4e0b\u56f3\u304c\u5168\u4f53\u306e\u69cb\u6210\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2013\/12\/overview.png\"><img decoding=\"async\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2013\/12\/overview.png\" alt=\"chef_in_gree_overview\" width=\"500\" class=\"alignnone size-full wp-image-10182\" \/><\/a><\/p>\n<h2>\u958b\u767a\u74b0\u5883<\/h2>\n<p>\u958b\u767a\u306f\u5404\u500b\u4eba\u306e\u30de\u30b7\u30f3\u4e0a\u3067\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u7acb\u3061\u4e0a\u3052\u3066\u884c\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u30af\u30c3\u30af\u30d6\u30c3\u30af\u306e\u958b\u767a\u3067\u306f\u3001\u30af\u30c3\u30af\u30d6\u30c3\u30af\u3092\u958b\u767a\u3059\u308b\u4eba\u304c <a href=\"http:\/\/serverspec.org\">serverspec<\/a> \u3067\u30c6\u30b9\u30c8\u3092\u66f8\u304f\u3088\u3046\u306b\u3057\u3066\u3044\u3066\u3001\u69cb\u7bc9\u5f8c\u306e\u30b5\u30fc\u30d0\u304c\u671f\u5f85\u901a\u308a\u52d5\u304f\u3053\u3068\u3092\u30c6\u30b9\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u4e00\u3064\u306e\u30af\u30c3\u30af\u30d6\u30c3\u30af\u3067\u3082\u8a2d\u5b9a\u5024\u306a\u3069\u306e\u6761\u4ef6\u306b\u3088\u3063\u3066\u52d5\u4f5c\u304c\u5909\u308f\u3063\u3066\u304f\u308b\u305f\u3081\u3001<a href=\"http:\/\/kitchen.ci\/\">test-kitchen<\/a> \u3092\u7528\u3044\u3066\u8907\u6570\u306e\u6761\u4ef6\uff08\u30e9\u30f3\u30ea\u30b9\u30c8\u3084\u30ce\u30fc\u30c9\u306e\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\uff08\u4ee5\u4e0b\u3001\u300c\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u300d\uff09\u306a\u3069\u306e\u7d44\u307f\u5408\u308f\u305b\uff09\u3067\u30c6\u30b9\u30c8\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4e00\u90e8\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u306a\u3044\u30c6\u30b9\u30c8\uff08attributes\/*.rb \u306e\u30c6\u30b9\u30c8\u306a\u3069\uff09\u3092\u9ad8\u901f\u306b\u884c\u3046\u305f\u3081 <a href=\"http:\/\/sethvargo.com\/chefspec\/\">ChefSpec<\/a> \u3082\u4f75\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3046\u305f\u3081\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u65b0\u898f\u3067\u30af\u30c3\u30af\u30d6\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306b\u306f\u305d\u308c\u3092\u30b3\u30d4\u30fc\u3059\u308b\u6d41\u308c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>GitHub Enterprise -> Jenkins -> \u30c7\u30d7\u30ed\u30a4<\/h2>\n<p>\u30af\u30c3\u30af\u30d6\u30c3\u30af\u3001\u30ed\u30fc\u30eb\u3001\u69cb\u7bc9\u5bfe\u8c61\u30ce\u30fc\u30c9\u306e\u8a2d\u5b9a\u5024\u306f GitHub Enterprise \u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u3059\u3002GitHub \u306b\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u3068 Jenkins \u304c Vagrant \u3092\u4f7f\u3063\u3066 Vagrant + serverspec \u3084 ChefSpec \u3067\u30c6\u30b9\u30c8\u3057\u305f\u5f8c\u3001\u30c6\u30b9\u30c8\u304c\u901a\u3063\u305f\u3082\u306e\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\uff08\u4f59\u8ac7\u3067\u3059\u304c\u3001Jenkins \u306f keepalived, lsyncd \u3067\u5197\u9577\u5316\u3055\u308c\u3066\u3044\u307e\u3059\uff09<\/p>\n<p>\u57fa\u672c\u7684\u306b\u3001\u30af\u30c3\u30af\u30d6\u30c3\u30af\u306e\u958b\u767a\u8005\u306f Pull Request \u3092\u6295\u3052\u3066\u3001\u30ec\u30d3\u30e5\u30fc\u3092\u53d7\u3051\u305f\u3042\u3068\u30de\u30fc\u30b8\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>Chef \u3067\u306f\u30ec\u30b7\u30d4\u306b\u3057\u305f\u304c\u3063\u3066\u30b5\u30fc\u30d0\u306e\u30d7\u30ed\u30d3\u30b8\u30e7\u30cb\u30f3\u30b0\u3092\u884c\u3044\u307e\u3059\u304c\u3001\u5404\u30ce\u30fc\u30c9\u3054\u3068\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u8a2d\u5b9a\u5024\u306f\u30ec\u30b7\u30d4\u5185\u3067\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u30af\u30c3\u30af\u30d6\u30c3\u30af\u3054\u3068\u306b\u5fc5\u8981\u306a\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u306f\u30ec\u30b7\u30d4\u306e\u4f5c\u308a\u65b9\u306b\u3088\u308b\u306e\u3067\u3001\u30af\u30c3\u30af\u30d6\u30c3\u30af\u306b\u3088\u308a\u7570\u306a\u3063\u3066\u304d\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30ce\u30fc\u30c9\u304c\u5229\u7528\u3059\u308b\u30af\u30c3\u30af\u30d6\u30c3\u30af\u306b\u5fdc\u3058\u3066\u3001\u305d\u306e\u30ce\u30fc\u30c9\u306b\u9069\u5207\u306a\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30af\u30c3\u30af\u30d6\u30c3\u30af\u304c\u591a\u304f\u306a\u3063\u3066\u304f\u308b\u3068\u3001\u3069\u306e\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u3079\u304d\u304b\u308f\u304b\u3089\u306a\u304f\u306a\u3063\u305f\u308a\u3001\u3042\u308b\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u304c\u4e0d\u8db3\u3057\u3066\u3044\u3066\u3001Chef \u304c\u30b3\u30b1\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u8d77\u3053\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3092\u9632\u3050\u305f\u3081\u306b\u3001\u30b0\u30ea\u30fc\u3067\u306f\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002JSON\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3068\u3044\u3046\u3053\u3068\u3067 JSON Schema \u3092\u307e\u305a\u691c\u8a0e\u3057\u307e\u3057\u305f\u304c\u3001\u8981\u4ef6\u306b\u5bfe\u3057\u3066\u4e0d\u8db3\u304c\u3042\u308a\u3001\u5185\u88fd\u306e\u30d0\u30ea\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d0\u30ea\u30c7\u30fc\u30bf\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30eb\u30fc\u30eb\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067JSON\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u884c\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >\n$ cat schema.rb\nobject do\n  object \"apache\" do\n    string \"dir\"\n    array(\"listen_ports\") { integer(minimum: 0, maximum: 65535) }\n  end\nend\n$ cat valid.json\n{\n    \"apache\": {\n        \"dir\": \"\/var\/www\",\n        \"listen_ports\": [80]\n    }\n}\n$ validator validate schema.rb valid.json\n$ cat invalid.json\n{\n    \"apache\": {\n        \"listen_ports\": [-1]\n    }\n}\n$ validator validate schema.rb invalid.json\n[missing_property][at apache] Missing required property: dir\n[minimum][at apache\/listen_ports] Value -1 is less than or equal to 0\n<\/pre>\n<p>\u30af\u30c3\u30af\u30d6\u30c3\u30af\u306e\u4e2d\u306b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30eb\u30fc\u30eb\u3092\u8a18\u8ff0\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u5165\u308c\u3066\u304a\u304f\u3068\u3001\u305d\u306e\u30ce\u30fc\u30c9\u304c\u5229\u7528\u3057\u3066\u3044\u308b\u30af\u30c3\u30af\u30d6\u30c3\u30af\u306b\u5fdc\u3058\u3066\u81ea\u52d5\u7684\u306b\u30eb\u30fc\u30eb\u304c\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u4f5c\u696d\u306f\u524d\u8ff0\u306e Jenkins \u306b\u3088\u3063\u3066\u81ea\u52d5\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Chef Bridge<\/h2>\n<p>\u4e0a\u8a18\u306e\u69cb\u6210\u56f3\u306b chef-bridge \u3068\u3044\u3046\u898b\u6163\u308c\u306a\u3044\u3082\u306e\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u5185\u88fd\u306eChef\u7528\u306e\u30b5\u30fc\u30d0\u3067\u3059\u3002<\/p>\n<p>Chef \u306b\u306f Chef Server + Chef Client \u306e\u30b5\u30fc\u30d0\u30fb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u69cb\u6210\u3067\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3068\u3001Chef Solo \u5358\u4f53\u3067\u5229\u7528\u3059\u308b\u65b9\u6cd5\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30b0\u30ea\u30fc\u3067\u306f Chef Server \u3092\u5229\u7528\u305b\u305a Chef Solo \u3068\u5185\u88fd\u306e Chef Bridge \u3092\u5229\u7528\u3057\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u7406\u7531\u3068\u3057\u3066\u306f\u3001<\/p>\n<ul>\n<li>Chef Server \u306b\u306f\u30b5\u30fc\u30d0\u306e\u60c5\u5831\u30fb\u8a2d\u5b9a\u3092\u7ba1\u7406\u3059\u308b\u6a5f\u80fd\u304c\u5099\u308f\u3063\u3066\u3044\u308b\u304c\u3001\u30b0\u30ea\u30fc\u3067\u306f\u5185\u88fd\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u30b5\u30fc\u30d0\u306e\u60c5\u5831\u30fb\u8a2d\u5b9a\u304c\u4e00\u5143\u7ba1\u7406\u3055\u308c\u3066\u3044\u3066\u3001\u30c7\u30fc\u30bf\u3092\u4e8c\u91cd\u306b\u7ba1\u7406\u3059\u308b\u3053\u3068\u306b\u306a\u308b\n<ul>\n<li>\u5185\u88fd\u306e\u30b5\u30fc\u30d0\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u306e\u60c5\u5831\u3092 Chef \u304b\u3089\u900f\u904e\u7684\u306b\u6271\u3044\u305f\u3044<\/li>\n<\/ul>\n<\/li>\n<li>Chef Server \u306e HA \u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u7248\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\n<ul>\n<li>\u8abf\u67fb\u3057\u305f\u7d50\u679c\u3001PostgreSQL\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068Lsyncd\u306a\u3069\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u540c\u671f\u3092\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u30b9\u30bf\u30f3\u30d0\u30a4\u306e Chef Server \u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u304c\u3001\u4e0d\u6574\u5408\u304c\u8d77\u3053\u3063\u305f\u5834\u5408\u306a\u3069\u306e\u30c8\u30e9\u30d6\u30eb\u3092\u8003\u3048\u3066\u907f\u3051\u305f\u3044<\/li>\n<\/ul>\n<\/li>\n<li>Chef Server \u3068 Chef Client \u3067\u306f\u5b9f\u73fe\u3067\u304d\u306a\u3044\uff08\u3057\u306b\u304f\u3044\uff09\u6a5f\u80fd\u3092\u8ffd\u52a0\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u305f\u304b\u3063\u305f\n<ul>\n<li>\u4f8b\u3048\u3070\u3001\u30af\u30c3\u30af\u30d6\u30c3\u30af\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u306b\u5fdc\u3058\u3066\u52d5\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u6a5f\u80fd\u304c\u5165\u3063\u3066\u3044\u305f\u308a\u3057\u307e\u3059<\/li>\n<\/ul>\n<\/li>\n<li>Chef Server \u306f\u30d8\u30d3\u30fc\u3059\u304e\u308b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Chef Bridge \u306fHTTP\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u308b\u3068\u6307\u5b9a\u3055\u308c\u305f\u30ce\u30fc\u30c9\u306e\u8a2d\u5b9a\u60c5\u5831\u3001\u30af\u30c3\u30af\u30d6\u30c3\u30af\u306a\u3069\u3092\u8fd4\u3059\u3060\u3051\u306e\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30b5\u30fc\u30d0\u3067\u3059\u3002\u8a2d\u5b9a\u306e\u5909\u66f4\u306a\u3069\u306f Chef Bridge \u304b\u3089\u884c\u3046\u3053\u3068\u306f\u3067\u304d\u305a\u3001Git\u304b\u3089\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u65e2\u5b58\u306e\u30b5\u30fc\u30d0\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3068\u306f Chef Bridge \u306e\u307f\u304c\u4f1a\u8a71\u3059\u308b\u3088\u3046\u306b\u69cb\u6210\u3057\u3066\u3044\u3066\u3001Chef \u5074\u304b\u3089\u900f\u904e\u7684\u306b\u6271\u3048\u307e\u3059\u3002<\/p>\n<h2>\u30d7\u30ed\u30d3\u30b8\u30e7\u30cb\u30f3\u30b0<\/h2>\n<p>\u30ce\u30fc\u30c9\u5074\u3067 gree-chef-client \u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u30d7\u30ed\u30d3\u30b8\u30e7\u30cb\u30f3\u30b0\u3092\u958b\u59cb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002gree-chef-client \u3067\u306f\u3001<\/p>\n<ol>\n<li>Chef Bridge \u306b\u554f\u3044\u5408\u308f\u305b\u3066\u3001\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3001\u30af\u30c3\u30af\u30d6\u30c3\u30af\u306a\u3069\u3092\u53d6\u5f97\u3059\u308b<\/li>\n<li>Chef Solo \u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u6e96\u5099<\/li>\n<li>Chef Solo \u3092\u5b9f\u884c<\/li>\n<li>serverspec \u3067\u30c6\u30b9\u30c8\u3092\u5b9f\u884c<\/li>\n<\/ol>\n<p>\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u524d\u8ff0\u306e Chef Bridge \u306b\u554f\u3044\u5408\u308f\u305b\u3066\u3001\u81ea\u5206\u306e\u8a2d\u5b9a\u3084\u3001\u5fc5\u8981\u306a\u30af\u30c3\u30af\u30d6\u30c3\u30af\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305d\u308c\u3089\u3092\u5143\u306b Chef::Config \u3042\u305f\u308a\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3057\u305f\u308a\u3057\u3066\u3001Chef Solo \u3092\u5b9f\u884c\u3067\u304d\u308b\u72b6\u6cc1\u3092\u3064\u304f\u308a\u307e\u3059\u3002\u793e\u5185\u30b5\u30fc\u30d0\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u306e\u60c5\u5831\u306f\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u3068\u3057\u3066 Chef Solo \u306b\u6e21\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u5f8c\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b Chef Solo \u3092\u8d77\u52d5\u3057\u3066\u3001\u30d7\u30ed\u30d3\u30b8\u30e7\u30cb\u30f3\u30b0\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \" >\nsolo = Chef::Application::Solo.new\n# \u4e2d\u7565...\nsolo.run_chef_client\n<\/pre>\n<p>Chef Solo \u3084\u30af\u30c3\u30af\u30d6\u30c3\u30af\u304b\u3089\u898b\u308b\u3068\u793e\u5185\u30b5\u30fc\u30d0\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u306e\u60c5\u5831\u306f\u5358\u306a\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u3068\u3057\u3066\u898b\u3048\u308b\u305f\u3081\u3001\u9069\u5207\u306b\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u3092\u6e21\u305b\u3070\u3001Chef Bridge \u3092\u5229\u7528\u305b\u305a Chef Solo \u5358\u4f53\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Chef \u3067\u30d7\u30ed\u30d3\u30b8\u30e7\u30cb\u30f3\u30b0\u304c\u5b8c\u4e86\u3057\u305f\u3042\u3068\u306f\u3001serverspec \u3067\u30c6\u30b9\u30c8\u3092\u8d70\u3089\u305b\u3066\u3044\u307e\u3059\u3002\u958b\u767a\u74b0\u5883\u3084Jenkins\u4e0a\u3067\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u4f7f\u3063\u305f\u30c6\u30b9\u30c8\u3092\u884c\u3063\u3066\u3044\u308b\u4e0a\u3001\u69cb\u7bc9\u3057\u305f\u30ce\u30fc\u30c9\u3067\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u30af\u30c3\u30af\u30d6\u30c3\u30af\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u91cd\u306d\u3066\u4f55\u56de\u3082 Chef \u304c\u5b9f\u884c\u3055\u308c\u305f\u5834\u5408\u306b\u3001\u9069\u5207\u306b\u30b5\u30fc\u30d0\u304c\u30d7\u30ed\u30d3\u30b8\u30e7\u30cb\u30f3\u30b0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3044\u304b\u3089\u3067\u3059\u3002Immutable \u306b\u30b5\u30fc\u30d0\u3092\u6271\u3046\u5834\u5408\u3001Jenkins \u3067\u30c6\u30b9\u30c8\u3055\u308c\u3066\u3044\u308c\u3070\u5341\u5206\u3060\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u304c\u3001\u30b0\u30ea\u30fc\u306e\u3088\u3046\u306b Mutable \u306b Chef \u3092\u8d70\u3089\u305b\u3066\u30b5\u30fc\u30d0\u306e\u72b6\u614b\u3092\u5909\u66f4\u3057\u3066\u3044\u304f\u904b\u7528\u306e\u5834\u5408\u3001\u69cb\u7bc9\u5bfe\u8c61\u3067\u30c6\u30b9\u30c8\u3092\u8d70\u3089\u305b\u308b\u306e\u306f\u6709\u7528\u3060\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u307e\u3068\u3081<\/h1>\n<p>\u4ee5\u4e0a\u3001\u7c21\u5358\u306b\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u30b0\u30ea\u30fc\u3067\u306e Chef \u5c0e\u5165\u306b\u304a\u3051\u308b\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u7d39\u4ecb\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u5b9f\u969b\u306e\u904b\u7528\u306b\u306e\u305b\u308b\u305f\u3081\u306b\u4e0d\u8db3\u3057\u305f\u6a5f\u80fd\u3092\u88dc\u3044\u3064\u3064\u3001\u5c0e\u5165\u3092\u9032\u3081\u3066\u3044\u307e\u3059\u3002\u4ed6\u793e\u3055\u3093\u306e\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3082\u6c17\u306b\u306a\u308b\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>\u660e\u65e5\u306f <a href=\"http:\/\/twitter.com\/ichii386\">@ichii386<\/a> \u3055\u3093\u3067\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u672c\u90e8\u306e\u8352\u4e95 (@ryot_a_rai) \u3067\u3059\u3002\u30b0\u30ea\u30fc\u306e\u30a4\u30f3\u30d5\u30e9\u306e\u30b5\u30fc\u30d0\u7ba1\u7406\u5468\u308a\u3092\u3088\u308a\u826f\u304f\u3059\u308b\u4ed5\u4e8b\u3092\u3057\u3066\u3044\u307e\u3059\u3002 GREE Advent Calendar 2013 23\u65e5\u76ee\u306f\u30b0\u30ea\u30fc\u3067 Ch [&hellip;]<\/p>\n","protected":false},"author":50,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[54,62,25],"class_list":["post-10056","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-advent-calendar","tag-chef","tag-ruby"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/10056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=10056"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/10056\/revisions"}],"predecessor-version":[{"id":10225,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/10056\/revisions\/10225"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=10056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=10056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=10056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}