puppet-collectd
puppet-collectd copied to clipboard
Custom types.db file error
The documentation suggests putting custom collectd types in /etc/collectd/types.db. However, currently, I am getting the following error:
Error: Could not set 'file' on ensure: No such file or directory - /etc/collectd/types.db20160408-28979-1ct4jus.lock
Error: Could not set 'file' on ensure: No such file or directory - /etc/collectd/types.db20160408-28979-1ct4jus.lock
Wrapped exception:
No such file or directory - /etc/collectd/types.db20160408-28979-1ct4jus.lock
Error: /Stage[main]/Profiles::Puppetmaster/Collectd::Typesdb[/etc/collectd/types.db]/Concat[/etc/collectd/types.db]/File[/etc/collectd/types.db]/ensure: change from absent to file failed: Could not set 'file' on ensure: No such file or directory - /etc/collectd/types.db20160408-28979-1ct4jus.lock
The /etc/collectd directory is not created but ultimately the blank file should probably be there too at /etc/collectd/types.db
This seems tangentially related to #212. @bastelfreak any ideas on how we could refactor params? I'm thinking we break it up into a $collectd_dir
and a $collectd_d_dir
. It would require a significant refactor of the module.
@nibalizer could we potentially ship collectd.conf everywhere and have it include collectd.d?