git clone https://github.com/ceph/calamari.git
yum install gcc gcc-c++ postgresql-libs python-virtualenv rpm-build -y
cd calamari && ./build-rpm.sh
cd ../rpmbuild/SOURCES
tar zxvf calamari-server_1.5.2.tar.gz
cd calamari-server-1.5.2
make&&make install
calamari-ctl initialize
git clone https://github.com/ceph/romana.git
gem sources -r https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l
yum install npm ruby rubygems -y
npm install -g grunt grunt-cli bower grunt-contrib-compass
gem update --system && gem install compass
cd romana
make dist
//romana目录下有admin,dashboard,login,manage 4个子目录,分别进入每个目录并执行grunt build
cd admin
grunt build
cd ../dashboard
grunt build
cd ../login
grunt build
cd ../manage
grunt build
//拷贝dist到opt目录
mkdir -p /opt/calamari/webapp/content/admin
mkdir -p /opt/calamari/webapp/content/dashboard
mkdir -p /opt/calamari/webapp/content/login
mkdir -p /opt/calamari/webapp/content/manage
cd romana
cp -rf admin/dist/* /opt/calamari/webapp/content/admin
cp -rf dashboard/dist/* /opt/calamari/webapp/content/dashboard
cp -rf login/dist/* /opt/calamari/webapp/content/login
cp -rf manage/dist/* /opt/calamari/webapp/content/manage
service httpd restart
git clone https://github.com/ceph/Diamond
cd Diamond
make rpm
//将生成的diamond-<version>.noarch.rpm复制到所有的ceph服务器142/143/144,并执行
yum localinstall diamond-<version>.noarch.rpm
cp /etc/diamond/diamond.conf.example /etc/diamond/diamond.conf
service diamond restart
//在所有的ceph服务器上安装salt-minion:
yum install salt-minion
mkdir -p /etc/salt/minion.d/
touch /etc/salt/minion.d/calamari.conf
echo "master: 192.168.86.128" > /etc/salt/minion.d/calamari.conf
service salt-minion restart
在Calamari服务器(192.168.86.128)上配置防火墙和saltstack认证
防火墙(允许ceph服务器访问salt-master和carbon)
salt-master
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 4505 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 4506 -j ACCEPT
carbon
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 2003 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 2004 -j ACCEPT
6、saltstack认证:
当ceph服务器上的salt-minion服务启动之后,会自动向salt-master请求认证。
在Calamari服务器上可以通过下面的命令查看待认证的salt-minion密钥的列表:
salt-key -L
对这些密钥进行认证:
salt-key -A
认证成功后可以看到Accepted Keys:
网友评论