ææŠãã
次ã®èŠä»¶ãåãããµãŒããŒãå±éããå¿ èŠããããŸãã
- RAID-10ãã£ã¹ã¯ã¢ã¬ã€
- BIOSã®å®å šãªããã©ãŒãã³ã¹
- ãã¹ãŠã®æŽæ°ããã°ã©ã ãšããããé©çšãããWindows Server 2012
- ããã¯ã.NET 4.5ãå¿ èŠãšãããµãŒãã¹ãåããå°æ¥ã®ã¢ããªã±ãŒã·ã§ã³ãµãŒããŒã§ãã
- ãµãŒããŒã®å¯çšæ§ãCPUãã¡ã¢ãªãããã³ç©ºããã£ã¹ã¯å®¹éã®ç£èŠ
- ãµãŒããŒãOctopus DeployãªãªãŒã¹ããŒãªã³ã°ã·ã¹ãã ã«æ¥ç¶ããå¿ èŠããããŸã
é£ãã
ããã§ã®äž»ãªèŠä»¶ã¯ããã¹ãŠãå¯èœãªéãèªååããå¿ èŠãããããšã§ãã人éã®åå ã¯ããéå§æãã«1åããçµäºæãã«1åã«æå°åãããŸãã ãã®ãããªèªååã®ç®æšã¯ãå°æ¥ãããã€ãã®æ°ãããµãŒããŒãããªãè¿ éã«ãããã¯ã¢ãããããæœåšçãªããŒãºã§ãã ãã®ãœãªã¥ãŒã·ã§ã³ã¯ããµãŒããŒãå±éããããšã責åãšãããžã¥ãã¢ç®¡çè ãéçºè ã«ãšã£ãŠç解ãã«ãããã®ã§ã¯ãããŸããã
解決ç
ããããããããã¯ãŒã¯ã«æ¥ç¶ãããŠãã皌åäžã®ãµãŒããŒã ãã§ãã ç§ã¯åœŒã®MACã¢ãã¬ã¹ãšå°æ¥ã®ååïŒapp8ïŒãç¥ã£ãŠããŸãã ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ãããã£ã¹ã¯ãæåã§æ¿å ¥ããæ©èœããããŸããã ãããããªããšé ãã¹ã眪ã§ã-Windowsã«ã¯ãã£ã¹ã¯ããããŸããïŒ
以äžãè¡ãå¿ èŠããããŸãã
- BIOSããã©ãŒãã³ã¹ãªãã·ã§ã³ãèšå®ãã
- RAID-10ã¢ã¬ã€ãäœæãã
- PXEããpxeboot.comããŒãããŒããŒãèµ·åããŸã
- é©åãªboot.wimããŒãããŒããŒãéžæããå¿ èŠãªãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ãéžæããŸã
- è«çãã©ã€ãCïŒ\ããã³DïŒ\ãäœæããŸã
- CïŒ\ãã©ã€ãã«ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ãã€ã³ã¹ããŒã«ããŸã
- puppetã䜿çšããŠå¿ èŠãªã¿ã¹ã¯çšã«ãµãŒããŒãæ§æãã
ãã®èšäºãèªãåã«ããã®èšäºã§äœ¿çšãããããããã¯ã©ã¹ã®æºåã«é¢ããé¢é£èšäºãèªãããšããå§ãããŸãã
- WIMã®å¹æçãªäœæãšäœ¿çš-Chocolatey Magic
- Puppetãä»ããŠWMIã¢ã¯ã»ã¹èš±å¯ã管çãã
- Puppet + OpsviewïŒãã³ãã¬ãŒãããŒã¹ã®èªåç£èŠ
ãµãŒããŒã¯ç©ççã«é ãé¢ããã³ãã±ãŒã·ã§ã³ã«ãããããWDSãšIP KVMã䜿çšããŸãã KVMãžã®ã¢ã¯ã»ã¹ã¯Webã€ã³ã¿ãŒãã§ãŒã¹ãä»ããŠè¡ããããªã¢ãŒãã®ãç»é¢ãèªäœã¯JavaããŒã¹ã®ã¢ããªã±ãŒã·ã§ã³ã䜿çšããŠå®è£ ãããŸãã æŠããŠãIP KVMã¯å¿ èŠãªããªããŸããã ç§ã®å±éã¯ãã¹ãŠã»ãŒèªåçã«è¡ãããŸãããç»é¢äžã§äœãèµ·ãã£ãŠããããèŠããšããå€ãç¿æ £ãæ®ã£ãŠãããã¢ã€ãã³ã®å·¥å Žåºè·æã®èšå®ã¯å¿ èŠãªèšå®ãšå¿ ãããäžèŽããŸããã
ãããŸã§ã®ãšããããµãŒããŒã«ã¯äœããããŸããã
BIOSïŒF2ïŒã«å ¥ããããã©ãŒãã³ã¹ãã©ã¡ãŒã¿ãŒãæ§æããŸãã PerformanceãšWatt Per Performanceã®éãã¯ãPerormance Per Wattã䜿çšãããšããµãŒããŒã¯ã¢ã€ãã«æã®ã³ã³ããŒãã³ãã®é»åæ¶è²»ãèªåçã«åæžããããšã§ãã æ¶è²»é»åã®åæžããã¯äœãåŸãããªãããããã®åäœã¯å¿ èŠãããŸããããéã®ããã©ãŒãã³ã¹é 延ããã¯å€±ãããŸãïŒãµãŒããŒããã«é»åã§åäœããæéã§ãããšèªèããããæ¶è²»é»åã®åæžããŸã ãªãã«ããŠããªãæç¹ïŒã
ããã©ãŒãã³ã¹ãªãã·ã§ã³ïŒ
Dell Webãµã€ãã§ãµãŒããŒã泚æããå Žåãå¿ èŠãªRAIDæ§æã®ãµãŒããŒã泚æããããšãã§ããŸãã ãã®ç¹å®ã®ãµãŒããŒã«ã¯RAID5ãä»å±ããŠãããããæ§æãå€æŽããå¿ èŠããããŸãã ããŒãã¹ããŒãžã§Ctrl + RãæŒããŠRAIDã»ããã¢ãããŠãŒãã£ãªãã£ãèµ·åãããããã1 TBã®4ãã©ã€ãã®RAID10ã¢ã¬ã€ãäœæããŸããããã«ãããæçµçã«ããŒã¿çšã«2 TBã®ãã¹ããŒã¹ããåŸãããŸãã ã©ã€ãããã¯ãšé©å¿å èªã¿-å¿ èŠãªãã®ã¯ããã©ã«ãã§æ®ãããŠããŸãïŒ
RAIDã³ã³ãããŒã©ãŒãæ§æããŸãã
ã«ã¹ã¿ã ããŒãããŒããŒïŒWinPEãŸãã¯Linuxã€ã³ã¹ããŒã©ãŒïŒã䜿çšããŠOSãã€ã³ã¹ããŒã«ãã段éã§ãæ£ããRAIDãäœæããããã»ã¹ãèªååããããšãã§ããŸãã 誰ããDELLã·ã¹ãã ã§ãããè¡ã£ãå Žåãããªãã®çµéšãå ±æããŠããã ããã°å¹žãã§ã-æ®å¿µãªããããã®ããã®æéã¯ãããŸããã
ããã«DHCPã§ã¯ãIPã¢ãã¬ã¹ã¯å°æ¥ã®ãµãŒããŒã«èšå®ãããååãäžããããŸãã MACã¢ãã¬ã¹ãç¥ã£ãŠããããªããªã æ©åšãåãåã£ããšãã«ããã®æ å ±ãèšé²ããŸãã ãŸãã¯ããµãŒããŒã®èµ·åæã«MACã¢ãã¬ã¹ã確èªããããDCã®NOCã¹ã¿ããã«ãµãŒããŒèªäœã§ç¢ºèªããããäŸé Œããããšãã§ããŸãã
æ°ãããµãŒããŒã«IPã¢ãã¬ã¹ãäžããŸãã
次ã«ããã¢ãã¬ã¹ãªãŒã¹ãã§ãDHCPãµãŒããŒã«ã¢ã¯ã»ã¹ããŸãã
ãµãŒããŒãåèµ·åããPXEããŒãã¢ãŒãã«å ¥ããŸãããã®åŸãWDSã§ãµãŒããŒã確èªããååãå²ãåœãŠãå¿ èŠããããŸãããŸããããŒãããŒããŒïŒãã®å Žåã¯pxeboot.comïŒãæå®ããããšãã§ããŸãã ãã®ã¢ã¯ã·ã§ã³ã«ãããunattend.xmlãæ£ããæ§æãããŠããå Žåãæ£ããæ§æãé©çšãããµãŒããŒããã¡ã€ã³ã«è¿œå ã§ããŸãã
WDSã§ãµãŒããŒã確èªããŸãã
ãã¡ã€ã³ã«ã³ã³ãã¥ãŒã¿ãŒãè¿œå ããæš©éãæã€ãŠãŒã¶ãŒã®ååãšãã¹ã¯ãŒããunattend.xmlã§æå®ããããšãå¿ããªãã§ãã ããã ãããã®æš©å©ã¯ããã®ããã«ç¹å¥ã«äœæããããµãŒãã¹ãŠãŒã¶ãŒã«å§ä»»ãããŠããŸãã 以åã¯ãWindows AIKãïŒä»¥åã®åœ¢ã§ïŒè¡šç€ºããããŸã§unattend.xmlãæåã§ç·šéããŠããŸããããä»ã§ã¯å ¬åŒã®Microsoft Webãµã€ãããããŠã³ããŒãã§ããŸãã
ã¢ã¯ã»ã¹ãèš±å¯ããåŸããµãŒããŒã¯é©åãªããŒãããŒããŒã§èµ·åããããã§ããŒãã€ã¡ãŒãžãéžæããã次ã«ã·ã¹ãã èªäœã®ã€ã¡ãŒãžãéžæãããŸãã ããã§äœæããæŽæ°ãããServer 2012 Standardã€ã¡ãŒãžãéžæããŸã ã ãµãŒããŒã®ç¢ºèªæ®µéã§ïŒunattend.xmlãã¡ã€ã«ãéžæããã®ãšåãå Žæã§ïŒããŒãã€ã¡ãŒãžãéžæããããšãã§ããŸãã æ£ããåäœããããã«ã¯ãããŒãã€ã¡ãŒãžã«ãã£ã¹ã¯ã³ã³ãããŒã©ãŒãšãããã¯ãŒã¯ã«ãŒãçšã®é©åãªãã©ã€ããŒãå«ãŸããŠããå¿ èŠãããããšã«æ³šæããŠãã ããïŒDellã®å Žåããã¹ãŠã®ãã©ã€ããŒã¯OpenManageãã£ã¹ã¯äžã«ãããåãå Žæã«ããç¹å¥ãªãŠãŒãã£ãªãã£ã䜿çšããŠè§£åããå¿ èŠããããŸãïŒã 誰ããç§ããããããæ¹æ³ã«èå³ããããªããç§ã«ç¥ãããŠãã ãããç§ã¯ãããå ±æããŠããããã§ãã
ç§ã¯å®å šã«ç¡äººã€ã³ã¹ããŒã«ã§ããã€ãã®æ§æãæã£ãŠããããšã«æ³šæããã®ã¯èå³æ·±ãã§ãããäœããã®çç±ã§ç§ã¯ãããã䜿çšããŸãããç§ã¯äŒç€Ÿã®èŠæš¡ã¯WindowsãµãŒããŒæ§æãããã»ã©å žåçãªãã®ãšåãã§ã¯ãªããšæããŸã-åžžã«äœããç°ãªããŸãã ïŒã¡ãªã¿ã«ãLinuxçšã®ããã¯ã¹ã¿ãŒãæ§æããããŸãããããã¯ã»ãšãã©ãã¯ã©ã¹ã¿ãŒã®å žåçãªæ§æã§ãããããé »ç¹ã«äœ¿çšããŸãïŒã
ããã§ãããŒããã©ã€ãæ§æãéžæããŸãã250Gããã©ã€ãCã«ãæ®ãã®1600GãDATAããŒãã£ã·ã§ã³ã«é 眮ããŸãã ããã§ããã»ã¹ã¯å§ãŸããŸããã ãWindowsãã³ã³ãã¥ãŒã¿ãŒã«ã€ã³ã¹ããŒã«ãããéããã£ãããšåº§ãããšãã§ããŸããïŒWindows 98ã€ã³ã¹ããŒã©ãŒã®éãå ã§éšå±ãçã£æéã«ç §ããããã®ãèŠããŠããŸã...ïŒ
Windowsã€ã³ã¹ããŒã«ïŒ
Windowsã®ã€ã³ã¹ããŒã«äžã«ãã€ã¡ãŒãžã«ãããã¯ãŒã¯ãWindows PEã§åæåãããçŽåŸã«èµ·åããVNCãµãŒããŒãããããšãæãåºããŸããã ç¡é§ã«ãªã£ãWindowsPEã®éåžžã®syslogã¯ã©ã€ã¢ã³ããèŠã€ãããªãã£ãã®ã¯æ®å¿µã§ããVNCããã€èµ·åããã®ãç¥ãããã®ã§ããã誰ã§ãç¥ã£ãŠããŸããïŒ
puppetãšãŒãžã§ã³ãã®ç»é²ãå«ãunattend.xmlã¹ããŒãžããã®ã¹ããŒãžã§å®è¡ãããŸãã
puppetãšãŒãžã§ã³ããèªåçã«ç»é²ããã«ã¯ãunaââttend.xmlãã¡ã€ã«ã«æ¬¡ãè¿œå ããŸã
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Order>1</Order> <Description>Install Puppet</Description> <Path>cinst puppet -ia "PUPPET_MASTER_SERVER=puppet.mydomain.local"</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>2</Order> <Description>Request Certificate</Description> <Path>("C:\Program Files (x86)\Puppet Labs\Puppet\bin\puppet_interactive.bat" --test) && echo OK</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>3</Order> <Description>Stop Puppet Service</Description> <Path>(sc stop puppet) && echo Service Stop OK</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>4</Order> <Description>Start Puppet Service</Description> <Path>(sc start puppet) && echo Service Start OK</Path> </RunSynchronousCommand> </RunSynchronous> </component>
ãã®ãããWindowsãèµ·åããŸãã-å¯çšæ§ãïŒæåãŸãã¯èªåã§ïŒãã§ãã¯ãããŸãŒã³ããªããŒãããŠDNSãã£ãã·ã¥ãã¯ãªã¢ããããšãå¿ããªãã§ãã ããã ãã¡ã€ã³åã§å¿çããå ŽåããµãŒããŒã¯ãã¡ã€ã³ã«è¿œå ãããŸãïŒããã§ãªãå Žåã¯ããµãŒããŒã«ç§»åããŠãååã§ãªãããšã確èªããŸãïŒã puppetãšãŒãžã§ã³ãã¯Microsoft-Windows-Deployment / RunSynchronousã¹ããŒãžã§æ¢ã«ã€ã³ã¹ããŒã«ãããŠããå¿ èŠããããããpuppetããžãã¯ãéå§ã§ããŸãã
ãããããã¹ã¿ãŒãµãŒããŒã§èšŒææžã確èªãããšãTheForemanã§ãã®ãããªç»åã衚瀺ãããŸãã
ããã¯ãæ°ãããµãŒããŒããå°çšãã®æºåãã§ããŠãããå¿ èŠãªã¯ã©ã¹ïŒããã±ãŒãž:: opsviewãããã±ãŒãž:: octopus-tentacleãããã±ãŒãž:: logstash ::ã¯ã©ã€ã¢ã³ããªã©ïŒãé©çšã§ããããšãæå³ããŸãã TheForemanã³ã³ãããŒã«ããã«ã®ãµãŒããŒèšå®ã«ç§»åããå¿ èŠãªãã®ãéžæããŸãã
å¿
èŠãªãã¹ãŠãå«ãããããã¯ã©ã¹ã䜿çšããŸãã
ããããã®é åã¯ããããæ§æããã³ãªãŒã±ã¹ãã¬ãŒã·ã§ã³å¶åŸ¡ã·ã¹ãã ã§ãããšããããšã§ããã€ãŸããã·ã¹ãã ãçŸåšã©ã®ç¶æ ã«ãããã¯é¢ä¿ãããŸãããæå®ããç¶æ ã«ããããã«ãã¹ãŠãè¡ãå¿ èŠããããŸãã ãããã£ãŠãããšãã°ãããã±ãŒãž:: octopus-tentacleã®å Žåãå¿ èŠãªãã¬ãŒã ã¯ãŒã¯ãã€ã³ã¹ããŒã«ããããã±ãŒãžãã€ã³ã¹ããŒã«ããŸããç§ã®å Žåã¯ãã¿ã³ãµãŒããŒã«ã觊æãšãŒãžã§ã³ãããç»é²ãããã®ãµãŒããŒã«é©åãªã°ã«ãŒã/ãããžã§ã¯ããå²ãåœãŠãã ãã§ãïŒå±éããŸãïŒ-ãããã¯ãã¹ãŠããªããèšå®ããŸãããããã«ã€ããŠã¯å¥ã®æéã«èšå®ããŸãã
æéãèš±ãã°-次ã®ããããã®å®è¡ãåŸ ããªãããã«ããµãŒããŒã§çŽæ¥æåã§ãããããšãŒãžã§ã³ããå®è¡ãããïŒ
puppet agent --test --debug
ããããã®å®è¡ãå®äºããåŸïŒ
- NSClientããŒã¹ã®Opsview Agentãã€ã³ã¹ããŒã«ãããŸã
- Opsviewç£èŠãµãŒããŒãæ§æãããŸãïŒ ããã«æçš¿ ïŒ
- LogstashãšãŒãžã§ã³ããã€ã³ã¹ããŒã«ããã³æ§æãããŸãïŒããã§ã®æçš¿ãåŸ ã¡ãŸãããçŸæç¹ã§ã¯ãã¢ãžã®ãªã³ã¯ã§ã ïŒ
- Octopus DeployãšãŒãžã§ã³ããã€ã³ã¹ããŒã«ããããšãŒãžã§ã³ãã®ç»é²ãæè¿ããŸãã
ããã ãã§ãïŒ
ãããã«
ãµãŒããŒãæåã§å±éããããã»ã¹ãã©ã®ããã«è¡ãããããèŠããŠãããšãéããŸãã ãããã¯CD / DVDãã£ã¹ã¯ã§ããããã¯2æ¥éïŒãã£ãããšãããã¯ã°ã©ãŠã³ãã§ïŒãŸãã¯1æ¥éïŒéäžããŠä»ã«äœãããªãå ŽåïŒã§ãã ã·ã¹ãã ãçŸåšã®ç¶æ ã«æŽæ°ããå¿ èŠããã£ããã³ã«ã çµå±ã®ãšãããããã¯ãã€ã³ã¹ããŒã«ãåèµ·åãã€ã³ã¹ããŒã«ãåèµ·åãã®ããã«åäœããŸã...ãããŠãããã10ãŸãã¯20ãŸãã¯100ãµãŒããŒã§ããå ŽåïŒ äžè¬ã«å°ããªèšå®ãšèª¿æŽã«ã€ããŠã¯é»ã£ãŠããŸãã
ã°ã«ãŒãããªã·ãŒãéããŠãMS SCCMããœãããŠã§ã¢ã®ã€ã³ã¹ããŒã«ã«ããããããããç°¡åãã€äŸ¿å©ã«ãªã£ãããšãç¥ã£ãŠããŸãããŸããåäžã®ITéšéã®ç£ç£äžã§WindowsãLinuxãšå¹³åã«å ±åããæ··åç°å¢ããªããã°ããããè¡ã£ããããããŸããã ç§ã®æèŠã§ã¯ãPuppetã¯æ®éçãªããŒã«ã§ãã Puppetã¯ç§ã®åœãæããŸãããŸããéçºè ã«ããã䜿çšããããã«æããŠããŸãïŒãããŠåœŒãã¯CïŒã®ä»²éã§ãïŒã å©ç¹ã®1ã€ã¯ãããããæ§æãããã§ã¹ããããŒãžã§ã³ç®¡çã·ã¹ãã ïŒgitãªã©ïŒã«ä¿åã§ããããã°ã©ã ã³ãŒãã§ãããé åžãç°¡åãªããšã§ãïŒ ïŒIaaCã®è°è«ã¯å€§æè¿ã§ãïŒã ç°çš®ç°å¢ããã®ããããçš®é¡ã®AXISãçµã¿åãããŠãã€ã³ãã©ã¹ãã©ã¯ãã£ã®åäžã®èšè¿°ã«ã§ãã代æ¿æ¡ã¯ç¥ããŸãããïŒ ãŸãããœãŒã¹ç®¡çã®äžã«ä¿åããŠäŸ¿å©ã«é åžã§ãããã€ã¯ããœããã®äŸ¿å©ãªã·ã¹ãã ãç¥ããŸããã 誰ããç¥ã£ãŠããå Žå-ç§ã¯ã³ã¡ã³ãã§èããŠããããã§ãã
ç§ã¯ã·ã ã®ããã«äŒæãåã£ãŠããŸããä»ã®ããšãããæéã§ãïŒ
æŽæ°ïŒãã¹ãŠã®ãã€ãã¹-賌èªã解é€ãããããã€ãã¹ã§ã¯ãªããšãã倧ããªãªã¯ãšã¹ãã