Rundeckã使ã£ã¦ãªããã«å®æã¸ã§ããä½ã£ã
çããããã«ã¡ã¯
ãå
æ°ã§ãããæ¨æ¥é£ã¹ãä¸è¯ãã°ããããã£ãã§ãã
å®æçã«å®è¡ããJobãä½æã»å®è¡ããå ´åä½ã使ã£ã¦ããã§ããããï¼
ã¡ã¸ã£ã¼ãªãã¼ã«ã§ããã°ãcronãããã¾ãã
ãããããã®ãã¼ã«ã¯CUIããã¤ã
ä»ã«è²ã
追å ããããã¨ï¼ãªãã©ã¤ãéç¥ï¼ãªã©ã
è¨å®ãããå ´åã«å¤§å¤ã§ãé¢åã§ãã
ããã§ãRundeckã§ããRCO&RLSããã®åå¼·ä¼ã«è§¦çºããã¦ä½¿ã£ã¦ã¿ã¾ããã
Rundeckã¨ã¯ï¼
ä¸è¨ã§è¡¨ãã¨ã¸ã§ãã¹ã±ã¸ã¥ã¼ã©ã§ãã
ã¸ã§ããä½æããå®è¡ééã®ç®¡çãéç¥ãå®è¡æ¹å¼ãªã©ã管çã§ãã¾ãã
GUIã§å®è¡ã³ãã³ãã管çã§ããã®ã§ãé常ã«ç®¡çãããã
éå»ã®ãã°ã確èªãããããæå失æã§éç¥ãã§ãããªã©ãæ§ã
ãªã¡ãªãããããã¾ãã
å人çã«æãã¤ã使ãéã¯æ©æ¢°å¦ç¿ãããå¦çã§ããï¼
Rundeckã®èµ·å
æ©éãå®è¡ç¨ã®jarãã¡ã¤ã«ããã¦ã³ãã¼ããã¾ãããã
ãã®jarãã¡ã¤ã«ãå®è¡ããã°ç«ã¡ä¸ããã¾ããèµ·åã³ãã³ãã¯æ¬¡ã®ã¨ããã§ãã
java -jar rundeck-launcher-2.8.2.jar
èµ·åæã«å¿
è¦ãªè¨å®ãã¡ã¤ã«ç¾¤ãä½ããã¾ãã
ã¾ãã¯ãconfig/rundeck-config.propertiesã®7è¡ç®ã®grails.serverURLãå¤æ´ãã¾ãã
ä½ããèµ·åæã«ä½ãããconfigãã¡ã¤ã«ã¯serverã®URLã誤ã£ã¦ãããããç»é¢ã®é·ç§»ãã§ãã¾ããã
ãã¼ã«ã«ã§èµ·åããå ´åã¯ãlocalhostã§å¤§ä¸å¤«ã§ããlocalhostã®ä¾ã次ã«ç¤ºãã¾ãã
#rss.enabled if set to true enables RSS feeds that are public (non-authenticated) rss.enabled=false grails.serverURL=http://localhost:4440 dataSource.dbCreate = update dataSource.url = jdbc:h2:file:/Users/Tereka/Programing/Software/Rundeck/server/data/grailsdb;MVCC=true
è¨å®å¾ã«æ¹ãã¦ãµã¼ããèµ·åãã¾ãããã
Rundeckã使ã£ã¦ã¿ã
ã¾ãã¯ãã¢ã¯ã»ã¹ãã¾ããhttp://localhost:4440ã¸ã¢ã¯ã»ã¹ãã¾ãããã
ãã®ã¢ãã¬ã¹ãå
¥åããã¨ãã°ã¤ã³ç»é¢ã«é·ç§»ãã¾ãããã¡ãã¯ID, PASSå
±ã«ãadminãå
¥åãã¾ãã
ãã°ã¤ã³ããã¨ãããã¸ã§ã¯ã管çç»é¢ã«é·ç§»ãã¾ãã
ããã¸ã§ã¯ããçæããã
ã¾ãã¯ãããã¸ã§ã¯ããåå¨ããªããããããã¸ã§ã¯ããä½æãã¾ãã
ç·è²ã®ãã¿ã³ãNew Projectããã¯ãªãã¯ãã¾ãã
次ã«ããã¸ã§ã¯ãã®è¨å®ããã¾ããä»åã¯ãProject Nameããå
¥ããã®ã¿ã§è¯ãã§ãã
ä¸ã®æ¹ã«ããä½æãã¿ã³ãæ¼ãã¾ãã
ããã§ãããã¸ã§ã¯ããä½ããã¾ãããããããããã¸ã§ã¯ãã®ã¸ã§ããä½ãã¾ãã
Jobã®ä½æ
ããããå®éã«å®è¡ããã¸ã§ããä½æãã¾ãã
Workflowã§å®è¡ãããã³ãã³ããè¨å®ãã¾ãã
試ãã«ãls /tmpãã®ã³ãã³ããå®è¡ããã¸ã§ããæ§ç¯ãã¾ãã
ãWolkflowãã®Add StepããCommandãã¯ãªãã¯ãã
Commandã«ãls /tmpããå
¥åãã¾ãããã
ããã¦ãCreateãã¿ã³ãæ¼ãã¾ãã
å®è¡ï¼çµæ表示
ä½æããã¸ã§ããå®è¡ãã¾ãã
ç·è²ã®ãã¿ã³ã§ãããRun Job Nowããã¯ãªãã¯ãã¾ãããã
å®è¡ããã¨çµæã確èªã§ãã¾ããã¡ããã¨æåãã¦ãã¾ããï¼
çµæã®ã¿ãã¯ä»¥ä¸ã®æå³ãããã¾ãã
- Summaryï¼ã¸ã§ããæåãã失æããã®æ¦è¦
- Reportï¼çµæã®ã¬ãã¼ã
- Log Outputï¼æ¨æºã®åºå
- Definitionï¼ã¸ã§ãã®å®ç¾©
2ã¤ã®ã³ãã³ãã使ããçæ¹ã失æããå ´å
ååã¯ã·ã³ãã«ãªå®è¡ãããã¸ã§ãã§ããããããã次ã¯å°ã
ãªã¸ã§ããä½æãã¾ãã
ãcat /tmpãã¨ãls /tmpãã®ã³ãã³ããçµã¿åããã¾ããååã¨åãããã«è¿½å ãã¦ããã¾ãã
ä»åã®ãã¤ã³ãã¯ããRun remaining steps before faillingãã§ãã
ãããé¸æãããã¨ã§ãå段ã®ã³ãã³ãã失æããå ´åãç¶ç¶ãã¦å¾æ®µãå®è¡ããã¾ãã
ä»åã¯ãcat /tmpãã失æããls /tmpããæåãã¾ãã
å®è¡çµæã§ãããã®çµæãã2ã¤ã®ã³ãã³ããå®è¡ããã
1件ã®ã³ãã³ããæåã1件ã失æãã¦ãããã¨ããããã¾ãã
ããã§ã2ã¤ä»¥ä¸ã®ã³ãã³ããå®è¡ã§ãããã¨ã確èªã§ãã¾ããã
å®æçã«å®è¡ãã
æ¬è¨äºæå¾ã«Rundeckãå©ç¨ããå®æå®è¡ãè¡ã£ã¦ã¿ã¾ãã
ã¾ãã¯ãã¸ã§ããä½ãã¾ããä»åã¯df -hã®ãã£ã¹ã¯ç¢ºèªã³ãã³ããå®è¡ããã¿ã¹ã¯ãä½ãã¾ã
ä»åã¯ãSchedule to run repeatedly?ãã®é
ç®ãYesã«ãã¾ãã
ãããYesã«ãããã¨ã§ãå®æå®è¡ã¸ã§ãã®è¨å®ãå¯è½ã¨ãªãã¾ãã
crontabå½¢å¼ã®è¨å®ãå¯è½ã®ããããã®è¨å®ãè¡ãã¾ããè¨å®ãè¡ã£ãç»é¢ã¯æ¬¡ã«ãªãã¾ãã
ãã®crontabã®è¨å®ã ã¨æ¯åãå®è¡ããã³ãã³ãã«ãªãã¾ãã
å®è¡ç»é¢ã«é·ç§»ããæã ãªãã¼ãããã¨ãç»é¢ãæ´æ°ããã¦å®æçã«å®è¡ããããã¨ããããã¾ãã
ããã§ãªãããªå®æå®è¡ã¿ã¹ã¯ã®è¨å®ãã§ãã¾ããã
æå¾ã«
ã¾ã ã¾ã Rundeck使ãããªãã¦ãã¾ãããããªã¢ã¼ãã®ã¸ã§ããå®è¡ããã
éç¥æ©è½ï¼æ¡å¼µããã°Slackãï¼ã®å®è¡ãªã©ãè¡ããã¨ãã§ããé常ã«ä¾¿å©ã§ãã
ãã£ã±ãæ©æ¢°å¦ç¿ããããä½ãæã«ä¾¿å©ããã»ã»