çããããã«ã¡ã¯ãRed Hat ã½ãªã¥ã¼ã·ã§ã³ã¢ã¼ããã¯ãã®å²¡éã§ãã2024 å¹´ãå§ã¾ãã¾ããããä»å¹´ãããããã® Ansible Automation Platform é¢é£ã®æ å ±ããå±ãã§ããã°ã¨èãã¦ãã¾ããæ¯éãä»ãåããã ããã
ãã¦ãæ¨å¹´æ«ãã¡ãã§äºåããã¦ããã ããéããã¾ãã¯ãAnsible Lightspeed ã®ã試ãæ¹æ³ã«ã¤ãã¦ãç´¹ä»ãããã¨æãã¾ããå®ã¯æ¨å¹´ã®12æã«ãã¼ããã¼æ§åãã« Ansible Automation Platform ææ°æ å ±ã«é¢ããã»ããã¼ãéå¬ããã®ã§ããããã®éã Ansible Lightspeed ã¯å¤§å¤å¼ãåããå¼·ãã
ãããã«è©¦ãããã®ã§ããæ¹æãã¦ãã ããï¼ï¼ã
ã¨ãã声ãããããããã ãã¾ããã®ã§ããã®å£°ã«ãå¿ããã¹ãã
ãã ããä¸ç¹ãåãã«ãæããã¦ããã¾ãããã¡ãã«è¨è¼ã®éããè©ä¾¡ç°å¢æ§ç¯ã«é¢ãã¦ã¯ããã¹ãã¼ããªæ¹æ³ã2024å¹´åé ï¼ã¨ãããã¨ãªã®ã§ããããï¼æä¾ãããã¨ã®ãã¨ã§ãããæ¥ãã§ãªãå ´åã¯ãã¡ãããå¾ ã¡ããã ãã®ãè¯ãããããã¾ããã
ãã ãç§ã®ã¨ããã«ã社å å¤ããæ§ç¯æ¹æ³ã«ã¤ãã¦å¤ãã®åãåãããããã ãã¦ããã®ã¨ãã¾ããããããIBM ã¯ã©ã¦ãç¬ç¹ã®è¨èã®æå³ããããããç§èªèº«çµæ§è¦å´ãã¾ããã®ã§æ¥ã確èªãããæ¹ãåãè½ãè¸ã¾ãªãããã«ãï¼ï¼¾ï¼¾ï¼
ã§ã¯æ©éã
Ansible Lightspeed ã®ç°å¢æ§ç¯æ¹æ³
è©ä¾¡çã®å©ç¨
製åçã® Ansible Lightspeed ãå©ç¨ããå ´åã以ä¸2ã¤ãè³¼å ¥ããå¿ è¦ãããã¾ãããã®ããããã«è©ä¾¡çï¼ç¡åæ ï¼ãæä¾ããã¦ãã¾ãã®ã§ãã¡ããå©ç¨ãã¾ãã
Ansible Automation Platform (AAP)
以ä¸ããè©ä¾¡çã®ãµãã¹ã¯ãªãã·ã§ã³ãå ¥æãã¾ãã
www.redhat.comIBM watsonx Code Assistant for Red Hat Ansible Lightspeed
IBM ã¯ã©ã¦ãã«ç»é²ããç¡åå©ç¨æ ï¼200ãå©ç¨ãã¾ã cloud.ibm.com
â» IBM ã¯ã©ã¦ãã®ç¡åå©ç¨æ 㯠$200ã¾ã§ã§ããLightspeed ã®å ´å 1ãæåã¨ãªãã¾ãã®ã§ããã¹ãå©ç¨ãçµäºããããã¼ã¿ã®åé¤ç対å¿ãã ãããæ¾ç½®ããã¨è«æ±ãçºçãã¾ããã¾ããã¢ã«ã¦ã³ãã®åé¤ã¯ AWS ãªã©ã¨ç°ãªããã±ã¼ã¹ã«ãã対å¿ãå¿ è¦ã§çµæ§æéããããã¾ããã¢ã«ã¦ã³ãæ°è¦ä½æã®éã¯ããã®ç¹ãäºæ¿ã®ä¸ãå©ç¨ãã ããã
ãã¡ãããæ¢ã«AAPã®ãµãã¹ã¯ãªãã·ã§ã³ãææãã¦ããæ¹ãIBM ã¯ã©ã¦ãã®æ¢åã¦ã¼ã¶ã¼ã®æ¹ã¯ãã¡ããå©ç¨ãããã¨ãå¯è½ã§ããä»åã¯å ¥æããè©ä¾¡ç/ç¡åæ ãå©ç¨ãã¦ç°å¢æ§ç¯ãè¡ã£ã¦ããã¾ãã
1. IBM ã¯ã©ã¦ãã§ã®ä½æ¥
1-1. ãµã¼ãã¹ ID 㨠watsonx Code Assistant (WCA) ãã¼ã®ä½æ
ã¾ãã¯ãAnsible Lightspeed ã WCA ã«ã¢ã¯ã»ã¹ããããã® ID ã¨ã¢ã¯ã»ã¹ãã¼ãä½æãã¾ãããã¡ãï¼IBM Cloudå ï¼ãããååï¼ããã§ã¯ "watsonx Code Assistant user"ï¼ãå ¥åãã¦ãµã¼ãã¹ ID ãä½æãã¾ãã
次ã«ãä½æãã ID å ã®ã¿ããAPI ãã¼ããéããAPIãã¼ã®ååãå ¥åãä½æãã¯ãªãã¯ããã¨ãAPIãã¼ã®ã³ãã¼ã¨ãã¦ã³ãã¼ããä¿ãç»é¢ã表示ããã¾ãããã®ç»é¢ã¯éããã¨2度ã¨ãã¼ã®åå¾ãã§ãã¾ããã®ã§ãã¯ãªãããã¼ãã¸ã®ã³ãã¼ãããã³ãã¦ã³ãã¼ããã¦ããã¾ããã³ãã¼ãã APIãã¼ã¯æé 2-1 ã®ç»é²ã®éã«å©ç¨ãã¾ãã
1-2. watsonx Code Assistant for Ansible Lightspeed ã¢ãã«ã®ãããã¤ã¡ã³ã
ãAnsible Lightspeed ã§å©ç¨ãã AI ã¢ãã«ããããã¤ãã¾ãã
ãã¡ãããããwatsonx Code Assistantããæ¤ç´¢ãããIBM watsonx Code Assistantããã¯ãªãã¯ãã¾ãã以ä¸ã®ã¹ã¯ãªã¼ã³ãã£ããã£ã¼ãåèã«ããIBM watsonx Code Assistant for Red Hat Ansible Lightspeed Essentialsããé¸æããåæã«ãã§ãã¯ã®ä¸ä½æãã¯ãªãã¯ãé·ç§»ããç»é¢ã§ã10 userãã¨ãªã£ã¦ãããã¨ã確èªã ãLaunch watson Code Assistantã ãã¯ãªãã¯ãã¾ãã
ãã°ããããã¨ä»¥ä¸ã®ãããªç»é¢ã表示ããã¾ãããã¡ããé ã«å®è¡ãã¦ããã¾ããå³ã«ããç¢å°ã¯åè¨å®ãè¡ãããã®ãªã³ã¯ã§ããä¸çªä¸ã®æé ã¯æ¢ã«å ã®æé ã§è¨å®ãå®äºãã¦ãããµã¼ãã¹IDåã³ API ãã¼ã®ä½æã§ããæ§ç¯æ¸ã¿ã§ãã®ã§ä¸åº¦ç¢å°ãã¯ãªãã¯ããä½ããããã¡ãã®ç»é¢ã«æ»ãã¾ãã
次ã«ãããã¤ã¡ã³ãã»ã¹ãã¼ã¹ã®ä½æã®ç¢å°ãã¯ãªãã¯ãã¾ãããããã¤ã¡ã³ãã¹ãã¼ã¹ä½æç»é¢ã§ãååããå ¥åãããã³ã¼ãã¢ã·ã¹ã¿ã³ããµã¼ãã¹ãããã«ãã¦ã³ã§é¸æããä¸ã§ããä½æããã¯ãªãã¯ãå®äºç»é¢ãåºã¦ä½æãå®äºãã¾ãã
ãããã¤ã¡ã³ãã»ã¹ãã¼ã¹ã®ä½æãå®äºããã¨ããã¼ã¹ã»ã¢ãã« ID ãå²ãæ¯ããã¾ãããã®ãã¼ã¹ã»ã¢ãã«IDã¯ãæé 2ã§å©ç¨ãã¾ãã以ä¸èµ¤æ ã®ä¸ã«å¤ãå ¥åããã¦ãããã¨ã確èªã®ä¸ãããµã¼ãã¹IDãã¹ãã¼ã¹ã³ã©ãã¬ã¼ã¿ã¼ã¨ãã¦è¿½å ãããæé ã«é²ã¿ã¾ããç¢å°ãã¯ãªãã¯ãã¾ãã
ãwatsonx Code Assistant userã ã«ãã§ãã¯ãå ¥ãã¾ãã
ãã㧠IBM ã¯ã©ã¦ãå´ã®è¨å®ã¯å®äºã§ãã以ä¸åèã«ãç¢å°ãã¯ãªãã¯ãã¦æé 2 Ansible Lightspeed 管çãã¼ã¿ã«ã§ã®è¨å®ã«é²ã¿ã¾ãã
2. Ansible Lightspeed 管çãã¼ã¿ã«ã§ã®ä½æ¥
2-1. WCA ãã¼ã¨ãã¼ã¹ã»ã¢ãã«ã® ID ã®ç»é²
Ansible Lightspeed 管çãã¼ã¿ã«ã表示ããã¦ããã¨æãã¾ãããã表示ããã¦ãªãå ´åã¯ããã¡ããã¯ãªãã¯ãã ãããIBM Cloud API Key 㨠Model ID ãå ¥åããç»é¢ã¨ãªãã¾ãã®ã§ãæé 1-1ã1-2ã§ããããä½æãã WCA ãã¼ã¨ãã¼ã¹ã»ã¢ãã«ID ãããããã³ãã¼ï¼ãã¼ã¹ããã¾ãã
2-2. VSCode Extension ã®ã¤ã³ã¹ãã¼ã«
â»Ansible Lightspeed 㯠VS Code ã®æ¡å¼µæ©è½ã¨ãã¦åä½ãã¾ããã¾ã VS Code ãã¤ã³ã¹ãã¼ã«ãã¦ããªãå ´åã¯ã¤ã³ã¹ãã¼ã«ã®ä¸ã以ä¸å®æ½ãã ãããéã«ãæ¢ã« VS Code ã Extension ãã¤ã³ã¹ãã¼ã«ãã¦ããå ´åã¯ããã¼ã¸ã§ã³ã«æ³¨æãã¦ãã ãããAnsible Lightspeed ã§ãµãã¼ãããããã¼ã¸ã§ã³ã¯ä»¥ä¸ã®éãã§ãã
ã»VS Code version 1.70.1 or later
ã»Ansible extension for VS Code version 2.8 or later
VS Code ã® Ansible Exension ãã¤ã³ã¹ãã¼ã«ãã¾ãã
ããã«ã以ä¸åèã«ãæ¡å¼µæ©è½ã§ãLightspeed ã«é¢ããè¨å®ï¼2ãæï¼ã«ãã§ãã¯ãå ¥ã㦠Lightspeed ãæå¹åãããã« Ansible ã¢ã¤ã³ã³ãã¯ãªãã¯ãã¦Connect ãã¯ãªãã¯ãã¾ãã
ãã®å¾ã4ã¤ã»ã©ç¢ºèªç»é¢ã表示ããã¾ããããAllowãâãOpenãâãAuthorizeãâãOpenããªã©ãã¯ãªãã¯ãã¦é²ãã¦ãã ããã
ãã©ã¦ã¶ãç«ã¡ä¸ãã£ã¦ããRed Hat Ansible Lightspeed with IBM watsonx Code Assistantãã®ç»é¢ã表示ãããã°ãã®æé ã¯å®äºã§ãã
3.Hybrid Cloud Console ã§ã®ä½æ¥
Ansible Lightspeed ãå©ç¨ããã«ã¯ãAAP ã®ãµãã¹ã¯ãªãã·ã§ã³ãå¿ è¦ã«ãªãã¾ãããã®ä½æ¥ã¯ AAP ã®ãµãã¹ã¯ãªãã·ã§ã³ãæã¤ã¦ã¼ã¶ã¼ã«å¯¾ã㦠Ansible Lightspeed ãå©ç¨ãã権éï¼ã·ã¼ãã©ã¤ã»ã³ã¹ï¼ãä¸ããè¨å®ã§ãããã¡ããã Hybrid Cloud Console ä¸ã§ãAssign users ãã¯ãªãã¯ã®ä¸ãå¿ è¦ãªã¦ã¼ã¶ã¼ãç»é²ãã¾ãã
å度ãã¡ããã¯ãªãã¯ãã¦ã¿ã¦ãã ããããã°ã¤ã³å¾ã«ãlicensed userãã¨è¡¨è¨ããã¦ããã°ãã®è¨å®ãå®äºãã¦ãã¾ãã
Ansible Lightspeed 㧠Playbook ãä½æï¼
æ©éç°¡åãªPlaybook ãä½æãã¦ã¿ã¾ããããVS Code ä¸ã§ãæ°ãããã¡ã¤ã«ãæ¡å¼µå ãyamlã ã§ä½æã»ä¿åãã¾ããå®ã¯æ¡å¼µåã¯ä½ã§ãè¯ãã®ã§ãããé¢é£ä»ããã§ããã®ã§å¾ã 便å©ã§ããä¸ã®ãyamlããã¯ãªãã¯ãããã«ãè¨èªã¢ã¼ãã¨ãã¦ãAnsibleããé¸æãã¾ãï¼ä»å¾ã®ããé¢é£ä»ããè¡ã£ã¦ããã¨ä¾¿å©ã§ãï¼ã
Extension ã«é¢ããã¨ã©ã¼ãåºãããããã¾ããããä¸ã« ãLightspeed (licenced)ã ã¨åºã¦ããã°æ°ã«ããªãã¦ã大ä¸å¤«ã§ããã¨ã©ã¼ãæ°ã«ãªãããã§ããã°ãAnsible-lint é¢é£ããAnsible ⺠Validation: Enabled ã®ãã§ãã¯ãå¤ãã¨ã¨ã©ã¼ã¯åºãªããªãã¨æãã¾ãã
ã§ã¯ Lightspeed ã« Task ãä½æãã¦ãããã¾ãããã試ãã«ä»¥ä¸ã®ããã«æ¸ãã¦ããã»ã»ã»å³åº§ã«éããã®å¾ãã§æ¹è¡ãã¦ã¿ã¦ãã ãããè¤æ°ã«ã¾ãããæ¨å¥¨ã®ã¿ã¹ã¯ãåºã¦ããã°æåã§ãã確å®ã¯ãTabããã¼ãæå¦ã¯ãEscããã¼ã§ãã
ã#ãã¨ã&ããæå³ãæã¡ã¾ãã®ã§éè¦ã§ãã
--- - name: my first lightsppd yml hosts: all tasks: # ææ°ãã¼ã¸ã§ã³ã® httpd ãã¤ã³ã¹ãã¼ã« & httpd ãµã¼ãã¹ã®æå¹åã¨éå§ & 80/443 ãã¼ããFireall ã§æä¹ çã«å³åº§ã«éã
æ¨å¥¨ãã©ãããåºã¦ããã®ãããã®åºæã¯ãå³ä¸ã®ããã«ã®åãæ¿ããã¯ãªãã¯ããåºã¦ããã¦ã£ã³ãã¦ã§ ãANSIBLEããã¯ãªãã¯ãããã¨ã§ç¢ºèªãããã¨ãåºæ¥ã¾ãã
ã¾ã¨ã
ãããã§ããã§ããããï¼
çæ AI ã®å©ç¨ã«ã¤ãã¦ã¯è²ã ã¨è°è«ãå§ã¾ã£ãã°ããã§ããããã®èª²é¡ã®ä¸ã¤ãã
ãå¾ããããã¼ã¿ãã©ãããæ¥ãã®ãï¼ã
ã¨ãããã¨ã ã¨æãã¾ããå æ¥ã New York Times ã OpenAI ã«å¯¾ãèä½æ¨©ä¾µå®³...ãªã©ã¨ããè¨äºãåºã¦ãã¦ãå人çã«ããããã¡ãªäºã ãªãã¨æãã¦ãã¾ããã
ãã®ç¹ãAnsible Lightspeed ã§å©ç¨ããããwatsonx Code Assistant for Ansible Lightspeedãã¯ã Ansible Galaxy ã³ã³ãã³ãã¨ãã®ä»ã®ãªã¼ãã³ã»ãã¼ã¿ã»ã½ã¼ã¹ããã³ãRed Hatã¨IBMã®èªååã«é¢ããå°éç¥èãæ³¨å ¥ããããAnsibleåºæã®ããã¬ã¼ãã³ã°ããã¼ã¿ã»ã»ããã¨ãªã£ã¦ãããããçæãããã³ã¼ãã®è³ªãé«ããããã«ãä¸è¨ã®éããçæãããã³ã¼ããã©ãããæ¥ãã®ãããã®ã½ã¼ã¹ã確èªãããã¨ãã§ãããã¨ãããã³ã¼ãã®èå¼±æ§ãä¸æã®ã©ã¤ã»ã³ã¹éåãªã©ãæ°ã«ãããã¨ãªããå®å¿ãã¦å©ç¨ãããã¨ãå¯è½ã¨ãªã£ã¦ãã¾ãã
Ansible Lightspeed ã¯ä»å¾ãæ©è½æ¡å¼µãç¶ãã¦ããã¾ããä»åã®æ©è½æä¾ã¯ãã®ç¬¬ä¸å¼¾ããã»ãã®ãããã®é¨åãã¨èãã¦ããã ãã¦ãè¯ãã¨æãã¾ããAnsible Lightspeed ã«é¢ããããã«è©³ç´°ãªã説æããå¸æã®æ¹ãã¾ããæ©è½æ¡å¼µã®ãã¼ãããããæãã¦ã»ãããªã©ãããã¾ãããå¼ç¤¾æ å½ã¾ã§ãåãåãããã ããã