ã¨ãããã¹ãã§åæè¨å®ããããã¨æã£ã¦ chef-solo ãå®è¡ãã¦ããã¨ãããã¡ã¢ãªãå ¨é¨é£ãå°½ãã㦠chef-solo (11.4.4) ãæ»äº¡ããã¨ããäºæ¡ãçºçã
追ã£ã¦ã¿ãã¨ãããã©ãããåå ã¯ãããªãããã
- cookbook ãã shell script ãå®è¡ãã¦ãã¦ããã®ä¸ã§ perl Makefile.PL && make && make install ãã¦ãã
- CPAN.pm ãåæè¨å®ãçµãã¦ããªãå ´åã対話ã¢ã¼ãã«å ¥ã
- 対話ã¢ã¼ãã§æ¨æºå ¥åãéãããã¦ããã¨éä¸ã¾ã§ã¯ããã©ã«ãã®å ¥åã§é²ãããå°åãé¸æããã¨ããã¯ããã©ã«ãããªãããããã§ã¡ãã»ã¼ã¸ã表示ããªããç¡éã«ã¼ããã
- ç¡éã«ã¼ãã§å¤§éã«åºåãããã¡ãã»ã¼ã¸ãã(詳細ã¯ç¢ºèªãã¦ããªãã§ãã) chef ãã¡ã¢ãªã«ä¹ãç¶ãã¦å¤ªã
ã¨ãããã¨ã§ãcookbook å ã§å®è¡ãã script ã«ã¯æ³¨æãã¾ããããã¨ããã chef èªä½ãã®ãããã®é²å¾¡æ©æ§ãæã£ã¦ããæ¹ãããæ°ããã¾ããã
# echo -n "" | perl Makefile.PL *** Module::AutoInstall version 1.03 *** Checking for Perl dependencies... We have to reconfigure CPAN.pm due to following uninitialized parameters: cpan_home, keep_source_where, build_dir, build_cache, scan_cache, index_expire, gzip, tar, unzip, make, pager, makepl_arg, make_arg, make_install_arg, urllist, inhibit_startup_message, ftp_proxy, http_proxy, no_proxy, prerequisites_policy, cache_metadata /usr/lib/perl5/5.8.8/CPAN/Config.pm initialized. (ç¥) I'd use that as a database of CPAN sites. If that is OK for you, please answer 'y', but if you want me to get a new database now, please answer 'n' to the following question. Shall I use the local database in /root/.cpan/sources/MIRRORED.BY? [y] y (ããã¾ã§ã¯ããã©ã«ããããã®ã§é²ã) Now we need to know where your favorite CPAN sites are located. Push a few sites onto the array (just in case the first on the array won't work). If you are mirroring CPAN to your local workstation, specify a file: URL. First, pick a nearby continent and country (you can pick several of each, separated by spaces, or none if you just want to keep your existing selections). Then, you will be presented with a list of URLs of CPAN mirrors in the countries you selected, along with previously selected URLs. Select some of those URLs, or just keep the old list. Finally, you will be prompted for any extra URLs -- file:, ftp:, or http: -- that host a CPAN mirror. (1) Africa (2) Asia (3) Europe (4) North America (5) Oceania (6) South America Select your continent (or several nearby continents) [] Sorry! since you don't have any existing picks, you must make a geographic selection. (1) Africa (2) Asia (3) Europe (以ä¸ç¡éã«ã¼ã)