自动化运维工具安装部署 chef (六)命令行总结
抽空继续chef的实验,理解了它的架构,测试环境重新推到重来
server
yum install vsftpd -y
vi /etc/vsftp/ftp_user
vi /etc/vsftp/user_list
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
vi /etc/selinux/config
systemctl restart vsftpd
systemctl enable vsftpd
vi /etc/hosts
scp /etc/hosts root@192.168.209.137:/etc/
scp /etc/hosts root@192.168.209.138:/etc/
rpm -ivh chef-server-core-12.17.33-1.el7.x86_64.rpm
rpm -ivh chef-manage-2.5.4-1.el7.x86_64.rpm
chef-server-ctl reconfigure
chef-manage-ctl reconfigure
chef-server-ctl user-create admin admin admin pcdogyu@hotmail.com password -f /etc/chef/admin.pem
chef-server-ctl org-create pactera "Pactera Inc" --association_user admin -f /etc/chef/validator.pem
chef-server-ctl status
workstation
rpm -ivh chef-13.8.5-1.el7.x86_64.rpm
chef-client -v
rpm -ivh chefdk-2.4.17-1.el7.x86_64.rpm
chef verify
echo 'eval "$(chef shell-init bash)"' >> ~/.bash_profile
source ~/.bash_profile
which ruby
cd /usr/chef
chef generate repo chef-repo
yum install -y git
git config --global user.name "admin"
git config --global user.email "pcdogyu@hotmail.com"
cd chef-repo
git init
git add . git commit -m "initial commit"
scp -pr root@chefserver:/etc/chef/admin.pem /usr/chef/chef-repo/.chef/
scp -pr root@chefserver:/etc/chef/validator.pem /usr/chef/chef-repo/.chef/
cd ~/chef-repo
knife client list
knife bootstrap 192.168.209.137 -x root -P password -N workstation
knife ssl fetch
knife ssl check
knife client list
knife user list
scp knife.rb root@192.168.209.138:/usr/chef/chef-repo/.chef
scp validator.pem root@192.168.209.138:/usr/chef/chef-repo/.chef
scp admin.pem root@192.168.209.138:/usr/chef/chef-repo/.chef
node
systemctl enable vsftpd
systemctl start vsftpd
systemctl disable firewalld
systemctl stop firewalld
rpm -ivh chef-13.8.5-1.el7.x86_64.rpm
chef-client -v
echo 'eval "$(chef shell-init bash)"' >> ~/.bash_profile
source ~/.bash_profile
which ruby
cd /usr/chef/chef-repo
#chef generate repo chef-repo
knife ssl fetch
knife ssl check
knife client list
knife user list
knife bootstrap 192.168.209.138 -x root -P password -N Node
knife node list
阅读更多- 自动化运维工具安装部署 chef (九)- 重温安装
- 自动化运维工具安装部署 chef (一) - 测试环境配置
- 自动化运维工具安装部署 chef (二) - server的安装
- 自动化运维工具安装部署 chef (九)- 重温安装
- 自动化运维工具 puppet安装部署
- 自动化运维工具--Ansible(安装部署、模块简介与操作)
- 比Ansible更吊的自动化运维工具,自动化统一安装部署自动化部署unifyDeploy0.4版本发布
- [2] DevOps 自动化运维工具Chef----在Ubuntu上安装最新的Chef server core 12.1
- 自动化运维工具Ansible实战(一)安装部署
- [5]DevOps 自动化运维工具Chef---Unbuntu系统下,Chef Client 安装位置介绍
- [6]DevOps 自动化运维工具Chef---如何通过Chef WorkStation在Window 7客户机节点上远程自动安装最新的Chef Client?
- 自动化运维工具Ansible实战安装部署
- 自动化运维工具Ansible(一)---安装部署
- 自动化运维工具Ansible实战(一)安装部署
- 部署 SaltStack 自动化运维工具,并简易批量安装 httpd 服务
- [7]DevOps 自动化运维工具Chef---如何安装Chef的Report?
- [3] DevOps 自动化运维工具Chef----在Ubuntu上安装最新的Chef WorkStation 12.13.37
- [4] DevOps 自动化运维工具Chef----在Ubuntu上安装最新的Chef Client 12.13.37 并和Chef server关联起来
- 比Ansible更吊的自动化运维工具,自动化统一安装部署_自动化部署udeploy1.0
- 自动化运维工具Puppet服务安装和部署详解