fabric ã® sudo + mv åé¡ãput(use_sudo=True) ã§è¡ãã模æ§ãæãã¦ãã ãã£ã @max747 @fatrow ãããã¨ããããã¾ãã
æ¬é ã¯ChefConf 2013: Beginner Chef Antipatternsãå訳ãããã®ã§ãã ã¯ããã« ãã Chefã®å¦ç¿ã¯å¤§å¤ Chefã®å¦ç¿æ²ç·ã¯æ¥å¾é ã¨è¨ããã¦ããã®ã§ãOpscodeã§ã¯ç·©åããããã®ã³ã³ãã³ããè²ã æºåãã¦ãã¾ãã learnchef.com docs.opscode.com ãããªãã¯/ãã©ã¤ãã¼ã ãã¬ã¼ãã³ã° Podcasts (Food Fight Show ãªã©) åå°ã®ã¦ã¼ã¶ã°ã«ã¼ã (訳注: æ¥æ¬ãªã #opschef_ja ) ChefConf! (訳注: ãã㯠ChefConf 2013 ã§è¡ãããã»ãã·ã§ã³ãªã®ã§) ããã§ããæ£ãããã¨ããã£ã¦ããã®ãç¥ãã®ã¯é£ãããä½ãééã£ããã¨ããã£ã¦ããã®ãç¥ãã®ã¯ããã«é£ãããã®ã§ããã³ãã¥ããã£ã®ä¸ã§ããã¹ããã©ã¯ãã£ã¹ãã¯å¸¸ã«é²åãã¦ãã¾ããã ãã¹ããã©ã¯ãã£ã¹ã«ã¤ãã¦ãã£
誰ã®ããã®ææ¸ï¼ ãªã¼ãã¼ãååãããVagrant, Chef ã使ãã¨ç°å¢æ§ç¯æ¥½ã¡ãã ãããããããã®ãã¡ã¤ã«ç¨æã㦠vagrant up ãã¦ã¿ãªã¼ãã¨è¨ããããã¾ã¾ã«ç°å¢æ§ç¯ãã¦ã¿ãã¯ããããä½ãªã®ãããããã£ã¦ããªã人ã Vagrant, Chef ã¨çµã¿åãã㦠VirtualBox ã使ã£ã¦ããã®ã« VirtualBox ã®GUI ããèµ·åãçµäºããã¦ãã人ã ã³ãã³ãã©ã¤ã³ã§æ§ç¯ããããæ¹ã¯ããããè¦ãããããããã®ãã¼ã«ã®å½¹å²ãããã£ã¦ããªã人ã 2é±éåã®èªåã æ¦è¦ å³ã«ã¾ã¨ãã¦ã¿ã¾ãã æ¡å¤§ãã¦è¡¨ç¤º æ¡å¤§ãã¦è¡¨ç¤º ã¡ãã£ã¨è§£èª¬ 1, 2ã¶æåã«ååãã Vagrant 㨠Chef ã使ãã¨ä¾¿å©ãªãã¨ãæãã£ãã®ã§ãããä¸èº«ã«ã¤ãã¦ã¯ããããã£ã¦ãã¾ããã§ããããã®1é±éãVagrant 㨠Chef ã¨æ ¼éãã¦ã¿ã¦ãç解ãããã¨ãã¾ã¨ããã®ãä¸å³ã§ãã Vagr
å ¥éãã¦ã¿ãææ³ãé©å½ã«ç®æ¡æ¸ãã§ã Opscode Communityã®cookbookã¤ã³ãã¼ãããã®ã«ç»é²ä¸è¦ã£ã½ã cookbookã¤ã³ãã¼ãããã¨ã¬ãã¸ããªã«åæã«ã³ãããããã©ããããã©ã®ãã©ã³ãã§ä½æ¥ãã¦ããããæ§ããªãã«masterãã©ã³ãã«checkoutãã¦ã³ãããããã®ã§å ´åã«ãã£ã¦ã¯æ²æ¨ãªäºã«ãªã æ¢ã«è¨å®ã¨ãã¹ã¯ãªãããå ¥ãã¦ããã¬ãã¸ããªããã£ã¦ãchefã«ç§»è¡ãããããªã¼ã¨ãã©ã³ãåã£ã¦ä½æ¥ãã¦ãå ´åã¨ã ãµã³ãã«ã§Nginxã®ã¬ã·ããæ¸ãã¦ããã©ãopscodeã®nginxã¬ã·ããããã®ã§ãã®ç¨åº¦ãªãèªåã§ä½ãã¾ã§ãç¡ãã§ããã¨ãã©ãã¼ããã£ãã»ããããããã apt / yumã¬ã·ãã¯ç´¹ä»ãã¦ãããã»ãã便å©ã㪠ãµã¼ããã¼ãã£ã¼ã®ã¯ä¿¡ç¨ãã¹ããªã®ãå¾®å¦ã ãã©ãopscodeæä¾ã®ã¬ã·ãã¯ãããªãã«ä¿¡ç¨ãã¦ä½¿ã£ã¦è¯ãããã ããèªåã§æ¸ããã使ãåããã£ã¦ã
2013å¹´06æ12æ¥15:15 ã«ãã´ãª vagrant + chef solo + serverspecã§ãã¹ãé§åãµã¼ãæ§ç¯ã試ãã¦ã¿ããã¹ã ããã«ã¡ã¯ï¼æ ªå¼ä¼ç¤¾PeX ã®é«æ©ã§ãã èªåã¯ãµã¼ãã¢ããªã¨ã³ã¸ãã¢ã§ã¯ããã¾ãããProvisioning Frameworks Casual Talksãªã©ã®å½±é¿ãåãã¦æè¿ã¯Provisioning Frameworkåãå¼·åä¸ã§ãã Provisioningã¨ã¯ãµã¼ãããµã¼ãã¹ãéå§ã§ããããã«è¨å®ããäºã§ãProvisioning Frameworkã¯ãµã¼ãã®è¨å®ãèªååããããã®ãã¬ã¼ã ã¯ã¼ã¯(chefãpuppet)ã®äºã¨ãªãã¾ãã æ¬è¨äºã§ã¯vagrantã§ä½æããä»®æ³ç°å¢ã«å¯¾ãã¦ãchefã§ãµã¼ãè¨å®ãè¡ãSymfony2ã®welcomeç»é¢ã表示ããäºãè¡ãã¾ããserverspecã§ãã¹ãã失æããäºã確èªããå¾ã«ãµã¼
ãã°ããå®è£ ããããã®æ¦ç¥ã¨ãã¯ããã¯2024 / speed is power! 2024 #techramen24conf #shoyu
2024å¹´4æ1æ¥ãããSupershipæ ªå¼ä¼ç¤¾ã¯è¦ªä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹æ ªå¼ä¼ç¤¾ã«å¸ååä½µããã¾ããã åä½µã«ä¼´ããåç¶ä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹ã¯ç¤¾åãSupershipã«å¤æ´ããæ°ããªçµå¶ä½å¶ãçºè¶³ãã¾ãããæ¬ä»¶ã«é¢ãã詳細ã¯ããã¬ã¹ãªãªã¼ã¹ãã確èªãã ããã 2024å¹´4æ1æ¥ãããSupershipæ ªå¼ä¼ç¤¾ã¯è¦ªä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹æ ªå¼ä¼ç¤¾ã«å¸ååä½µããã¾ããã åä½µã«ä¼´ããåç¶ä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹ã¯ç¤¾åãSupershipã«å¤æ´ããæ°ããªçµå¶ä½å¶ãçºè¶³ãã¾ããã æ¬ä»¶ã«é¢ãã詳細ã¯ããã¬ã¹ãªãªã¼ã¹ãã確èªãã ããã
解ãã¥ããclient chefã®è¦ç´ ã§clientã¨nodeãããã¾ãã ãããã調ã¹ãä¸ã§ããã®ãã¨ã解説ãã¦ããã¨ãããããã®ã§ãããèªåã¯ä»¥ä¸ã®ããã«è§£éãã¦ãã¾ããã Node = 管ç対象ãµã¼ã client = Chef Serverã¨ããåãããã¤ã³ã¿ãã§ã¼ã¹ ãã®è§£éã§æ¦ã誤ãã¯ç¡ããããªãã§ãããä¸ã¤å¤§ããåéãããã¦ããã¨ãããããã¾ããã Clientã®æµç¨ã¯åºæ¥ãªã ã©ããããã¨ãã¨ããã¨ãä¸ã¤ã®clientããã£ã¨è¨ãã°Clientã®Private Keyãè¤æ°ã®ãµã¼ãã«é å¸ãã¦ãNodeã¯å¢ãããã©ãClientã¯å¢ããªããã¨ãããã¨ã¯åºæ¥ãªãããªæãã§ãã chefã使ãçç±ã¯é¢ãããµã¼ãã®å°æ°ãå¢ãã¦æ¥ã¦ç®¡çã大å¤ãªã®ã§ãä¸ã¤ä¾ãã°ãforServerãã¨ããclientãä½ã£ã¦ããã¦ããã®private keyãchef管çä¸ã«å ¥ããµã¼ãã«ç½®ãã¦ã
ååã¯ãChef Client ãã¤ã³ã¹ãã¼ã«ãããã¼ãä¸ãããç°¡å㪠Cookbook ãå®è¡ããã¨ããã¾ã§è©¦ãã¾ããã ä»åã¯æ¯è¼çãã使ããããªãã¦ã¼ã¶ä½æãè¡ã Cookbook ã試ãã¦ã¿ããã¨æãã¾ãã GitHub ããã¦ã¼ã¶ä½æã® Cookbook ãã¯ãã¼ã³ opscode ã® GitHub ãã users ã¨ãã Cookbook ãã¯ãã¼ã³ãã¾ãã $ cd ~/chef/chef-repo/cookbooks $ git clone git@github.com:opscode-cookbooks/users.git $ cd users ãã£ã¬ã¯ããªæ§æã¯ãããªæãã $ tree . âââ CHANGELOG.md âââ CONTRIBUTING âââ LICENSE âââ README.md âââ metadata.rb âââ providers
åå ã¯ãChef Server ã®ã¤ã³ã¹ãã¼ã«ã¨ãWorkstation ã®ã»ããã¢ããã¾ã§è¡ãã¾ããã ä»åã¯ãNode ã Chef Server ã«ç»é²ã㦠Recipe ãå®è¡ããã¨ããã¾ã§ãã£ã¦ã¿ããã¨æãã¾ãã Node ã®æºå æ°ãã« Node ç¨ã® EC2 ã¤ã³ã¹ã¿ã³ã¹ãç«ã¡ä¸ããã»ãã¥ãªãã£ã°ã«ã¼ã㧠ssh ã許å¯ãã¦ããã¾ãã OS 㯠Amazon Linuxãã¤ã³ã¹ã¿ã³ã¹ã¿ã¤ã㯠t1.micro ã§è©¦ãã¾ããã Chef Client ã®ã¤ã³ã¹ãã¼ã« EC2 ã«ãã°ã¤ã³ããããæåã« Chef Client ãã¤ã³ã¹ãã¼ã«ãã¾ãã ååã¯ãRubyGems ã使ã£ã¦ã¤ã³ã¹ãã¼ã«ãè¡ãã¾ãããã以ä¸ã®æ¹å¼ã§ãã¤ã³ã¹ãã¼ã«å¯è½ã§ãã $ sudo true && curl -L https://www.opscode.com/chef/install.sh | s
Cookbookæ å ± å称: apt éçºå : opscode Opscode site: http://community.opscode.com/cookbooks/apt Source: github.com/opscode-cookbooks/apt è©ä¾¡ãããã¼ã¸ã§ã³: v1.7.0 cookbook[apt]ã®ã¬ã·ãç·¨ãLWRPç·¨ã¯ãã¡ãã æ¦è¦ debian/ubuntuã®ããã±ã¼ã¸ãªãã¸ããªç®¡çã·ã¹ãã ã®aptã®è¨å®ãè¡ãã 解説 ubuntuç³»ã§ã¯ã§ããã ãå ¥ãã¦ãããã»ãããããã¬ã·ãã®å½¹å²ã¯ããã±ã¼ã¸ãªã¹ãã®æ´æ°ã¨ããã£ãã·ã¥ãµã¼ã/ã¯ã©ã¤ã¢ã³ãã®ã»ããã¢ããã ãã£ãã·ã¥ãµã¼ãã®ã¯ã©ã¤ã¢ã³ãè¨å®ã¯ChefServerã®Searchã使ãåèã«ãªãã¾ãã ãµã¼ãã®ã¤ã³ãã³ããªãèªåéç´ãã¦ããã¨æ©æµãããã¾ããã¨ããä¾ã®ã²ã¨ã¤ã ã¡ãªã¿ã«ãµã¼ããBootstrapãã¤
Cookbookæ å ± å称: apt éçºå : opscode Opscode site: http://community.opscode.com/cookbooks/apt Source: github.com/opscode-cookbooks/apt è©ä¾¡ãããã¼ã¸ã§ã³: v1.7.0 cookbook[apt]ã®LWRPç·¨ãã¬ã·ãç·¨ã¯ãã¡ãã æ¦è¦ debian/ubuntuã®ããã±ã¼ã¸ãªãã¸ããªç®¡çã·ã¹ãã ã®aptã®è¨å®ãè¡ãã 解説 cookbook[apt]ã®æã¤LWRPã«ã¤ãã¦èª¬æãä»»æã®ãªãã¸ããªè¿½å ãããã±ã¼ã¸ã®pinningãè¨å®ã§ããã LWRPã¯Cookbookå+Resourceåã§æå®ã§ããä»»æã®ã¬ã·ãå ã§ä½¿ãã¾ããå©ç¨ãããResourceããã¤Cookbookãrun_listã«å ¥ãã¦ãããä»ã®Cookbookãä½ãæã«å¼ã³åºãã¾ãã apt_repos
å ¥éChef Solo - Infrastructure as Code ãèªãã§è©¦ããäºã®ã¡ã¢ã§ãã chef soleã§vagrantã§ä½æãããµã¼ãã¼ã«nginxãåããã¾ã§ã®ã¡ã¢ã§ãã ã¬ããã·ãããª(ãããã³) > ã¯ãã¯ããã㯠> ã¬ã·ãã 説æ
chef-soloã§ç°å¢è¨å®Â¶ chefã¯ãµã¼ãæ§æ管çãã¼ã«ã§ããæ§æãè¨å®ãã¡ã¤ã«ã¨ãã¦æ¸ãæ®ãã¦ããã chefãå®è¡ããã°ãã®ã¨ããã«ãµã¼ããæ§ç¯ãã¦ããã¾ããã¾ããä½åº¦å®è¡ã ã¦ãåãããã«æ§ç¯ãã¦ããã¾ããããµã¼ãæ§æãããã£ãã¨ãã¦ãä¿®æ£ã㦠ããã¾ãã ã¨ããããã§ãchefã使ã£ã¦ã¿ãã®ã§ãã®ã¡ã¢ã äºåæºå¶ chefã¯rubyã§ä½ããã¦ãã¾ãã®ã§ãrubyãå¿ è¦ã§ããã¾ããchefèªä½ã®ã¤ã³ã¹ ãã¼ã«ã«ã¯gemã楽ã¡ãã§ãã chefã«ã¯ãµã¼ããªã©ãããã¾ãããä»åã¯åç¬ã§å®è¡ã§ãã chef-solo ã®ã¿ ã使ãã¾ãã éå½¢ä½æ¶ å¾è¿°ããcookbookãªã©ã®éå½¢ãä½ã£ã¦ãããRakefileãopscodeã®ãµã¤ãã«ã ãã¾ãã githubã®opscodeããåã£ã¦ãã¾ãã ãã®æ§æããã®ã¾ã¾ä½¿ãã®ãåã§ããã¾ããããã«ããRakefileã使ããã¨ã§ã c
Jenkins ããããã¨æ¯ãããã¨åæ¥ããã¾ããã£ãã®ã§åå¿é²ãæ®ãã¦ããã ããããã£ãã®ã¯ Chef ã§æ§ç¯ãããµã¼ãã¼ã Jenkins 㧠CI ãããã¨ãããã®ããã®ã¨ããµã¼ãã¼ã¯ãã¹ããçµãã度ã«ç ´æ£ãã¦ããã¹ãéå§æã«å度çã£æ°ãªç¶æ ããç«ã¡ä¸ãããã(ãããããµã¼ãã¼ãå£ãã¦ä½ã£ã¦ã¨ãããã¹ãã¯ãªãã¨ããååã§å¼ã°ããã®ã ãã?) ä»®æ³ãµã¼ãã¼ãç ´æ£/ä½æãããã°ã©ããã«ã«ããã®ã¯ãã¡ãã Vagrant ãããã¸ã§ãã³ã°ã¯ Chef Chef ã®ç°å¢ãæ´ããã®ã« knife-solo 0.3.0.pre3 ãã¹ã㯠serverspec ã³ã¼ã㯠Github ã«ä¸ãã (https://github.com/naoya/jenkins-vagrant-test) CI 㯠Jenkins ã¨ããæ§æã«ãªã£ã¦ãããã²ã¨ã¾ã Jenkins ã Vagrant ã¯ãã¼ã«ã«
æè¿ã®Chefã®ãã¬ã¤ã¯ã§ããµã¼ãã®æ§ç¯ãèªååã§ã¨ããæ½®æµã«ãªã£ã¦ãã¾ãããããªä¸ã§ãã©ãã©è¦åããããã®ããã¢ããªã®ãªãªã¼ã¹ãChefã§ã¨ããèãæ¹ã§ããç§ã¯å¾®å¦ã«éãã®ã§ã¯ãªãããªãã¨æã£ã¦ããã®ã§ãã¡ãã£ã¨èããæ´çãã¦ã¿ã¾ãããä½µãã¦Capistranoã®ç´¹ä»ããã¦ã¿ã¾ãã Chefã®å½¹å² ã¾ãChefã«ã¤ãã¦ã§ããChefã®å½¹å²ã¨ãã¦ã¯ããµã¼ãã®ç¶æ ã管çãããã®ã§ããããã§è¨ããµã¼ãã®ç¶æ ã¨ããã®ã¯ãå種ããã«ã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«ç¶æ ï¼è¨å®ã§ãããããããµã¼ãæ§æã§ãããã¾ãChefã使ãæ大ã®ã¡ãªããã¯ãéçºç°å¢ãã¹ãã¼ã¸ã³ã°ç°å¢ãæ¬çªç°å¢ã¨å ¨ã¦ã®ç°å¢ãåãã¹ã¯ãªããã§æ§ç¯ããã®ã§ãæä½æ¥ã«ãããã¹çã«ããå¾®å¦ãªå·®ç°ãçºçããªããªããã¨ã§ãã ãã¦ããã§åé¡ã«ãªãã®ãããµã¼ãä¸ã®ã¢ããªã±ã¼ã·ã§ã³ã®ã³ã¼ãããã¼ã¿ãã¼ã¹ã®ãã¼ãã«å®ç¾©ã¯ããµã¼ãã®ç¶æ ã«å ¥ãã®ãã¨ããç¹ã§ããå ¥ã
2013/02/18 2013/02/18 14:41 Vagrant + chef-solo 使ã£ã¦ nginx + sinatra 㧠HelloWorld! Markdown æé æ¸ã¹ã©ã¹ã©æ¸ãã¦ã¾ãã¤ããã¼ãã£ãï¼ã¨ãè¨ã£ã¦ããã¤èª°ã ï¼ ( ããã ï¼ ) Vagrant + chef-solo ã§Â  nginx + sinatra 㧠HelloWorld! ãã¦ã¿ã¾ããã amazedkoumei / vagrant-centos-nginx_sinatra ãã£ããããããã¯ãã¡ãã®ã¨ã³ã㪠Vagrant - naoyaã®ã¯ã¦ãªãã¤ã¢ãªã¼ ã¡ãã£ã¨ãããã¹ãã®ããã«å£ãã¦ãããç°å¢ã欲ããã¨ããã®ã«ããã¡ãã使ãã¾ãããæ¹ã ãè¦ã¦ããã¨çµç¹ã®ä¸ã§æ¨æºåãããéçºç°å¢ãå ¨éçºè ã«é å¸ããã¨ããªããã«ã使ããã¦ããããã§ãããèªå㯠EC2 ã§ãã¹ããã¦ããã¹ãã¼ã¸ã³ã°ãµã¼ãã¼ã¸
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}