chefã®metadata.rbã«ã¯ããã®cookbookã«é¢ããæ§ã ãªæ å ±ãæ¸ãã¦ãããã¨ãã§ãã¾ãã attributeã®æ å ± æä¾ããrecipe, resourcesã®ãªã¹ã ãµãã¼ãããplatform cookbookéã®ä¾åé¢ä¿ ãã®ä»: http://docs.opscode.com/essentials_cookbook_metadata.html å®écommunity cookbookã®cookbookãè¦ã¦ã¿ãã¨ãmetadata.rbã«è²ã æ¸ãã¦ããã®ãããã¾ãã ä¾: https://github.com/opscode-cookbooks/mysql/blob/master/metadata.rb ãã®æ å ±ã使ãã¨è²ã ãªä¾¿å©ãªãã¨ãã§ãããããªæ°ããã¾ãã chefã¨å¤é¨ã·ã¹ãã ã®é£æºãèªåãã¹ãã¨ããcookbook viewerã¨ãeditorã¨ãï¼ ä»¥ä¸
Chefã®Attributesã§æ©ãã ãã¨ããã£ãã®ã§ã¡ã¢ãçµè«ããè¨ãã¨ãAttributeãã¡ã¤ã«ã§ã¯ã§ããªãã¦Recipeå ã§å®ç¾©ãããããªãããã 説æã®ããã«ãChefã§æ§ç¯ããã½ããã¦ã§ã¢ã以ä¸ã®ãã£ã¬ã¯ããªæ§é ã§ããã¨ããã /opt +-sample ã»ã»ã»ã¤ã³ã¹ãã¼ã«å ã®ãã¼ã¹ãã£ã¬ã¯ã㪠+-bin +-data ã»ã»ã»ä»®æ³ã®ã½ããã¦ã§ã¢ã®ãã¼ã¿ãã£ã¬ã¯ã㪠+-logs ã»ã»ã»ä»®æ³ã®ã½ããã¦ã§ã¢ã®ãã°åºåãã£ã¬ã¯ã㪠ãã®ã½ããã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«å ããã¼ã¿ãã£ã¬ã¯ããªããã°åºåå ãAttributesã§ãã©ã¡ã¿åãããAttributeãç´ ç´ã«æ¸ãã¨ãããªãã sample/attributes/default.rb default[:sample][:base_dir] = "/opt/sample" default[:sample][:data_dir] = "
This was written by Joshua Timberman. In this post, we will discuss a number of features that can be used in managing systems with Chef, but may be overlooked by some users. We'll also look at some features that are not so commonly used, and may prove helpful. Here's a table of contents: Resources are first class citizens In-place file editing File Checksum comparisons Version matching Encrypting
åä¾ãçã¾ããããè·å ´ã§ã¯äººäºæ¹é©ãè¡ããããã@oranieãããã¹ãã¼ããã©ã³ã¢ããªã¨ã³ã¸ãã¢ã«ãªã£ããã¨ãçæ´»ãæ¿å¤ãã¤ã¤ããä»æ¥ãã®é ã¿ãªãã¾ããããéããã§ããããã ã¯ããä¹ã«ã¬ã¼æ§ã§ããããã®ã§ãã è·å ´ã§ã¯ãã£ã¨chef-server 1æ¬ã§æ¥ã¦ãããããªã®ã§ãããã¡ãã£ã¨åããchef solo+Berkshelfã使ãå§ããããã¦ããç§éããã¾ãã ãã£ã¨ã¿ãªããchef-serverã¨ãå¼·ããããã£ã¦ãã£ã¨ç´ ç´ã«ãªãããã£ããªã¨æã£ã¦ãããã¨ã§ãããã ï¼Chef-serverã使ãæ¹ã§ä¾¿å©ã§ããï¼ ããã¥ã¡ã³ãèªãã ãããã®ãã¨æã£ããããããã ãã©Berkshelfã®ããã¥ã¡ã³ããããã¾ç¶ºéºãããªãã¦å°ãã¨ããï½ ã¡ã ã¼ãã¨ã§ããã£ãã使ãæ¹ãæ´çãã¾ãããããBerkshelfã®ãã¼ã¸ã§ã³ã¯3ã§ãã Berkshelf Berkshelfã¯Cookbookã®ä¾å
ãã®è¨äºã¯æçµæ´æ°ãã1年以ä¸çµéãã¦ãã¾ãã æ°ãã¤ãã¦ãã Chefã®ã¯ã©ã¤ã¢ã³ã(ChefSolo/ChefClient)ãå®è¡ãã¦ãç· ãã®å¦çããªã«ãããè¡ãããã 詳細ã¯ãã¡ãã Chef Docs: About Exception and Report Handlers 2ã¤ã®ãã³ãã© exception handler: ä¾å¤çºçãããªã¬ report handler: æ£å¸¸çµäºãããªã¬ Chef_runã®å®è¡çµæã«ãã£ã¦ããã®ã©ã¡ããä¸æ¹ã®ã¿ããªã¬ããã¾ãã åãç©ãæå®ããã®ãæ§ãã¾ããã ãã³ãã©ä»æ§ ãã³ãã©ã«ã¤ãã¦ã¯ãããªæãã§ãã Chef::Handlerãç¶æ¿ããã¯ã©ã¹ reportã¡ã½ãããæ㤠run_statusãæã£ã¦ããã®ã§ä¸èº«ãé©å½ã«å¦ç ããªã¬åå ãexceptionã§ãreportã§ããreportã¡ã½ãããå®è¡ããã¾ãã ãµã³ãã«ãã³ãã© ã§
ãã®è¨äºã¯æçµæ´æ°ãã1年以ä¸çµéãã¦ãã¾ãã æ°ãã¤ãã¦ãã Infrastructure as Codeã«æåããã¦ããChefã使ãã¨ãªã£ãæãã¡ãã£ã¨æ¢åã®ãã¡ã¤ã«ãå¼ãããã ããªã®ã«cookbookã«fileã¨ãtemplateã¨ãã¡ã³ãã¯ã»ã£ã¦æããããªãã§ããã ãã»ãªexecuteãªã½ã¼ã¹ã§ã¡ãã£ã¨sedã³ãã³ããããâ¦ãã¨æãåã«ã¡ãã£ã¨Chef::Utilãæ¤è¨ãã¾ãããã 対象ãã¡ã¤ã«ã¨ã¬ã·ã ãµã³ãã«ã¨ãã¦ãããª2è¡ã§åºæ¥ããã¡ã¤ã«ã2ã¤ç¨æãã¾ããã
é¡ä¼¼ã®ã½ããã¦ã§ã¢ã¨ãã¦ãPuppet ã Ansible ã¨ãã£ããã®ãããã¾ãããããã£ãã¤ã³ãã©èªååã¾ããã®ã½ããã¦ã§ã¢ã«ã¤ãã¦ã¯ãããã®å®®ä¸ããã® ã¤ã³ãã©ç³»æè¡ã®æµã ãåèã«ãªãã¾ãã Chef in ã°ãªã¼ ãã¦ãã°ãªã¼ã§ã®Chefã¾ããã®æ§æããç´¹ä»ãã¾ããä¸å³ãå ¨ä½ã®æ§æã§ãã éçºç°å¢ éçºã¯åå人ã®ãã·ã³ä¸ã§ä»®æ³ãã·ã³ãç«ã¡ä¸ãã¦è¡ãªã£ã¦ãã¾ããã¯ãã¯ããã¯ã®éçºã§ã¯ãã¯ãã¯ããã¯ãéçºãã人ã serverspec ã§ãã¹ããæ¸ãããã«ãã¦ãã¦ãæ§ç¯å¾ã®ãµã¼ããæå¾ éãåããã¨ããã¹ããã¦ãã¾ããä¸ã¤ã®ã¯ãã¯ããã¯ã§ãè¨å®å¤ãªã©ã®æ¡ä»¶ã«ãã£ã¦åä½ãå¤ãã£ã¦ãããããtest-kitchen ãç¨ãã¦è¤æ°ã®æ¡ä»¶ï¼ã©ã³ãªã¹ãããã¼ãã®ã¢ããªãã¥ã¼ãï¼ä»¥ä¸ããã¢ããªãã¥ã¼ããï¼ãªã©ã®çµã¿åããï¼ã§ãã¹ããè¡ã£ã¦ãã¾ãã ã¾ããä¸é¨ä»®æ³ãã·ã³ã使ãå¿ è¦ããªããã¹ãï¼att
ã©ãã§ããã¤ã³ãã©æ± ç°ï¼@mikedaï¼ã§ãã ä»æ¥ã¯ãNaviPlusã§ã¯ã©ããããµãã«ãµã¼ãæ§ç¯ä½æ¥ããã¦ããã®ããã«ã¤ãã¦è©±ãã¾ãã â»ç·¨éé·æ³¨ï¼ä»¥ä¸ã¯è¨äºå·çæç¹ã®ãã®ã§ããå°æ¥çã«å¼ç¤¾ããã®æé ã使ç¨ãããã¨ãä¿è¨¼ãããã®ã§ã¯ããã¾ããã ã¾ãNaviPlusã§ã¯ä»ã®ã¨ããã¯ã©ã¦ãã¯å©ç¨ãã¦ããªãã®ã§ã ãµã¼ãæ§ç¯ã¯åºæ¬çã«ä»¥ä¸ã®ã©ã£ã¡ãã«ãªãã¾ãã ç©çãµã¼ã KVMã®ã²ã¹ã OSã¯CentOSã®6ç³»ã§ãã ä½æ¥ã¯ä»¥ä¸ã®æè¡ã使ã£ã¦èªååãã¦ãã¾ãã PXE Boot + kickstart chef-solo ããã§ã¯ãã£ãããã¶ãã¯ãªã¨ããå®éã®æ§ç¯æé ããã æ§ç¯æé ç©çãµã¼ãã¨VMã«åãã¦èª¬æãã¾ãã äºåã«ãã¼ã«ã«DNSã®ç»é²ã¨ãchefã®nodeå®ç¾©ã®ä½æã ããã£ã¦ããã¾ãã ç©çãµã¼ã ã¾ãã¯ç©çãµã¼ãã®æ§ç¯æé ã§ãã 以ä¸ã®ä½æ¥ã¯ä¸¦åå®è¡å¯è½ã ã¾ãiLO/i
Cookbookã®å ±éåï¼libraryï¼ ååã¨ã³ããªã§ã¯recipeã¨definitionãç¨ããCookbookã®å ±éåã®æé ãç´¹ä»ãã¾ããã ä»åã¯Chefã®ããã²ã¨ã¤ã®å ±éåã®ä»çµã¿ã§ããlibraryãç´¹ä»ãã¾ãã libraryã£ã¦ libraryã¯Rubyã³ã¼ããç¨ãã¦ãChefã«æ°ããã¯ã©ã¹ãã¡ã½ããã追å ãããã¨ãã§ããä»çµã¿ã§ãã libraryã¯ã¯ãã¯ããã¯å ã®libraries/library_name.rbã«å®ç¾©ãããã¨ã§èªåã§èªã¿è¾¼ã¾ããrecipes, attributes, file, definitions, providers, definitionsã§å©ç¨ãããã¨ãã§ãã¾ãã libraryã®ç¨éã¯ä»¥ä¸ã®æ§ãªãã®ãããã¾ãã ãã¡ã¤ã«ã«æ ¼ç´ããã¦ããå±æ§å¤ã¸ã®ã¢ã¯ã»ã¹ ã«ã¼ãã®ãããªããã°ã©ã ãã¯ããã¯ã®å©ç¨ Chefã®ã¬ã·ãããç´æ¥å¼ã³åºãããããª
å®è·µLWRPãHTTPèªè¨¼ç¨ãã¡ã¤ã«(htpasswd,htdigest)ãChefã®ãªã½ã¼ã¹ã¨ãã¦ç®¡çãã part.1 of 3Rubycheflwrp ãã®è¨äºã¯æçµæ´æ°ãã1年以ä¸çµéãã¦ãã¾ãã æ°ãã¤ãã¦ãã å®è·µOpscode Chefã·ãªã¼ãºã LWRPã使ãã¨ä»»æã®ãªã½ã¼ã¹ãããªã»ããã®Chefãªã½ã¼ã¹ç¾¤ã¨åãããã«ã¬ã·ãã«è¨è¿°ãããã¨ãã§ãã¾ãã ããã«ãããä»ã®ãªã½ã¼ã¹ã¨åãããã«Chefã«ããåæ管çããããããªãã¾ããã¤ã¾ãã¯åªçæ§ã»ããã¯ã¢ããã»ãã°åºåãããã¦Why-Runã«å¯¾å¿ã§ããã¨ã æåã«è£è¶³ãã¦ããã¨ãä½ã§ãããã§ãChefã§ããã°è¯ãã¨ãããã®ã§ã¯ããã¾ããããã 使ããªãChefããããããã§ãªããã°SSHã§ã³ãã³ãå©ãã¦æ¥ãã»ãããã»ã©æå ãå®å ¨ã§ãã è¨äºä¸ã®Cookbookã¨ChefSoloè¨å®ä¸å¼ã¯ãã¡ãã«å ¬éãã¦ãã¾ãã https://
I'm trying to write a wrapper cookbook for the chef graphite repo In the recipe carbon.rb, the following lines occur: template "#{node['graphite']['base_dir']}/conf/storage-schemas.conf" do owner node['apache']['user'] group node['apache']['group'] end where in templates/default/storage-schemas.conf there is a storage-schemas.conf file that is not to my liking. I can edit the file inline and achie
ã¡ãã£ã¨åã«ãªãªã¼ã¹ããã Berkshelf 3ãããBerkshelf APIã¨ããã¤ã³ããã¯ã¹ãµã¼ãã¼ããã¯ãã¯ããã¯ã®æ å ±ãå¾ãããã«ãªãã¾ããã https://github.com/berkshelf/berkshelf/wiki/2.x-to-3.0-Upgrade-Guide https://github.com/berkshelf/berkshelf-api Berkshelf APIã使ãã¨ãå¤é¨ã«å ¬éãã¦ããªãã¯ãã¯ããã¯ãBerksfileã§æå®ããéã®è¨è¿°ãç°¡æ½ã«ãªãã¾ãã ã¾ã æ¥ãæµ ãããããBerkshelf API ï¼ github:e ã®æ å ±ãå°ãªãã®ã§ãåå¿é²ãå ¼ãã¦æ®ãã¦ããã¾ãã ç°å¢ã¯ä»¥ä¸ã®ã¨ããã§ãã berkshelf (3.1.3) berkshelf-api (2.0.0) Berkshelf APIãå¿ è¦ãªçç± Berksfile 㧠c
The new Supermarket site became the official community site on Monday, July 7th, 2014 at 12:15 PM PDT. Shortly after the cutover we were made aware that the change broke compatibility with Berkshelf v2.x. This interrupted peopleâs ability to get work done and we are sorry. Even though Berkshelf v2.x is considered deprecated by its authors, we took this outage as seriously as any other. In this pos
ä»å¹´3æã«å ¥éChef Soloãæ¸ããæç¹ã§ã¯ãChef Solo 㯠Environments ã®æ©è½ããµãã¼ããã¦ãªãã£ããã解説ã¯çç¥ãã¾ããã ãã®å¾ãChef ã¯ãã¼ã¸ã§ã³ 11.6.0 (ç¾å¨ã¯ 11.8.2) 㧠Chef Solo ã§ã® Environments ããµãã¼ãããå ¥éChef Solo ã§æ¨è¦ãã¦ãã knife-solo ã 10ææ«ã«ãªãªã¼ã¹ããã 0.4.0 ãã Environments ããµãã¼ããã¾ãããã¨ããããã§ãç¾ç¶ Chef 㨠knife-solo ãææ°çã§ããã° Environments ãå©ç¨ãããã¨ãã§ãã¾ãã ãã¾ãã¾ä»æãã¤ãã¦ããä»äºã§ Environments ã®ãã¨ã調ã¹ãã®ã§åå¿é²çã«è¨ãã¦ããã¾ãã Environments ã¨ã¯ Chef ã® Environments ã¯ãä¾ãã° development ã pr
pfcasualã§ä»å ¥ãããã¿ããã¨ã«ãChefç°å¢ãå·æ°ããã®ã§ãå¿ããªããã¡ã«ã¡ã¢ãã¦ããã ããããã®åé¡æèã¯ã ç¾ç¶ã®cookbookã«ãã¹ããå ¨ããªãã㨠ãã¹ãã®æ¬ è½ãåå ã§cookbookã®å¤æ´ã«å¯¾ãã¦åå«ã«ãªã£ã¦ãã¾ã£ã¦ããã㨠Chefã®ç解ã»ãã¹ãã®æ¬ è½ã»ç ©éãªæé ã«ããThe Lone Wolf Chefã«ãªã£ã¦ãã¾ã£ã¦ããã㨠ã解決ãããã£ãã æ¹éã¨ãã¦ã¯ChefConf 2013: Beginner Chef Antipatternsãåèã«ãããã¨ã«ããã ããããchef-repo *1ã¯ããã¦cookbookãã¨ã«ãªãã¸ããªãåãã åãããªãã¸ããªã®ä¾åé¢ä¿ã¯Berkshelfã§è§£æ±º ãã¼ã«ã«ã§ã¯Vagrant + vagrant-berkshelfã使ã£ã¦ç¢ºèª minitest-handlerã§ãã¹ããæ¸ã Chefã¯ææ°ã®11ã«ãã å人ã®wor
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}