如何抑制“没有 storeconfigs 则不收集导出的资源”?

如何抑制“没有 storeconfigs 则不收集导出的资源”?

我在我的 Puppet master 系统日志中反复收到下列信息:

Sep 27 11:52:05 puppet1 puppet-master:  Not collecting exported resources without storeconfigs
Sep 27 11:52:06 puppet1 puppet-master:  Not collecting exported resources without storeconfigs
Sep 27 11:52:06 puppet1 puppet-master:  Not collecting exported resources without storeconfigs

我实际上并没有使用 storeconfigs:

[ashinn@puppet1 ~]$ cat /etc/puppet/puppet.conf
[agent]
server                    = puppet.mydomain.com
environment               = production
report                    = true

[main]
logdir                    = /var/log/puppet
vardir                    = /var/lib/puppet
ssldir                    = /var/lib/puppet/ssl
rundir                    = /var/run/puppet
factpath                  = $vardir/lib/facter
pluginsync                = true
certname                  = puppet1.mydomain.com

[master]
modulepath                = $confdir/environments/$environment/modules
manifest                  = $confdir/environments/$environment/manifests/site.pp
templatedir               = $confdir/templates
autosign                  = $confdir/autosign.conf
ssl_client_header         = SSL_CLIENT_S_DN
ssl_client_verify_header  = SSL_CLIENT_VERIFY
report                    = true
reports                   = hipchat

有什么方法可以隐藏这些信息吗?它们究竟从何而来?

答案1

以下命令的输出是什么?

$ puppet config print | grep storeconfigs

然后检查 Puppet Master:

$ puppet master --configprint all | grep store

我假设您可以设置puppet.conf

storeconfigs = false

或者,你可以设置 puppetDB 作为配置的后端存储,然后该消息就会消失。看看介绍puppetDB

相关内容