Centos 6.8安装puppetserver+dashboard

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos 6.8安装puppetserver+dashboard相关的知识,希望对你有一定的参考价值。

Centos 6.8安装puppetserver+dashboard:

安装puppetserver:

下载网址:
http://yum.puppetlabs.com/puppet5/el/6/x86_64

yum install java-1.8.0-openjdk-headless

rpm -i puppetserver-5.3.0-1.el6.noarch.rpm puppet-agent-5.3.1-1.el6.x86_64.rpm

ln -s /opt/puppetlabs/bin/puppet /usr/bin/

/etc/init.d/puppetserver restart

chkconfig --level 35 puppetserver on

安装puppet-dashboard:

下载网址:
http://rpm.pbone.net/index.php3/stat/4/idpl/23733640/dir/centos_6/com/puppet-dashboard-1.2.17-13.1.noarch.rpm.html

yum install ruby

yum install rubygems

rpm -i ruby-mysql-2.8.2-1.el6.x86_64.rpm rubygem-rake-0.8.7-2.1.el6.noarch.rpm puppet-dashboard-1.2.17-13.1.noarch.rpm

yum install mysql-server

service mysqld start

mysql -u root

use mysql;
update user set password=password("xxxxxxx") where user=‘root‘;
create database puppetdash default character set utf8;
grant all on puppetdash.* to [email protected]‘localhost‘ identified by ‘xxxxxx‘;
flush privileges;
exit

vi /usr/share/puppet-dashboard/config/database.yml

production:
database: puppetdash
username: puppetdash
password: xxxxxx
encoding: utf8
adapter: mysql

development:
database: puppetdash
username: puppetdash
password: xxxxxx
encoding: utf8
adapter: mysql

:wq

cd /usr/share/puppet-dashboard/

rake db:migrate

rake gems:refresh_specs

/etc/init.d/puppet-dashboard restart

chkconfig --level 35 puppet-dashboard on

vi /etc/puppetlabs/puppet/puppet.conf

report = true
reports = store, http
reporturl = http://10.0.0.3:3000/reports/upload
:wq

/etc/init.d/puppet-dashboard-workers restart

chkconfig --level 35 puppet-dashboard-workers on

service iptables stop

访问:http://ip:3000

以上是关于Centos 6.8安装puppetserver+dashboard的主要内容,如果未能解决你的问题,请参考以下文章

安装puppetdb教程

CentOS-6.8-x64的安装

在 Centos 6.8 上安装节点

CentOS 6.8重新安装yum

CentOS 6.8 安装 Python3

CentOS 6.8下面安装cmake