Red Hat Advent Calendar 2023ã®12/6ã®è¨äºã§ãã
Red Hatã®å°å³¶ã§ãã
AWS/Azure/GCPãªã©ã®ãããªãã¯ã¯ã©ã¦ãä¸ã§æä¾ãã¦ããå¾é課éå¶ã®RHELã«ã¯ãRed Hat Satelliteã§ç®¡çããããã®ãµãã¹ã¯ãªãã·ã§ã³ãå«ã¾ãã¦ãããããç¡æã§Red Hat Satelliteãå©ç¨ã§ããããã«ãªã£ã¦ãã¾ããæ¬è¨äºã§ã¯ãRed Hat Satelliteã§ãããå¾é課éå¶ã®RHELã管çããããã®ãã¤ã³ãããç´¹ä»ãã¾ãã
- åç½®ã
- Red Hat Satelliteã®ãµãã¹ã¯ãªãã·ã§ã³
- Red Hat Satelliteå©ç¨æã®ãã¤ã³ã
- Extended Update Support (EUS)ã®å©ç¨
- åèæ å ±
åç½®ã
AWS/Azure/GCPãªã©ã®ãããªãã¯ã¯ã©ã¦ãä¸ã§æä¾ãããå¾é課éå¶ã®RHELãå©ç¨ããå ´åãRHELãæä¾ãã¦ããåã¯ã©ã¦ããã³ãã¼ãéç¨ãã¦ããRed Hat Update Infrastructure (RHUI)ã¨ãããã¯ã©ã¦ãç°å¢å°ç¨ã®RHELãªãã¸ããªãåç §ãã¦RHELã®ããã±ã¼ã¸ã®ãã¦ã³ãã¼ã/ã¤ã³ã¹ãã¼ã«/ã¢ãããã¼ããã§ããããã«äºãè¨å®ããã¦ãã¾ãããã®ãããå©ç¨è ã¯ãã¯ã©ã¦ããã³ãã¼ãéç¨ããRHUIçµç±ã§RHELããã±ã¼ã¸ãåç §ãããã¨ãåºæ¬ã¨ãªãã¾ãã
ãã ããRHUIãå©ç¨ãã¦RHELã®ããã±ã¼ã¸ç®¡çãããå ´åã以ä¸ã®ãããªè¦ä»¶ã«å¯¾å¿ããããã®æ¨æºæ©è½ã¯ããã¾ããã
- äºããã¹ãæ¸ã¿ã®ããã±ã¼ã¸ãå©ç¨ãããããã®ãç¹å®ã®æ¥æã«ãããããã±ã¼ã¸ãªãã¸ããªã®ã¹ãããã·ã§ããä½æ
- ã°ã«ã¼ãåãããRHELãµã¼ãã¼ã対象ã¨ãããä¸æ¬ã¢ãããã¼ã
ãããã®è¦ä»¶ã«å¯¾å¿ãããããã«ã¯ãRHELãªã©ã®ããã±ã¼ã¸ãªãã¸ããªç®¡çããªã¢ã¼ãå®è¡æ©è½ãæã¤Red Hat Satelliteã使ã£ãRHELã®ç®¡çãå¹æçã¨ãªãã¾ããRed Hat Satelliteã使ã£ãRHELã®ã¢ãããã¼ãã®æ¦è¦ã«ã¤ãã¦ã¯ãä¸è¨ã®è¨äºããåç §ãã ããã
Red Hat Satelliteã®ãµãã¹ã¯ãªãã·ã§ã³
å¾é課éå¶ã®RHELãå©ç¨ããç°å¢ã§Red Hat Satelliteãå©ç¨ãããå ´åãRed Hat Satelliteã®ãµãã¹ã¯ãªãã·ã§ã³ãRed Hatã«ãªã¯ã¨ã¹ããã¾ãããã®ã¨ããRed Hatã®ã¢ã«ã¦ã³ããæã£ã¦ããªããã°ãRed Hatã®ã«ã¹ã¿ãã¼ãã¼ã¿ã«ããRed Hatã¢ã«ã¦ã³ããç¡æã§ä½æãã¦ããã ããä½æããã ããRed Hatã¢ã«ã¦ã³ãã«Red Hat Satelliteã®ãµãã¹ã¯ãªãã·ã§ã³ãç´ã¥ãããã¨ã«ãªãã¾ãã
Red Hat Satellitenã®ãµãã¹ã¯ãªãã·ã§ã³ã®ãªã¯ã¨ã¹ãå ã¯ãRed Hatã«ã¹ã¿ãã¼ãµã¼ãã¹ã¨ãªãã¾ããRed Hat ã«ã¹ã¿ãã¼ãµã¼ãã¹ã§ã¯ãRed Hatã®ã¢ã«ã¦ã³ããè«æ±ãç»é²ããµãã¹ã¯ãªãã·ã§ã³é¢é£ã®ãåãåããã«å¯¾å¿ãã¦ãã¾ãã
ããã«ãã£ã¦ããRed Hat Satellite Infrastructure Subscriptionãã¨ããRed Hat Satelliteå°ç¨ã®ãµãã¹ã¯ãªãã·ã§ã³ãå²ãå½ã¦ããã¾ãããã®ãµãã¹ã¯ãªãã·ã§ã³ã«ã¯ãRed Hat Satelliteã ãã§ãªããRed Hat Satelliteãå®è¡ããããã®å°ç¨ã®RHELãµãã¹ã¯ãªãã·ã§ã³ãå«ã¿ã¾ãããã®ãµãã¹ã¯ãªãã·ã§ã³ãå ¥æãããã¨ã§ãRed Hat SatelliteãRHELã«ã¤ã³ã¹ãã¼ã«ãã¦ä½¿ããã¨ãã§ããããã«ãªãã»ãã«ãRed Hatãã«ã¹ã¿ãã¼ãã¼ã¿ã«ä¸ã§æä¾ãã¦ãããã¬ãã¸ãã¼ã¹ãè¦ããã¨ãã§ããããã«ãªãã¾ããã¾ãããã®ãµãã¹ã¯ãªãã·ã§ã³ãå©ç¨ãã¦ãRed Hat SatelliteãRed Hatã®CDNããRHELããã±ã¼ã¸ããã¦ã³ãã¼ãã§ããããã«ããããã®ãããã§ã¹ããä½æãã¾ãã
Red Hat Satelliteå©ç¨æã®ãã¤ã³ã
Red Hat Satelliteãã¯ã©ã¦ãç°å¢ã§å©ç¨ããå ´åãDHCPãµã¼ãã¹ãå©ç¨ããPXEã«ãããããã¸ã§ãã³ã°ã¯å©ç¨ä¸å¯ãªã©ã®å¶éäºé ãããã¾ããããããæ å ±ã«ã¤ãã¦ã¯ãAWSãAzureä¸ã§ã®Red Hat Satelliteãããã¤ã¬ã¤ãããåç §ãã ããã
Red Hat Satelliteã§å¾é課éå¶ã®RHELã管çããå ´åãSimple Content Access (SCA)ãæå¹ã«ããå¿ è¦ãããã¾ããSCAã¯ãµãã¹ã¯ãªãã·ã§ã³ã®å©ç¨ãç°¡åã«ããããã«ããµãã¹ã¯ãªãã·ã§ã³ã®å¿ è¦æ¬æ°ã管çã»å¼·å¶ããæ©è½ã失ããããªãã·ã§ã³ã§ããSCAã«ãã£ã¦ãå¾é課éå¶ã®RHELãµã¼ãã¼ã«(Red Hatãçºè¡ãã)RHELã®ãµãã¹ã¯ãªãã·ã§ã³ãé½åº¦å²ãå½ã¦ããã¨ãªããRed Hat Satelliteã§ç®¡çã§ããããã«ãªãã¾ããSCAã¯ãRed Hatã¢ã«ã¦ã³ããæ°ããä½ãã¨ãã¯ããã©ã«ãã§æå¹ã«ãªã£ã¦ãã¾ãã
æããRed Hatã¢ã«ã¦ã³ããæã£ã¦ãã¦ãSCAãæå¹ã«ãªã£ã¦ããªãå ´åã¯ãRed Hat Subscription Managementããæå¹ã«ã§ãã¾ããã¾ããRed Hat Sattelliteã«Red Hatãµãã¹ã¯ãªãã·ã§ã³ãã¤ã³ãã¼ããã¦ãRHELãªã©ã®ããã±ã¼ã¸ãRed Hatã®CDNãããã¦ã³ãã¼ãããããã«å©ç¨ãããããã§ã¹ãã§ããSCAã¯ããã©ã«ãã§æå¹ã«ãªã£ã¦ãã¾ãããã®ãããä»ããå¾é課éå¶ã®RHELãä½ã£ã¦ãRed Hat Satelliteã§ç®¡çãããã¨ããå ´åãSCAã®è¨å®ã«ã¤ãã¦ç¹ã«å¤æ´ããå¿ è¦ã¯ããã¾ããã
SCAã«ã¤ãã¦ã¯ãä¸è¨ã®ããã°ããåç §ãã ããã rheb.hatenablog.com
Red Hat Satelliteãæä¾ããRHELãªãã¸ããªã ããå©ç¨ãããå ´åãå¾é課éå¶ã®RHELãRHUIãå©ç¨ããããã®è¨å®ãåé¤ãã¦ããã¾ãããã®è¨å®ã¯ãåã¯ã©ã¦ããã³ãã¼ãæä¾ããããã±ã¼ã¸ã«ãã£ã¦ã¤ã³ã¹ãã¼ã«ããã¦ããå ´åãyum remove
ã³ãã³ãã§åé¤ã§ãã¾ããRHUIãå©ç¨ããè¨å®ã«æ»ãã¨ãã®ãã¨ãèãã¦ããããã®ããã±ã¼ã¸ãäºãyum download
ã³ãã³ãã§ãã¦ã³ãã¼ããã¦ããã¦ãããã§ããããAWS/Azure/GCPã®å ´åã®ä¾ãè¨è¼ãã¦ããã¾ãã
AWS
$ sudo yum download rh-amazon-rhui-client $ sudo yum remove rh-amazon-rhui-client
Azure (Xã«ã¯RHELã®ã¡ã¸ã£ã¼ãªãªã¼ã¹ã®çªå·(7, 8, 9ãªã©)ãå ¥ãã¾ã)
$ sudo yum download rhui-azure-rhelX $ sudo yum remove rhui-azure-rhelX
GCP (Xã«ã¯RHELã®ã¡ã¸ã£ã¼ãªãªã¼ã¹ã®çªå·(7, 8, 9ãªã©)ãå ¥ãã¾ã)
$ sudo yum download google-rhui-client-rhelX $ sudo yum remove google-rhui-client-rhelX
ã¾ãããããã®RHELãRed Hat Satelliteã«ç»é²ãã¦å©ç¨ããéã«ãRHELã®Subscription Managerã«ãã£ã¦ãªãã¸ããªè¨å®ãç¡å¹åããã¦ãããããRed Hat Satelliteã®ãªãã¸ããªå©ç¨ãæå¹ã«ãªããªãå ´åãããã¾ãããã®ã¨ãã¯ãsubscription-manager
ã³ãã³ããå©ç¨ãã¦ããªãã¸ããªè¨å®ãæå¹åãã¾ãã
$ sudo subscription-manager config --rhsm.manage_repos=1
ãªããRed Hat SatelliteãRed Hat CDNãããã¦ã³ãã¼ãããRHELããã±ã¼ã¸ã¨ãRHUIçµç±ã§ãã¦ã³ãã¼ãã§ããRHELããã±ã¼ã¸ã¯åããã®ã§ããRed Hatã¯ããã±ã¼ã¸ãã©ã¦ã¶ã®Webãã¼ã¸ã§åRHELããã±ã¼ã¸ã®SHA-256ãå
¬éãã¦ããããããããã®å¤ã¨sha256sum
ã³ãã³ãã®å®è¡çµæãç
§ããåããããã¨ã§ç¢ºèªã§ããããã«ãªã£ã¦ãã¾ãã
$ sha256sum XXX.rpm
ãã®ãããã¯ã©ã¦ããã³ãã¼ãRHUIçµç±ã§ãã¦ã³ãã¼ãã§ããããã«ãã¦ããRHELããã±ã¼ã¸ã«ã¤ãã¦ã¯ãRed Hat Satelliteçµç±ã§ãã¦ã³ãã¼ããã¦å©ç¨ããã¨ãã¦ããã¯ã©ã¦ããã³ãã¼ã®ãµãã¼ããåãããã¨ãã§ãã¾ããRed Hat Satelliteãå©ç¨ããç°å¢ã§ã®ã¦ã¼ã¹ã±ã¼ã¹ã«ã¤ãã¦ãåãåããå ã¯ä¸è¨ã®ããã«ãªãã¾ãã
- åãåããå
ãã¯ã©ã¦ããã³ãã¼:
ã¯ã©ã¦ããã³ãã¼ãæä¾ããRHELã¨ãRHUIçµç±ã§æä¾ãã¦ããããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«/å©ç¨/è¨å® - åãåããå
ãRed Hat:
Red Hat Satelliteã®ã¤ã³ã¹ãã¼ã«/å©ç¨/è¨å®ãRed Hat Satelliteã¸ã®RHELç»é²
Extended Update Support (EUS)ã®å©ç¨
2023å¹´12ææç¹ã§ã¯ãAWSã¨Azureã®å¾é課éå¶RHELã«ã¯ãRHEL8.8ãRHEL9.2ãªã©ç¹å®ã®ãã¤ãã¼ãªãªã¼ã¹ã«ããã¦EUSã¨ãã延é·ãµãã¼ããç¡æã§å©ç¨ã§ããããã«ãªã£ã¦ãã¾ããGCPã®å¾é課éå¶RHELã«ã¯EUSã¯ä»ãã¦ãã¾ãããEUSãå©ç¨ãããã¨ã§ããã¤ãã¼ãªãªã¼ã¹éã®ã¢ããã°ã¬ã¼ãé »åº¦ãä¸ãã¦ãã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ãæéãååã«åããã¨ãã§ããããã«ãªãã¾ãã
AWSãAzureã®RHEL EUSã®å©ç¨æ¹æ³ã«ã¤ãã¦ã¯ãä¸è¨ããåç §ãã ããããªããAWSã«ã¤ãã¦ã¯ã2023å¹´12ææç¹ã§RHEL8.6, 8.8, 9.0, 9.2ã®EUSãå©ç¨ã§ããããã«ãªã£ã¦ãã¾ããRHEL7ã®EUSã«ã¤ãã¦ã¯ãã§ã«çµäºãã¦ãã¾ãã®ã§ãã注æãã ããã
ä¸æ¹ã§ãå¾é課éå¶ã®RHELã¦ã¼ã¶ã¼ãå©ç¨ã§ããRed Hat Satelliteã®ãããã§ã¹ãã«ã¯ãRHELã®EUSã¯å«ã¾ãã¦ãã¾ããããã®ãããRed Hat SatelliteãRed Hat CDNãããã¦ã³ãã¼ãã§ããªãããã«ãªã£ã¦ãã¾ããEUSã®ããã±ã¼ã¸ãRed Hat Satelliteä¸ã®ãªãã¸ããªã¨ãã¦å©ç¨ã§ããããã«ããã«ã¯ãæå ã«ãã¦ã³ãã¼ãããEUSã®ããã±ã¼ã¸ãRed Hat Satelliteã«ã¤ã³ãã¼ãããã¨ãã£ã工夫ãå¿ è¦ã«ãªã£ã¦ãã¾ãã
ä¸è¨ã®ã¬ã¤ãã«å¾ã£ã¦å©ç¨ã§ããããã«ããRHEL EUSã®ãªãã¸ããªã«ã¤ãã¦ã¯ãreposync
ã³ãã³ãã§ä¸¸ãã¨ãã¦ã³ãã¼ãã§ãã¾ãã--download-metadata
ãªãã·ã§ã³ãæå®ãããã¨ã§ãã¨ã©ã¼ã¿ãªã©ã®ã¡ã¿ãã¼ã¿ããã¦ã³ãã¼ããã¾ããä¸è¨ã¯ãRHEL9 EUSãªãã¸ããªãæå¹åããAWSä¸ã®RHEL9ãµã¼ãã¼ã§ãRHEL9 EUSã®BaseOS, AppStreamãªãã¸ããªã®ããã±ã¼ã¸ããã¦ã³ãã¼ãããreposync
ã³ãã³ãã®å®è¡ä¾ã§ãã
$ sudo reposync -p <ãã¦ã³ãã¼ãå ã¨ãªããã£ã¬ã¯ããªã®PATH> --download-metadata \ --repoid=rhel-9-baseos-eus-rhui-rpms --repoid=rhel-9-appstream-eus-rhui-rpms
reposyncã«ã¤ãã¦ã¯ãä¸è¨ã®ãã¬ãã¸ããåç §ãã ããã
ããã«ãã£ã¦ããrhel-9-baseos-eus-rhui-rpmsãã¨ãrhel-9-appstream-eus-rhui-rpmsããã£ã¬ã¯ããªãä½æããããã®ä¸ã«ãEUSãªãã¸ããªã«å«ã¾ããããã±ã¼ã¸ã¨ã¡ã¿ãã¼ã¿ãä¿åããã¾ãããããã®ãã£ã¬ã¯ããªãRed Hat Satelliteã«ã¤ã³ãã¼ããã¦ãEUSã®ãªãã¸ããªã¨ãã¦ä½æãã¾ãããã®å ´åãRed Hat Satelliteã§ã¯ã«ã¹ã¿ã RPMãªãã¸ããªã¨ãã¦æ±ããã¾ããã¤ã³ãã¼ãã«ã¯ãããã±ã¼ã¸ã®æåã¢ãããã¼ãã®ã»ãã«ãå¤é¨ãªãã¸ããªã®URLã¨ãã¦http(s)://
ã¨file://
ãæå®ããæ¹æ³ãããã¾ããfile://
ãæå®ããå ´åã¯ãRed Hat Satelliteãµã¼ãã¼ã®/var/lib/pulp/sync_imports/
ãã£ã¬ã¯ããªã¼ã®ä¸ã«ãrhel-9-baseos-eus-rhui-rpmsãã¨ãrhel-9-appstream-eus-rhui-rpmsããã£ã¬ã¯ããªãã³ãã¼ãã¦ããå¿
è¦ãããã¾ãã
ãããã®å ·ä½çãªæé ã«ã¤ãã¦ã¯ãä¸è¨ããåç §ãã ããã
ãã®ããã«ãªãã¸ããªãä½æãã¦Red Hat Satelliteä¸ã§å ¬éããRHELãRed Hat Satelliteã«ç»é²ããã¨ãRed Hat Satelliteä¸ã§ç»é²ããRHELã®æ å ±(ã¤ã³ã¹ãã¼ã«æ¸ã¿ã®ããã±ã¼ã¸ããã¤ã³ã¹ãã¼ã«å¯è½ãªæ´æ°ããã±ã¼ã¸ãªã©)ã確èªã§ããããã«ãªããã°ã«ã¼ãåãããRHELãµã¼ãã¼ã¸ã®ä¸æ¬ã¢ãããã¼ãã®ãªã¢ã¼ãå®è¡ãã§ããããã«ãªãã¾ãããããã®å ·ä½çãªæé ã«ã¤ãã¦ã¯ããåèæ å ±ãã«è¨è¼ãã¦ããRed Hat Satelliteã®ããã¥ã¡ã³ãããåç §ãã ããã