1. 程式人生 > >自動化運維工具安裝部署 chef (一) - 測試環境配置

自動化運維工具安裝部署 chef (一) - 測試環境配置

系統/運維 Linux

最近一直在做tensorflow的研究,看書看視頻群內討論什麽的,有些頭大,抽空刷朋友圈看到有朋友一直關註devops,市面上也有相關人員需求,索性抽空玩一個自動化運維的產品chef,加上之前也有開發過相關運維產品,對比下rundeck,看看這個有什麽好玩。

官網

https://www.chef.io

白皮書

https://pages.chef.io/rs/255-VFB-268/images/Continuous-Automation-for-the-Continuous-Enterprise.pdf

可以外接的平臺很多,可玩性很弓雖

技術分享圖片

合作夥伴列表,四大IT公司沒有DELL和微軟,想了想這兩家是一家公司,而且微軟有自己的automation 工具System center 2016了。

技術分享圖片

價格RMB850一個節點每年,不是開源軟件。。。。。

12*5技術支持

技術分享圖片

使用之前的說明書要看一下的,youtube要×××

技術分享圖片

Recommended skill building and learning resources

https://training.chef.io/catalog - Instructor led training

https://www.youtube.com/watch?v=uJatZZbnjJE - Chef Automate Overview video

https://www.youtube.com/watch?v=DadjX_0z3wc - Available Chef learning resources

https://learn.chef.io/tutorials - Free Chef tutorials

get start 在這裏

https://www.chef.io/chef/get-chef/

下載

https://downloads.chef.io/chefdk

https://downloads.chef.io/chef-server

基本支持全平臺了,大致架構是server端負責分發,workstation負責編寫腳本上傳至server,client就是受控節點

https://docs.chef.io/install_server.html

Standalone?

The standalone installation of Chef server creates a working installation on a single server. This installation is also useful when you are installing Chef server in a virtual machine, for proof-of-concept deployments, or as a part of a development or testing loop.

在POC環境下,可以把以獨立方式安裝部署測試,本文以standalone架構進行測試

看下我測試環境的centos版本el7的

技術分享圖片

用戶名還是pactera,都是滿滿的回憶

好久沒開虛擬機了,先同步下時間,尼瑪還沒有權限。。。。

技術分享圖片

切換到root,然後換成上海時間

技術分享圖片

cp -f /usr/share/zoneinfo/asia/shanghai /etc/localtime

同步下時間

技術分享圖片

nmtui先改一下hostname

技術分享圖片

然後reboot下

技術分享圖片

前期準備環境完畢,基本上前前後後就搞了小半天。

https://downloads.chef.io/chef-server

開始下載,服務端258M,4小時

技術分享圖片

客戶端同時下,然後先掛機了。

技術分享圖片

自動化運維工具安裝部署 chef (一) - 測試環境配置