saz / puppet-ssh

Puppet module to manage ssh server and client

Home Page:http://forge.puppetlabs.com/saz/ssh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning: You cannot collect exported resources without storeconfigs being set

siebrand opened this issue · comments

I'm seeing this output in puppetserver.log with module version 10.0.0:

2022-11-14T15:50:51.706+02:00 WARN  [qtp578288908-126] [puppetserver] Puppet You cannot collect exported resources without storeconfigs being set; the export is ignored (file: /etc/puppetlabs/code/environments/production/modules/ssh/manifests/hostkeys.pp, line: 68, column: 7)
2022-11-14T15:50:51.708+02:00 WARN  [qtp578288908-126] [puppetserver] Puppet You cannot collect exported resources without storeconfigs being set; the export is ignored (file: /etc/puppetlabs/code/environments/production/modules/ssh/manifests/hostkeys.pp, line: 61, column: 7)
2022-11-14T15:50:51.709+02:00 WARN  [qtp578288908-126] [puppetserver] Puppet You cannot collect exported resources without storeconfigs being set; the export is ignored (file: /etc/puppetlabs/code/environments/production/modules/ssh/manifests/hostkeys.pp, line: 61, column: 7)
2022-11-14T15:50:51.711+02:00 WARN  [qtp578288908-126] [puppetserver] Puppet You cannot collect exported resources without storeconfigs being set; the export is ignored (file: /etc/puppetlabs/code/environments/production/modules/ssh/manifests/hostkeys.pp, line: 61, column: 7)
2022-11-14T15:50:51.721+02:00 WARN  [qtp578288908-126] [puppetserver] Puppet You cannot collect exported resources without storeconfigs being set; the collection will be ignored (file: /etc/puppetlabs/code/environments/production/modules/ssh/manifests/knownhosts.pp, line: 18, column: 7)

I just updated from module version 8.0.0. That had the same 5 warnings, just on different line numbers.

You just have to enable the storeconfigs feature on your puppetserver. This is not a bug related to the module.

See Puppet server documentation, basically you need to have a PuppetDB instance (or something that implements the interface).

If you don't want to use this feature, disable storeconfigs_enabled:

ssh::storeconfigs_enabled: false

Yep. As this is not related to this module, I'll close the issue