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使用請看:

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