install chef replication
2015-09-09 17:45
363 查看
service iptables stop
#configure ip mapping of master and replication
vi /etc/hosts
146.89.179.218 deehops014ccpra.ssm.sdc.gts.ibm.com deehops014ccpra
146.89.136.162 deehchf014ccpra.ssm.sdc.gts.ibm.com deehchf014ccpra
#install chef server
rpm -Uvh chef-server-core-12.0.5-1.el6.x86_64.rpm
chef-server-ctl reconfigure
# install chef manage,used to support webui
rpm -Uvh opscode-manage-1.18.0-1.el6.x86_64.rpm
opscode-manage-ctl reconfigure
chef-server-ctl reconfigure
#validate chef server install
chef-server-ctl test
#create directory to store pem of user and organization
cd /
mkdir pem
#create user
chef-server-ctl user-create devopssite site devops devopssite@cn.ibm.com devopssite --filename /pem/devopssite.pem
#cerate organization,and associate user with organization
chef-server-ctl org-create siteng SITENG --association_user devopssite --filename /pem/siteng-validator.pem
#install chef client as chef workstation
rpm -Uvh chef-12.1.2-1.el6.x86_64.rpm
#validate chef client install
chef-client -v
#create directory structure like this
# /home/chef/chef-repo/.chef
cd /home
mkdir chef
cd chef
cp ~/chef/chef-chef-repo-605eeda.tar.gz .
tar -zxf chef-chef-repo-605eeda.tar.gz
mv chef-chef-repo-605eeda chef-repo
cd chef-repo
mkdir .chef
cd /pem
cp devopssite.pem /home/chef/chef-repo/.chef/
cp siteng-validator.pem /home/chef/chef-repo/.chef/
#configure chef workstation
knife configure --initial
Where should I put the config file?
/home/chef/chef-repo/.chef/knife.rb
Please enter the chef server URL:
https://deehchf014ccpra.ssm.sdc.gts.ibm.com:443/organizations/siteng
Please enter a name for the new user:
devopssite
Please enter the existing admin name:
devopssite
Please enter the location of the existing admin's private key:
/home/chef/chef-repo/.chef/devopssite.pem
Please enter the validation clientname:
siteng-validator
Please enter the location of the validation key:
/home/chef/chef-repo/.chef/siteng-validator.pem
Please enter the path to a chef repository
/home/chef/chef-repo
Please enter a password for the new user:
devopssite
#ignore warning and continue
#validate configure chef workstation
cd /home/chef/chef-repo/.chef
knife client list
knife user list
#use to solve authentication problem above
knife ssl fetch
#configure ip mapping of master and replication
vi /etc/hosts
146.89.179.218 deehops014ccpra.ssm.sdc.gts.ibm.com deehops014ccpra
146.89.136.162 deehchf014ccpra.ssm.sdc.gts.ibm.com deehchf014ccpra
#install chef server
rpm -Uvh chef-server-core-12.0.5-1.el6.x86_64.rpm
chef-server-ctl reconfigure
# install chef manage,used to support webui
rpm -Uvh opscode-manage-1.18.0-1.el6.x86_64.rpm
opscode-manage-ctl reconfigure
chef-server-ctl reconfigure
#validate chef server install
chef-server-ctl test
#create directory to store pem of user and organization
cd /
mkdir pem
#create user
chef-server-ctl user-create devopssite site devops devopssite@cn.ibm.com devopssite --filename /pem/devopssite.pem
#cerate organization,and associate user with organization
chef-server-ctl org-create siteng SITENG --association_user devopssite --filename /pem/siteng-validator.pem
#install chef client as chef workstation
rpm -Uvh chef-12.1.2-1.el6.x86_64.rpm
#validate chef client install
chef-client -v
#create directory structure like this
# /home/chef/chef-repo/.chef
cd /home
mkdir chef
cd chef
cp ~/chef/chef-chef-repo-605eeda.tar.gz .
tar -zxf chef-chef-repo-605eeda.tar.gz
mv chef-chef-repo-605eeda chef-repo
cd chef-repo
mkdir .chef
cd /pem
cp devopssite.pem /home/chef/chef-repo/.chef/
cp siteng-validator.pem /home/chef/chef-repo/.chef/
#configure chef workstation
knife configure --initial
Where should I put the config file?
/home/chef/chef-repo/.chef/knife.rb
Please enter the chef server URL:
https://deehchf014ccpra.ssm.sdc.gts.ibm.com:443/organizations/siteng
Please enter a name for the new user:
devopssite
Please enter the existing admin name:
devopssite
Please enter the location of the existing admin's private key:
/home/chef/chef-repo/.chef/devopssite.pem
Please enter the validation clientname:
siteng-validator
Please enter the location of the validation key:
/home/chef/chef-repo/.chef/siteng-validator.pem
Please enter the path to a chef repository
/home/chef/chef-repo
Please enter a password for the new user:
devopssite
#ignore warning and continue
#validate configure chef workstation
cd /home/chef/chef-repo/.chef
knife client list
knife user list
#use to solve authentication problem above
knife ssl fetch
相关文章推荐
- 20150909解决浏览器兼容问题
- 通过curl的并发机制实现php批量网络请求
- 为ElasticSearch添加HTTP基本认证
- hdu1558基础dp(求最大子矩阵)
- 关于thrift java实例入门
- SDWebImage的使用
- IIS下载,WebClient().DownloadFile下载
- 0909 编译的开始
- Java实现常见排序
- LoadRunner 学习(2015-9-9)
- sql脚本转换(各类数据库语言)
- 处理“System.Web.HttpException: 超过了最大请求长度”
- Css实现透明效果,兼容IE8
- Enable 32bit dll work on 64bit environment
- nginx的学习(配置文件,以及部署的疑惑)
- 处理器架构简介
- PMC在2015闪存峰会的5个精彩瞬间
- install chef master
- 通过POJ 3463 Sightseeing(dijkstra)彻底理解优先队列优化的dijkstra算法
- UVa 10223 - How many nodes ?