æè¿è¦ªç¶ã¨è©±ããäºãã¾ã¨ããããã£ã¦ãããã¯ææçã«æãããã¡ãªãæ°å ¥çãæ°ç¤¾ä¼äººã«åããã¢ããã¤ã¹ã¨ããããã§ã¯ãªãããã ã®ä»®èª¬ã§ãããã¾ãããå½¹ã«ç«ã¦ã°å¹¸ãã 話ã¯ç°¡åãªãã¨ã ããå¸æããç°å¢ãæã«ããããã°ãç°å¢ã«é å¿ããã«ãåããããæ¹åã¸ã®æå³ãæã¡ç¶ããã¨ãªãã¨ããªããããããªããã¨è¨ããã¨ãããã§è¨ãç°å¢ã¨è¨ãã®ã¯ä»äºãããçµç¹ã ã£ãã人ä»ãåãã ã£ãããã¯ã¼ã¯ã¹ã¿ã¤ã«ãªã©ãå«ã¾ããããä»äºä»¥å¤ã®ãã¨ã«ãå½ã¦ã¯ã¾ãããããç°¡åã§å½ç¶ã®ãããªãã¨ã ã ããããåã®å ´åã¯å¤§ããªä¼ç¤¾çµç¹ã«å±ãããã¨ãç¡ãã®ã§ãããã¾ã仮説ãªã¬ãã«ãªããã ããä¾ãã°ä¼ç¤¾ã¨ããæ çµã«ãã£ããåºæ¥ãªããã¨ã§èªåã責ããããããã§èµ·ãã¦ãããã¨ãå ¨ã¦ã ã¨æãè¾¼ãã¨å±ãããå人çãªè©±ãããã¨ã6å¹´åã«ç¶è¦ªã¨ä¼ç¤¾ãç«ã¡ä¸ããæã«ã¯ããããã¹ããªç°å¢ã§ã¯ãªãã¨èãã¦ãã¦ã親åäºäººã§èµ·æ¥ãªãã¦ããã§ãããã¨è¨ãã
ã·ã£ãã¦ãã¡ã¤ã«ã¯ãã¦ã¼ã¶ã®ãã¹ã¯ã¼ããæå·åãã¦æ ¼ç´ãããã¡ã¤ã«ã§ãããã®ãã¡ã¤ã«ã¯ãä¸è¬ã®ã¦ã¼ã¶ããã¯èªãããã¹ã¼ãã¼ã¦ã¼ã¶ããèªããã¨ãã§ãã¾ããã ãã®ãããªé¢åãªï¼éåãããã®ã¯ã ãã¹ã¯ã¼ããã¡ã¤ã«ãèªããªãããã¨ãä¸è¬ã¦ã¼ã¶ããã°ã¤ã³ã§ããªããªã£ã¦ãã¾ãã ãã¹ã¯ã¼ããã¡ã¤ã«ãå ¬éããã¨ãæè¿ã®é«æ§è½ãªã³ã³ãã¥ã¼ã¿ã使ããã¨ã§ãæå·ã解èªãããã¨ãã§ãã¦ãã¾ãã ã¨ããåé¡ãããããã§ãã ãã®ãã¡ã¤ã«ã®å 容ä¾ãæ²ãã¾ãã root:/F4Dujeq2Pp6k:10337:::::: root2:xHNuzvZ9XXhYA:10440:::::: daemon:NP:6445:::::: bin:NP:6445:::::: sys:NP:6445:::::: adm:NP:6445:::::: lp:NP:6445:::::: smtp:NP:6445:::::: uucp:
ã¬ãªã¬ãªã¹ã³ã¼ãéçºãã¼ã ã«ãã �ææ°Webååãæè¡ã¡ã¢ ( Ruby, Rails, node.js ) ã§ã åºCentOS6ã«ã¦ãChefãå°å ¥ãããã¨ãchef-soloã§userç»é²ãããã¨é å¼µã£ã¦ãã¾ããã ãããã«ããã¹ã¯ã¼ãã"ã¦ã¼ã¶ã¼å+0123"ã«ãã¦ã¿ããã¨æã£ã¦ä»¥ä¸ãæ¸ãã¦ã¿ã¾ããã %w(yamda sato).each_with_index do |u,i| user "activate_#{u}" do username u password "#{u}0123" home "/home/#{user}" shell "/bin/bash" uid 500+i gid 10 end end ã¨ãããããã¹ã¯ã¼ããä¸æãè¨å®ã§ããªãorzã ã¨ãããã¨ã§ãè²ã 調ã¹ãã¨ã chefã®userã®ãã¹ã¯ã¼ãã¯å¹³æã§ãã®ã¾ã¾è¨å®ãããã¨ã¯ãã¡ã¿ããã§ãã /etc/
1 def dump_args(func): 2 "This decorator dumps out the arguments passed to a function before calling it" 3 argnames = func.func_code.co_varnames[:func.func_code.co_argcount] 4 fname = func.func_name 5 def echo_func(*args,**kwargs): 6 print fname, ":", ', '.join( 7 '%s=%r' % entry 8 for entry in zip(argnames,args) + kwargs.items()) 9 return func(*args, **kwargs) 10 return echo_func 11 12 @dump_args
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}