{"id":9798,"date":"2015-06-23T13:00:07","date_gmt":"2015-06-23T04:00:07","guid":{"rendered":"http:\/\/www.creationline.com\/?p=9798"},"modified":"2015-06-19T16:50:20","modified_gmt":"2015-06-19T07:50:20","slug":"%e5%92%8c%e8%a8%b3-chef-audit-mode-%e3%82%a4%e3%83%b3%e3%83%88%e3%83%ad%e3%83%80%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3-getchef-serverspec","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/chef\/9798","title":{"rendered":"[\u548c\u8a33] Chef Audit Mode \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 #getchef #serverspec"},"content":{"rendered":"<p>\u672c\u7a3f\u306f <a href=\"https:\/\/www.chef.io\/blog\/2015\/05\/06\/chef-audit-mode-introduction\/\">Chef Audit Mode Introduction<\/a> (2015\/05\/06) \u306e\u548c\u8a33\u3067\u3059\u3002<\/p>\n<p>\u5148\u306b\u30a2\u30ca\u30a6\u30f3\u30b9\u3057\u305f<a href=\"https:\/\/www.chef.io\/blog\/2015\/04\/09\/chef-audit-mode-cis-benchmarks\/\">audit-cis Cookbook<\/a> (\u8a33\u6ce8:<a href=\"\/lab\/9298\">\u548c\u8a33<\/a>)\u306a\u3069\u3001Chef\u30d0\u30fc\u30b8\u30e7\u30f312.1.0\u3067\u5c0e\u5165\u3055\u308c\u305f<a href=\"https:\/\/docs.chef.io\/analytics.html#audit-mode\">Audit Mode<\/a>\u6a5f\u80fd\u3092\u53d6\u308a\u4e0a\u3052\u3066\u304d\u307e\u3057\u305f\u3002Audit Mode\u306f\u65b0\u3057\u3044DSL\u30d8\u30eb\u30d1\u30fc\u3092\u4f7f\u3063\u3066\u3001Chef\u306eRecipe\u4e2d\u306bCustom Rule (Control)\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002James Casey\u306f<a href=\"https:\/\/www.youtube.com\/watch?v=g-_SW3adPwU\">ChefConf 2015 talk, \u201cCompliance At Velocity,\u201d<\/a>\u306b\u304a\u3044\u3066\u3001\u80cc\u666f\u3068\u7406\u7531\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u3053\u3053\u3067\u306f\u3001\u3053\u306e\u6a5f\u80fd\u3092\u8a66\u3057\u3066\u307f\u305f\u3044\u30e6\u30fc\u30b6\u306b\u3064\u3044\u3066\u3044\u304f\u3064\u304b\u30c1\u30c3\u30d7\u30b9\u3092\u5171\u6709\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001ChefDK\u3092\u30d0\u30fc\u30b8\u30e7\u30f30.5.0\u306b\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306fchef-client\u306b<a href=\"https:\/\/github.com\/test-kitchen\/test-kitchen\/pull\/652\">Audit Mode\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/a>test-kitchen\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\ncurl -L https:\/\/chef.io\/chef\/install.sh | sudo bash -s -- -P chefdk<br \/>\n<\/code><\/p>\n<p>\u6b21\u306b\u3001Audit Mode\u306e\u30c6\u30b9\u30c8\u306e\u305f\u3081\u306e\u65b0\u3057\u3044Cookbook\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nchef generate cookbook audit-test<br \/>\ncd audit-test<br \/>\n<\/code><\/p>\n<p>\u305d\u3057\u3066\u3001audit-test Cookbook\u306e<strong>.kitchen.yml<\/strong>\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><code lang=\"yaml\"><br \/>\ndriver:<br \/>\n  name: vagrant<br \/>\nprovisioner:<br \/>\n  name: chef_zero<br \/>\n  client_rb:<br \/>\n    audit_mode: :audit_only<br \/>\nplatforms:<br \/>\n  - name: ubuntu-12.04<br \/>\n  - name: centos-6.5<br \/>\nsuites:<br \/>\n  - name: default<br \/>\n    run_list:<br \/>\n      - recipe[audit-test::default]<br \/>\n    attributes:<br \/>\n<\/code><\/p>\n<p>\u751f\u6210\u3055\u308c\u305f<strong>.kitchen.yml<\/strong>\u306b\u3001Audit Mode\u3092\u6709\u52b9\u306b\u3059\u308b<strong>client_rb<\/strong>\u3092provisioner\u8a2d\u5b9a\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<strong>:audit_only<\/strong>\u306fRuby\u306eSymbol\u578b\u306e\u6587\u6cd5\u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<strong>audit_mode<\/strong>\u306e\u6709\u52b9\u306a\u5024\u306f<strong>:enabled<\/strong>\u3001<strong>:audit_only<\/strong>\u3001<strong>:disabled<\/strong>\u3067\u3059\u3002\u3053\u308c\u306f\u751f\u6210\u3055\u308c\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb(<strong>\/tmp\/kitchen\/client.rb<\/strong>)\u5b9f\u969b\u306eRuby\u306eSymbol\u578b\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\naudit_mode :audit_only<br \/>\n<\/code><\/p>\n<p>\u3067\u306f\u3001\u30c6\u30b9\u30c8\u7528\u306eControl Rule\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002Ubuntu 12.04\u306bSSH\u3067\u63a5\u7d9a\u3059\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e<strong>.kitchen.yml<\/strong>\u3092\u4f7f\u3046\u306e\u3067\u3001SSH\u304c\u8d77\u52d5\u3057\u3066\u3044\u3066\u300122\u756a\u30dd\u30fc\u30c8\u3067\u5f85\u3061\u53d7\u3051\u3057\u3066\u3044\u308b\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002\u6b21\u306eControl\u306f\u305d\u308c\u304c\u771f\u3067\u3042\u308b\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\ncontrol_group 'Blog Post Examples' do<br \/>\n  control 'SSH' do<br \/>\n    it 'should be listening on port 22' do<br \/>\n      expect(port(22)).to be_listening<br \/>\n    end<br \/>\n  end<br \/>\nend<br \/>\n<\/code><\/p>\n<p><strong>kitchen converge ubuntu<\/strong>\u3092\u5b9f\u884c\u3057\u3066Chef\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002\u305f\u3060\u3057\u305d\u306e\u5f8c\u306bVM\u3092\u524a\u9664\u306f\u3057\u307e\u305b\u3093\u3002\u4ed6\u306e\u4f8b\u306b\u4f7f\u3046\u304b\u3089\u3067\u3059\u3002\u6b21\u306fChef\u306e\u5b9f\u884c\u306b\u3088\u308bAudit\u30d5\u30a7\u30a4\u30ba\u306e\u51fa\u529b\u3067\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\n% kitchen converge ubuntu<br \/>\nSynchronizing Cookbooks:<br \/>\n  - audit-test<br \/>\nCompiling Cookbooks...<br \/>\nStarting audit phase<\/p>\n<p>Blog Post Examples<br \/>\n  SSH<br \/>\n    should be listening on port 22<\/p>\n<p>Finished in 0.10453 seconds (files took 0.37536 seconds to load)<br \/>\n1 example, 0 failures<br \/>\nAuditing complete<br \/>\n<\/code><\/p>\n<p>\u3084\u3063\u305f\uff01 \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fNode\u304cControl\u306b\u9069\u5408\u3059\u308b\u3068\u4eee\u5b9a\u3057\u3066\u3044\u305f\u304b\u3089\u3067\u3059\u3002Control\u304c\u5931\u6557\u3059\u308b\u306e\u306f\u3069\u3093\u306a\u3068\u304d\u3067\u3057\u3087\u3046\u304b\uff1f \u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002SSH\u304c\u65e2\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u306e\u3067\u3001sshd\u306e\u8a2d\u5b9a\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306eVagrant base box\u3067\u306froot\u30ed\u30b0\u30a4\u30f3\u3092\u8a31\u53ef\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nPermitRootLogin yes<br \/>\n<\/code><\/p>\n<p>\u3057\u304b\u3057\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30dd\u30ea\u30b7\u30fc\u304b\u3089\u3053\u308c\u3092<strong>no<\/strong>\u3068\u3059\u308b\u6c7a\u307e\u308a\u306a\u306e\u3067\u3001\u6b21\u306e\u3088\u3046\u306b\u76e3\u67fb\u3057\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\ncontrol_group 'Blog Post Examples' do<br \/>\n  control 'SSH' do<br \/>\n    it 'should be listening on port 22' do<br \/>\n      expect(port(22)).to be_listening<br \/>\n    end<\/p>\n<p>    it 'disables root logins over ssh' do<br \/>\n      expect(file('\/etc\/ssh\/sshd_config').content).to contain('PermitRootLogin no')<br \/>\n    end<br \/>\n  end<br \/>\nend<br \/>\n<\/code><\/p>\n<p><strong>kitchen converge ubuntu<\/strong>\u3092\u518d\u5b9f\u884c\u3059\u308b\u3068\u3001\u691c\u8a3c\u304c\u5931\u6557\u3057\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nStarting audit phase<\/p>\n<p>Blog Post Examples<br \/>\n  SSH<br \/>\n    should be listening on port 22<br \/>\n    disables root logins over ssh (FAILED - 1)<\/p>\n<p>Failures:<\/p>\n<p>  1) Blog Post Examples SSH disables root logins over ssh<br \/>\n     Failure\/Error: expect(file('\/etc\/ssh\/sshd_config').content).to contain('PermitRootLogin no')<br \/>\nexpected File \"\/etc\/ssh\/sshd_config\" to contain \"PermitRootLogin no\"<br \/>\n     # \/tmp\/kitchen\/cache\/cookbooks\/audit-test\/recipes\/default.rb:8:in `block (3 levels) in from_file'<\/p>\n<p>Finished in 0.13067 seconds (files took 0.32089 seconds to load)<br \/>\n2 examples, 1 failure<\/p>\n<p>Failed examples:<\/p>\n<p>rspec  # Blog Post Examples SSH disables root logins over ssh<br \/>\n[2015-04-04T03:29:41+00:00] ERROR: Audit phase failed with error message: Audit phase found failures - 1\/2 controls failed<\/p>\n<p>Audit phase exception:<br \/>\nAudit phase found failures - 1\/2 controls failed<br \/>\n<\/code><\/p>\n<p>\u5931\u6557\u3057\u305f\u3089\u3001\u5931\u6557\u306b\u95a2\u3059\u308b\u524d\u5f8c\u95a2\u4fc2\u306e\u60c5\u5831\u304c\u5f97\u3089\u308c\u307e\u3059\u3002\u5931\u6557\u3057\u305fRecipe\u306e\u884c\u756a\u53f7\u3084\u3001(\u3053\u3053\u3067\u306f\u7701\u7565\u3055\u308c\u3066\u3044\u307e\u3059\u304c)\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3068\u3044\u3063\u305f\u3001\u30c7\u30d0\u30c3\u30b0\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3067\u3059\u3002\u3053\u306e\u30c6\u30b9\u30c8\u3092\u4fee\u6b63\u3059\u308b\u306b\u306f\u3001\u3042\u308b\u3079\u304d\u72b6\u614b\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5358\u7d14\u306b\u4fee\u6b63\u3059\u308b\u304b\u3001\u3057\u304b\u308b\u3079\u304d\u5024\u306b\u8a2d\u5b9a\u3059\u308b\u3088\u3046Chef\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002\u3044\u305a\u308c\u304b\u306e\u65b9\u6cd5\u306b\u3088\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u305f\u5f8c\u3001\u691c\u8a3c\u3092\u30d1\u30b9\u3057\u3001\u3059\u3079\u3066\u304c\u3088\u304f\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u30dd\u30ea\u30b7\u30fc\u3092\u76e3\u67fb\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a<strong>it<\/strong>\u691c\u8a3c\u30eb\u30fc\u30eb\u306b\u591a\u304f\u306e<strong>control_group<\/strong>\u3068<strong>control<\/strong>\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002\u3082\u3057\u591a\u6570\u306e\u691c\u8a3c\u9805\u76ee\u304c\u3042\u308b\u3068\u3001\u5931\u6557\u3057\u305f\u5834\u5408\u306b\u3059\u3079\u3066\u306e\u51fa\u529b\u3092\u8ffd\u3046\u3053\u3068\u304c\u96e3\u3057\u304f\u306a\u308b\u3067\u3057\u3087\u3046\u3002Chef\u306eAudit Mode\u306f<a href=\"http:\/\/rspec.info\/\">RSpec<\/a>\u3092\u30d9\u30fc\u30b9\u3068\u3057\u305f<a href=\"http:\/\/serverspec.org\/\">Serverspec<\/a>\u3092\u30d9\u30fc\u30b9\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u30c7\u30d0\u30c3\u30b0\u306b\u95a2\u4fc2\u3059\u308b<strong>control<\/strong>\u30d6\u30ed\u30c3\u30af\u3084<strong>it<\/strong>\u6587\u306e\u307f\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306eRSpec\u306e<strong>filter_tag<\/strong>\u6a5f\u80fd\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3092\u4f7f\u3046\u306b\u306f\u3001<strong>control_group<\/strong>\u5185\u306b<strong>RSpec.configuration<\/strong>\u30d6\u30ed\u30c3\u30af\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002Audit Mode\u306e\u5b9f\u88c5\u65b9\u5f0f\u306b\u3088\u308a\u3001<strong>control_group<\/strong>\u306e\u5916\u3067\u306f\u8a2d\u5b9a\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u3001root\u30ed\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u3092\u30c7\u30d0\u30c3\u30b0\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\ncontrol_group 'Blog Post Examples' do<br \/>\n  ::RSpec.configure do |c|<br \/>\n    c.filter_run focus: true<br \/>\n  end<\/p>\n<p>  control 'SSH' do<br \/>\n    it 'should be listening on port 22' do<br \/>\n      expect(port(22)).to be_listening<br \/>\n    end<\/p>\n<p>    it 'disables root logins over ssh', focus: true do<br \/>\n      expect(file('\/etc\/ssh\/sshd_config').content).to contain('PermitRootLogin no')<br \/>\n    end<br \/>\n  end<br \/>\nend<br \/>\n<\/code><\/p>\n<p>\u3053\u308c\u306e\u30ab\u30ae\u306f<strong>it<\/strong>\u30d6\u30ed\u30c3\u30af\u306b\u3066<strong>focus: true<\/strong> (\u3082\u3057\u30cf\u30c3\u30b7\u30e5\u304c\u597d\u307f\u306a\u3089 <strong>:focus => true<\/strong>)\u3092\u5f15\u6570\u306b\u6e21\u3057\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306f<strong>control<\/strong>\u30d6\u30ed\u30c3\u30af\u3067\u3082\u6b21\u306e\u3088\u3046\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\ncontrol 'SSH', focus: true do<br \/>\n  it 'does stuff...'<br \/>\nend<br \/>\n<\/code><\/p>\n<p>\u3053\u308c\u3067<strong>kitchen converge ubuntu<\/strong>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u3053\u306e\u691c\u8a3c\u306e\u307f\u3092\u898b\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nStarting audit phase<\/p>\n<p>Blog Post Examples<br \/>\n  SSH<br \/>\n    disables root logins over ssh (FAILED - 1)<\/p>\n<p>Failures:<\/p>\n<p>  1) Blog Post Examples SSH disables root logins over ssh<br \/>\n     Failure\/Error: expect(file('\/etc\/ssh\/sshd_config')content).to contain('PermitRootLogin no')<br \/>\n<\/code><\/p>\n<p>\u3053\u306e\u4f8b\u306f\u5358\u7d14\u3059\u304e\u3066<strong>focus<\/strong>\u3092\u4f7f\u3046\u307e\u3067\u3082\u306a\u3044\u3067\u3059\u304c\u3001\u5b8c\u5168\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30dd\u30ea\u30b7\u30fc\u3092\u78ba\u8a8d\u3059\u308bAudit Mode\u3092\u5b9f\u88c5\u3057\u305f\u3089\u3001\u6570\u5341\u304b\u3089\u6570\u767e\u306eControl\u3068\u306a\u3063\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>Audit Mode\u306f\u307e\u3060\u958b\u767a\u4e2d\u306e\u6a5f\u80fd\u3067\u3059\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u3092\u3055\u307e\u3056\u307e\u306a\u76e3\u67fb\u8981\u6c42\u306b\u9069\u5408\u3055\u305b\u308b\u5fc5\u8981\u306e\u3042\u308b\u7d44\u7e54\u306b\u3068\u3063\u3066\u5927\u5909\u4fa1\u5024\u304c\u3042\u308b\u3068\u8003\u3048\u307e\u3059\u3002\u307e\u305f\u3001Audit Mode\u306fChef\u306eRecipe\u306b\u3088\u308bResource\u306e\u53ce\u675f\u306a\u3057\u3067\u3082\u5b9f\u884c\u3067\u304d\u308b\u306e\u3067\u3001Chef\u3092\u5b9f\u88c5\u3059\u308b\u524d\u306e\u65e2\u5b58\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u72b6\u614b\u3092\u8a55\u4fa1\u3059\u308b\u7528\u9014\u306b\u3082\u3068\u3066\u3082\u6709\u52b9\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u7a3f\u306f Chef Audit Mode Introduction (2015\/05\/06) \u306e\u548c\u8a33\u3067\u3059\u3002 \u5148\u306b\u30a2\u30ca\u30a6\u30f3\u30b9\u3057\u305faudit-cis Cookbook (\u8a33\u6ce8:\u548c\u8a33)\u306a\u3069\u3001Chef\u30d0\u30fc\u30b8\u30e7\u30f312.1.0\u3067\u5c0e\u5165\u3055 [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[36],"tags":[],"class_list":["post-9798","post","type-post","status-publish","format-standard","hentry","category-chef"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[\u548c\u8a33] Chef Audit Mode \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 #getchef #serverspec - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"Chef |\u672c\u7a3f\u306f Chef Audit Mode Introduction (2015\/05\/06) \u306e\u548c\u8a33\u3067\u3059\u3002 \u5148\u306b\u30a2\u30ca\u30a6\u30f3\u30b9\u3057\u305faudit-cis\" \/>\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\/9798\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u548c\u8a33] Chef Audit Mode \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 #getchef #serverspec - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"Chef |\u672c\u7a3f\u306f Chef Audit Mode Introduction (2015\/05\/06) \u306e\u548c\u8a33\u3067\u3059\u3002 \u5148\u306b\u30a2\u30ca\u30a6\u30f3\u30b9\u3057\u305faudit-cis\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/9798\" \/>\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=\"2015-06-23T04:00:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/screenshot.png\" \/>\n\t<meta property=\"og:image:width\" content=\"470\" \/>\n\t<meta property=\"og:image:height\" content=\"394\" \/>\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=\"3\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\\\/9798#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/9798\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"[\u548c\u8a33] Chef Audit Mode \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 #getchef #serverspec\",\"datePublished\":\"2015-06-23T04:00:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/9798\"},\"wordCount\":138,\"articleSection\":[\"Chef\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/9798\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/9798\",\"name\":\"[\u548c\u8a33] Chef Audit Mode \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 #getchef #serverspec - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"datePublished\":\"2015-06-23T04:00:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"Chef |\u672c\u7a3f\u306f Chef Audit Mode Introduction (2015\\\/05\\\/06) \u306e\u548c\u8a33\u3067\u3059\u3002 \u5148\u306b\u30a2\u30ca\u30a6\u30f3\u30b9\u3057\u305faudit-cis\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/9798#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/9798\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/9798#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\":\"[\u548c\u8a33] Chef Audit Mode \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 #getchef #serverspec\"}]},{\"@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":"[\u548c\u8a33] Chef Audit Mode \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 #getchef #serverspec - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"Chef |\u672c\u7a3f\u306f Chef Audit Mode Introduction (2015\/05\/06) \u306e\u548c\u8a33\u3067\u3059\u3002 \u5148\u306b\u30a2\u30ca\u30a6\u30f3\u30b9\u3057\u305faudit-cis","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\/9798","og_locale":"ja_JP","og_type":"article","og_title":"[\u548c\u8a33] Chef Audit Mode \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 #getchef #serverspec - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"Chef |\u672c\u7a3f\u306f Chef Audit Mode Introduction (2015\/05\/06) \u306e\u548c\u8a33\u3067\u3059\u3002 \u5148\u306b\u30a2\u30ca\u30a6\u30f3\u30b9\u3057\u305faudit-cis","og_url":"https:\/\/www.creationline.com\/tech-blog\/9798","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":"2015-06-23T04:00:07+00:00","og_image":[{"width":470,"height":394,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/screenshot.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":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/9798#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/9798"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"[\u548c\u8a33] Chef Audit Mode \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 #getchef #serverspec","datePublished":"2015-06-23T04:00:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/9798"},"wordCount":138,"articleSection":["Chef"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/9798","url":"https:\/\/www.creationline.com\/tech-blog\/9798","name":"[\u548c\u8a33] Chef Audit Mode \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 #getchef #serverspec - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"datePublished":"2015-06-23T04:00:07+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"Chef |\u672c\u7a3f\u306f Chef Audit Mode Introduction (2015\/05\/06) \u306e\u548c\u8a33\u3067\u3059\u3002 \u5148\u306b\u30a2\u30ca\u30a6\u30f3\u30b9\u3057\u305faudit-cis","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/9798#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/9798"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/9798#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":"[\u548c\u8a33] Chef Audit Mode \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 #getchef #serverspec"}]},{"@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\/9798","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=9798"}],"version-history":[{"count":0,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/9798\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=9798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=9798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=9798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}