自动化运维工具安装部署 chef (二) - server的安装

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了自动化运维工具安装部署 chef (二) - server的安装相关的知识,希望对你有一定的参考价值。

经过一个晚上的下载,终于下载好了

技术分享图片

安装前先抓个虚拟机镜像

技术分享图片

原始文档

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

开始安装

技术分享图片

安装完成

技术分享图片

初始化下

[[email protected]_server chef]# chef-server-ctl reconfigure

技术分享图片

初始化失败鸟。。。。

common_name is required

用vi改了 /etc/hosts,ping了一下自己配置的FQDN名,通的,再次重新配置一样错误

谷歌了下错误,输入

hostname localhost

好的,你牛逼,开始了,看起来要等很久的样子,先吃饭去了

技术分享图片

煲仔饭回来一看,完成了

技术分享图片

打开https://192.168.209.133/ 访问不了

systemctl stop firewalld

systemctl disable firewalld

防火墙停了就显示出来了

技术分享图片

需要安装管理并且进行配置,下面安装管理端

[[email protected]_server chef]# chef-server-ctl install chef-manage -path /usr/chef/chef-manage-2.5.4-1.el7.x86_64.rpm

技术分享图片

我是直接从网站下了放了path路径中

https://packages.chef.io/files/stable/chef-manage/2.5.4/el/7/chef-manage-2.5.4-1.el7.x86_64.rpm

否则就是从远程下载,然后卡在这里动也不动

技术分享图片

On the Chef server, run:

$ chef-server-ctl install chef-manage

then:

$ chef-server-ctl reconfigure

and then:

$ chef-manage-ctl reconfigure

连续好几次卡在安装界面,复制了chef manager 到目录,开始安装,简单暴力

[[email protected]_server local-mode-cache]# rpm -ivh chef-manage-2.5.4-1.el7.x86_64.rpm

技术分享图片

技术分享图片

初始化chef manager组件

技术分享图片

5分钟安装结束

技术分享图片

https://192.168.209.133/login 出现了登录窗口

技术分享图片

新开一个窗口,生成用户名和组织

chef-server-ctl user-create pcdog hao yu [email protected] [email protected] --filename /usr/chef/pcdog.pem

技术分享图片

管理端大致完成

技术分享图片

以上是关于自动化运维工具安装部署 chef (二) - server的安装的主要内容,如果未能解决你的问题,请参考以下文章

运维自动化之批量部署工具cobbler的安装

Ansible自动化运维管理工具的概述与部署

Ansible自动化运维管理工具的概述与部署

自动化运维之ansible-安装部署与基础命令篇

自动化运维工具之ansible

自动化运维工具Ansible实战安装部署