2024年3月27日 星期三

【IT Notes】RHCE測驗第二題 CREATE YUM REPOSITORIES

As a system administrator, you will need to install software on the managed nodes. Create the playbook /home/student/ansible/yum_repo.yml which creates the following yum repositories on each of the managed nodes as follows:

【題前說明】
 這題在RHCE8不是用yml來做的,而是用shell的方式安裝yum repo,到了RHCE9以後就變成要求要用ansible執行yml來部署,這題要是做不出來的話,當然後面的很多題目可能也就沒有檔案可以下載,最後考試
也泡湯了。如同下面的第三題,這兩題讓我印象深刻,因為我是上RHCE8,但考前上了衝刺班得到了改版後改提也變更的資訊,一個禮拜之內趕緊補強這幾題,幸虧最後來得及複習,但考是坐我旁邊的同學就沒那麼幸運,記得當時他很慌張,因為他也跟我一樣是上一版本的課程,不過他沒有上衝刺班,等於第二和第三題他都不曉得,所以得要強調這幾題目前的變化!


2024年3月23日 星期六

【IT Notes】RHCE測驗第一題 INSTALL AND CONFIGURE ANSIBLE

Install and configure Ansible on the control node workstation.example.com as follows:

  • Install the required packages

  • Create a static inventory file called /home/student/ansible/inventory so that:

    • node1 is a member of the dev host group
    • node2 is a member of the test host group
    • node3 and node4 are members of the prod host group
    • node5 is a member of the balancers host group
    • The prod group is a member of the webservers host group
  • Create a configuration file called /home/student/ansible/ansible.cfg so that:

    • The host inventory file is /home/student/ansible/inventory
    • The default content collections directory is /home/student/ansible/mycollections
    • The default roles directory is /home/student/ansible/roles

【題前說明】
 第一題只是很單純地依題目要求把環境和路徑都先設定好,唯一不同於上一個版本的地方就是多了mycollections的設定,這會影響到第三題和後面很多會用到roles的題目,記得當時寫解題的時候我把config檔內的
mycollections路徑打錯了,因為卡住幾分鐘的時間被迫回頭檢查兩次後才發現,當時也算是冒了一點冷汗。

2024年3月12日 星期二

【IT Notes】RHCE考試環境建置

大半年沒有寫網誌了,除了結婚的籌備和蜜月旅行以外,我還忙了一段時間在處理搬家事宜,再來是上一分工作實在沒有太多技術文件可以寫,大部分時間都在搞infra,而且重複性很高,目前換了新工作,又回到Linux環境了,但是考試已經過了半年,得要趕快趁還沒有忘記考試內容前把細節記錄下來,以便將來遇到時有用。考試環境的練習,是先能夠要建立七台VM,大部分的網路上解答都沒有提到這部分,但其實它也很重要

【當兵回憶】八里連

 在我心目中新兵日記是天花板等級的軍教片,並不是說沒有比它更好的作品,只是因為它的在拍攝的背景和時間,也正是我在服兵役的同時,老婆很多次好奇問我,為什麼我總是放在YouTube的新兵日記直播,我都說我只放在有個聲音在,我沒有真正在看,但這行為仔細想想也好多年了吧!台詞聽到我都會背...