Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
![Chef 㧠Amazon VPC å
ã«é
ç½®ããã¤ã³ã¹ã¿ã³ã¹ã® node["ec2"] ã nil ã«ãªã£ã¦ãã¾ãå ´å - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/c015f7dd77862a167aa846d2f0bbd1cdbb96f5c6/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fqiita-user-contents.imgix.net%252Fhttps%25253A%25252F%25252Fcdn.qiita.com%25252Fassets%25252Fpublic%25252Farticle-ogp-background-afbab5eb44e0b055cce1258705637a91.png%253Fixlib%253Drb-4.0.0%2526w%253D1200%2526blend64%253DaHR0cHM6Ly9xaWl0YS11c2VyLXByb2ZpbGUtaW1hZ2VzLmltZ2l4Lm5ldC9odHRwcyUzQSUyRiUyRnFpaXRhLWltYWdlLXN0b3JlLnMzLmFtYXpvbmF3cy5jb20lMkYwJTJGNDE5MSUyRnByb2ZpbGUtaW1hZ2VzJTJGMTQ4MzUwMDY2OD9peGxpYj1yYi00LjAuMCZhcj0xJTNBMSZmaXQ9Y3JvcCZtYXNrPWVsbGlwc2UmZm09cG5nMzImcz0yNDU2OWI1YmI1MzhmYzkzYzY1MmJmMGJiYTlmOTcyOA%2526blend-x%253D120%2526blend-y%253D467%2526blend-w%253D82%2526blend-h%253D82%2526blend-mode%253Dnormal%2526s%253D287f18a52bd7b2ab064494f0985eae2c%3Fixlib%3Drb-4.0.0%26w%3D1200%26fm%3Djpg%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk2MCZoPTMyNCZ0eHQ9Q2hlZiUyMCVFMyU4MSVBNyUyMEFtYXpvbiUyMFZQQyUyMCVFNSU4NiU4NSVFMyU4MSVBQiVFOSU4NSU4RCVFNyVCRCVBRSVFMyU4MSU5NyVFMyU4MSU5RiVFMyU4MiVBNCVFMyU4MyVCMyVFMyU4MiVCOSVFMyU4MiVCRiVFMyU4MyVCMyVFMyU4MiVCOSVFMyU4MSVBRSUyMG5vZGUlNUIlMjJlYzIlMjIlNUQlMjAlRTMlODElOEMlMjBuaWwlMjAlRTMlODElQUIlRTMlODElQUElRTMlODElQTMlRTMlODElQTYlRTMlODElOTclRTMlODElQkUlRTMlODElODYlRTUlQTAlQjQlRTUlOTAlODgmdHh0LWFsaWduPWxlZnQlMkN0b3AmdHh0LWNvbG9yPSUyMzFFMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT01NiZ0eHQtcGFkPTAmcz03Njk0M2Y4MmQ3MDVhNGU4YTk4Yzk2NzFjY2JmZDg1OQ%26mark-x%3D120%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTgzOCZoPTU4JnR4dD0lNDBsYWJvY2hvJnR4dC1jb2xvcj0lMjMxRTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzYmdHh0LXBhZD0wJnM9YjZiNzRjMTU1NTZlZTZlZGQxZjRkMmZhNjI5Y2JmODg%26blend-x%3D242%26blend-y%3D480%26blend-w%3D838%26blend-h%3D46%26blend-fit%3Dcrop%26blend-crop%3Dleft%252Cbottom%26blend-mode%3Dnormal%26s%3D4f4d74eda55a79b0c0e56d30568c60e2)
ä»å¹´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
Chef 11 has come out, and possibly broken a bunch of your carefully crafted cookbooks. How are you going to test them, though? Here's one way, using chef-solo via Vagrant. Requirements RVM (or rbenv, but this will use RVM) You're using RVM or rbenv to manage your rubies, right? If not, you should be. Virtualbox some cookbooks you wrote and want to test Set it up We don't want to mess up our carefu
This is an advanced Chef guide for application developers that want to use Chef to configure and deploy their software. This guide will walk you through setting up an OSX machine with a suitable development environment and then writing a new Chef Cookbook for a java web application that youâve been working on called myface. You will be introduced to Vagrant and VirtualBox which will be used in con
ããã«ã¡ã¯ãæè¤ã§ãã Chefã§æ§ç¯ã®èªååãã§ããäºã¯ããã£ã¦ãã¦ããCookbookãã©ãè¨è¿°ããã°ããã®ããã³ã¨ããªãå ´åãããã¾ãããããªã¨ãã«ä½¿ããããªã³ããããã¯ã¢ãããã¦ã¿ã¾ããã ãChefã使ã£ã¦ã¿ãããã©ãã¾ãã¡ã¨ã£ãããããããã¥ãããããããããã¯ã©ããããã ï¼ãããããªã¨ãã«ã覧é ããã幸ãã§ãã â»Chef 10.16.2ã§ç¢ºèªãã¾ãããã¾ããRHEL, CentOSã§å©ç¨ããäºãåæã«èª¬æãã¦ãã¾ãã Cookbookã«å梱ããRPMãã¡ã¤ã«ããç´æ¥ã¤ã³ã¹ãã¼ã«ãã cookbook_fileã¨packageãªã½ã¼ã¹ãçµã¿åããã¦å®è¡ãã¾ãã ä¸è¨ã®ä¾ã¯ãMySQLãµã¼ããRPMãã¡ã¤ã«ãç¨ãã¦ã¤ã³ã¹ãã¼ã«ãã¾ãã "MySQL-server-5.5.29-1.el6.x86_64.rpm"ãã¡ã¤ã«ãããããã "files/default" å ã«ä¿åãã¾ã
opscodeã®ãªãã¸ããªã«ããMySQLã®cookbookã§ã¯ãrootã¦ã¼ã¶ãã¬ããªã±ã¼ã·ã§ã³ç¨ã®ã¦ã¼ã¶ã®ãã¹ã¯ã¼ããã©ã³ãã ã«çæãã¦è¨å®ãã¦ããã opscode ã® recipe ã®ç¹å¾´ ãã®ã©ã³ãã ã¨ããç¹ãã«ãã¼ããã¹ãããã¾ãä»çµã¿ãçµã¿è¾¼ã¾ãã¦ããã ãã¹ã¯ã¼ããè¨å®ããã¨ãã㯠node.set_unless['mysql']['server_root_password'] = secure_password ã¨ãã£ãå½¢ã§ãattributeã«è¨å®ããã¦ããªãå ´åã¯ã©ã³ãã ã«çæããã¨ããäºããã¦ã2度ç®ä»¥éãåããã¹ã¯ã¼ãã¨ãªãããã«ãªã£ã¦ããã 2åç®ä»¥éãåããã¹ã¯ã¼ããä¿è¨¼ããããã«ãããã²ã¨ã¤ã®æã unless Chef::Config[:solo] ruby_block "save node data" do block do node.save end
I'm learning Chef and I'm going to do right now for Ubuntu: execute "add-apt-repository ppa:#{node[:some_repo]}" do user "root" end execute "apt-get update" do user "root" end but may be there is a better ("chef-style"?) way to do it. Also, I concerned that sometimes add-apt-repository waits for "Enter" key on it's execution, so this approach might not work as is. What is the Right way of doing it
æè¿ããµã¼ãã¼ç¶æ 管çãã¼ã«ã®chefããã¼ã ã§ãããããã£ã±ãufwã®ãããªãã¡ã¤ã¤ã¼ã¦ã©ã¼ã«ã®è¨å®ãããchefã¿ãããªã®ã§ç®¡çãããã§ããããããã§ããã®è¨å®æ¹æ³ã«ã¤ãã¦èª¿ã¹ã¦ãã£ã¦ã¿ãã®ã§ãã¡ãã£ã¨ãããã¦ããã¾ããããããå¤ã ã!!ãããããªã®ããã!!ãã£ã¦ããã³ããå¾ ã¡ãã¦ããã¾ãã ããããufwã¨ã¯ Linuxã®ãã¡ã¤ã¤ã¼ã¦ã©ã¼ã«ã®iptablesã®ubuntuã®ã³ãã³ãã©ã¤ã³ãã¼ã«ãufwã¨ãã話ã¿ããã§ãã詳ããã¯ããããããã§ããSentOSã®æ¹ã¯ã帰ããã ããã£ã¦æãã§ããã?å®éã®ã¨ããããã¡ã¤ã¤ã¼ã¦ã©ã¼ã«ã¨ã¯ä½ããã¾ãã¡ãã³ã¨æ¥ã¦ããªãã§ãããã¾ããã ããã以ä¸ã®ãã¨ãå®ç¾ããã¨ãããã¨ã§ããããã æå®ããå¤é¨ç«¯æ«ã®éä¿¡ãå¶é/許å¯ãã æå®ããã¢ããªã±ã¼ã·ã§ã³/ãã¼ãã®éä¿¡ããå¶é/許å¯ãã ã¦ã§ããµã¤ãå ¬éãã¦ãã人ãã¡ã¨ãã¦ã¯ããããããªèå¼±æ§ãã¤ãã
-> Chef Solo encrypted data bags Following on from an earlier post, I thought it'd be nice to take a look at encrypted data bags with Chef Solo. I'm going to asssume you're already familiar with the concepts of Chef Solo and data bags (if not, check the docs out here). A lot of this info was taken from the Opscode docs; I've just tailored it towards use with Chef Solo.The following steps ouline ho
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}