PuppetDB安装指南

PuppetDB安装
#######################################
2014年6月23日 10:25:36
一、安装要求:
1.JDK1.7或以上版本
2.Puppet3.5.1或更高版本
3.Puppet已配置执行Puppet agent --test没有问题
二、安装步骤
1.puppet源配置好
2.apt-get install puppetdb
3.apt-get install puppet-terminus
三、配置
1.配置/etc/puppet/puppet.conf
加入如下内容:
[master]
  storeconfigs = true
  storeconfigs_backend = puppetdb
  reports = store,puppetdb
2.配置/etc/puppet/puppetdb.conf
[main]
server = puppetdb.example.com
port = 8081
3.配置/etc/puppet/routes.yaml
加入以下内容:
---
master:
  facts:
    terminus: puppetdb
    cache: yaml
四、重启Puppet Master
service puppetmaster restart
五、启动puppetdb
service puppetdb start
puppetdb的log在/var/log/puppetdb/puppetdb.log中
六、测试
在Puppet集群中任意选择一台agent执行
puppet agent --test
在PuppetDB机器上查看log,出现如下这两行,表示安装完成:
2012-05-17 13:08:41,664 INFO  [command-proc-67] [puppetdb.command] [85beb105-5f4a-4257-a5ed-cdf0d07aa1a5] [replace facts] screech.example.com
2012-05-17 13:08:45,993 INFO  [command-proc-67] [puppetdb.command] [3a910863-6b33-4717-95d2-39edf92c8610] [replace catalog] screech.example.com
关于PuppetDB的API使用请看:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章