Puppet基础设施:Hiera配置与应用指南
1. PuppetDB配置与使用
PuppetDB模块是将复杂配置任务puppet化的一个很好示例。只需将 puppetdb 类添加到Puppet主节点,Puppet就会安装并配置PostgreSQL和PuppetDB。
当agent运行时,会为PuppetDB设置配置文件,并配置Puppet使用PuppetDB。查看 /etc/puppet/puppet.conf ,会看到以下两行新内容:
storeconfigs = true
storeconfigs_backend = puppetdb
配置好PuppetDB并成功运行agent后,PuppetDB就会有可查询的数据。示例如下:
[vagrant@puppet ~]$ sudo /opt/puppetlabs/bin/puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for puppet.example.com
Info: Applying configuration version '1516587381'
Notice: Applied catalog in 0.68 seconds
[vagrant@puppet ~]$
超级会员免费看
订阅专栏 解锁全文
13

被折叠的 条评论
为什么被折叠?



