标签: puppetdb

一旦 Puppet-dashboard 或 PuppetDB 处理了 Puppet-reports,是否可以删除这些报告?

Puppet-reports 在以下位置使用了大量磁盘空间:

/var/lib/puppet/reports
/var/lib/mysql
Run Code Online (Sandbox Code Playgroud)

假设它将所有报告存储在 MySQL 数据库中,因为两个路径的大小大致相同。该resource_statuses表由行的每个代表在报告文件中的行。

  • 在 Puppet-dashboard 或 PuppetDB 处理完 /var/lib/puppet/reports 中的报告后,是否可以安全地删除它们?
  • 处理报告的最佳做法是什么?
  • 有没有办法让Puppet-dashboard 在处理完yaml报告文件后自动删除它们?

disk-space-utilization puppet puppet-dashboard puppetdb

11
推荐指数
1
解决办法
9896
查看次数

PuppetDB:无法提交“替换事实”命令

我最近撤销/清理了 Puppet 代理证书,这似乎对 PuppetDB 产生了负面影响。我看到这里已经提交了一个错误,其中包含一些关于修复问题的说明。一个用户在这里遇到了类似的问题,但这些都不适合我。

服务器运行 CentOS 6.2、Puppet 2.7.13 和 Puppet DB 0.9。错误是:

root@harp:/etc/puppetdb/ssl> puppet agent --test
err: Cached facts for harp failed: Failed to find facts from PuppetDB at harp.mydomain.com:8081: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed.  This is often because the time is out of sync on the server or client
info: Loading facts in /etc/puppet/modules/dns/lib/facter/datacenter.rb
info: Caching facts for harp
err: Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 …
Run Code Online (Sandbox Code Playgroud)

ssl puppet puppetdb

6
推荐指数
1
解决办法
2万
查看次数

使用 puppet 管理 ssh_known_hosts

我是Puppet(开源版本)的新手,有一个相对简单的问题。

当我启动一个新主机时,我希望 puppetmaster 将新主机的公共 rsa 密钥添加到 /etc/ssh/ssh_known_hosts,这样更新后的 ssh_known_hosts 文件就可以被 puppet 代理拉下来了。

我试过sshkey资源:

# /etc/puppet/modules/ssh/manifests/client.pp

sshkey { $hostname:
    ensure => present,
    type => "rsa",
    key  => $sshrsakey,
}
Run Code Online (Sandbox Code Playgroud)

但是,ssh_known_hosts 似乎并未在 puppetmaster 或代理上进行修改。我的清单在运行时通过了语法验证,puppet parser validate client.pp并且puppet agent --test在代理上运行未报告任何问题。

我是否必须设置存储配置才能使用 sshkey 资源?我喜欢存储配置的功能,但它似乎对我需要的东西来说有点过分,而且似乎增加了很多开销。我的另一个选择是将$sshrsakey事实吐到 a file,但它需要检查公钥是否存在,因此它不会被多次添加。

linux puppet ssh-keys puppetdb

5
推荐指数
1
解决办法
4210
查看次数

PuppetDB:无法获得本地颁发者证书

我正在尝试使用 puppetdb,但遇到了一些问题。

我有一个名为puppet. 它是主人,也是我安装 puppetdb 的地方。也是puppet管理的节点。

当我puppet -t在 puppet 节点上运行时,我得到:

Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Could not retrieve facts for puppet.example.com: 
Failed to submit 'replace facts' command for puppet.example.com to PuppetDB at
puppet:8081: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate
B: certificate verify failed: [unable to get local issuer certificate for
/CN=puppet.example.com]
Run Code Online (Sandbox Code Playgroud)

我假设 SSL 有问题,但我不确定要更改什么或在哪里查看。

ssl puppet ssl-certificate puppetdb puppet-agent

5
推荐指数
1
解决办法
2996
查看次数