資源描述:
《Chef安裝部署文檔》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在行業(yè)資料-天天文庫。
1、Chef安裝部署文檔一、文檔說明在RedHatLinux6.4(64bit)部署server-client模式的Chef環(huán)境說明:chef-server192.168.10.250RedHatLinux6.4chef-workstation192.168.10.250RedHatLinux6.4chef-client192.168.10.10RedHatLinux6.4二、安裝chef-server1.創(chuàng)建用戶“test”,并給用戶“test”系統(tǒng)管理員權(quán)限[root@localhost~]#useraddtest[root@localhost~]#passwdt
2、estChangingpasswordforusertest.Newpassword:BADPASSWORD:itistoosimplistic/systematicBADPASSWORD:istoosimpleRetypenewpassword:passwd:allauthenticationtokensupdatedsuccessfully.[root@localhost~]#vi/etc/passwdroot:x:0:0:root:/root:/bin/bashbin:x:1:1:bin:/bin:/sbin/nologin…test:x:0:0::/hom
3、e/test:/bin/bash[root@localhost~]#su-test[root@localhost~]#iduid=0(root)gid=0(root)groups=0(root)context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c10232.修改/etc/hosts文件[root@localhost~]#vi/etc/hosts127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4::1localh
4、ostlocalhost.localdomainlocalhost6localhost6.localdomain6192.168.10.250chef-server192.168.10.250chef-workstation192.168.10.10chef-client3.上傳安裝文件,將安裝介質(zhì)分別上傳到兩臺服務器上。[root@localhost~]#pwd/home/test[root@localhost~]#lschef-11.4.0-1.el6.x86_64.rpmchef-server-11.0.8-1.el6.x86_64.rpm注1:chef-s
5、erver(192.168.10.250)需要安裝server、client;chef-client(192.168.10.10)只需安裝client4.配置yum源,以備安裝必要的依賴文件1)使用RedHat系統(tǒng)安裝盤配置本地yum源[root@localhost~]#mount/dev/cdrom/mntmount:blockdevice/dev/sr0iswrite-protected,mountingread-onlymount:/dev/sr0alreadymountedor/mntbusy[root@localhost~]#vi/etc/yum.rep
6、os.d/rhel-yum.repo[rhel-source]name=RedHatEnterpriseLinux$releasever-$basearch-Sourcebaseurl=file:///mnt/Serverenabled=1gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release~5.安裝chef-server軟件包1)執(zhí)行以下命令安裝chef-server(a)[root@localhost~]#rpm-ivhchef-server-11.0.8-1.el6.x86_6
7、4.rpmwarning:chef-server-11.0.8-1.el6.x86_64.rpm:HeaderV4DSA/SHA1Signature,keyID83ef826a:NOKEYPreparing...###########################################[100%]1:chef-server###########################################[100%]ThankyouforinstallingChefServer!Thenextstepintheinstallprocessistoru
8、n:sud