voxpupuli / puppet-zabbix

Puppet module for creating and maintaining zabbix components with puppet.
https://forge.puppet.com/puppet/zabbix
Apache License 2.0
79 stars 227 forks source link

zabbix::userparameters source & script, remove "Stdlib::Filesource" type #580

Open sfuerte opened 5 years ago

sfuerte commented 5 years ago

Not sure why it was introduced in 95dc9b21, but it limits the usage significantly, as the path can be only:

The issue arises when there is a specific mount points (as per https://puppet.com/docs/puppet/6.1/file_serving.html) in Puppet, e.g. /etc/puppetlabs/puppet/fileserver.conf:

[my_storage]
  path /etc/puppetlabs/my_storage/
  allow *

Then I can access it with simple puppet:///my_storage/..., for example (in Hiera):

zabbix::userparameter::data:
  ntp:
    source: 'puppet:///my_storage/zabbix/zabbix_agentd.d/ntp.conf'

Benefits of such approach:

PS: though raised a FR for Stdlib as well, https://tickets.puppetlabs.com/browse/MODULES-8404

bastelfreak commented 5 years ago

Hi @sfuerte, thanks for bringing this up. Are you able to provide a PR for this module to fix this?

alexjfisher commented 5 years ago

@bastelfreak PR to stdlib needed probably?

bastelfreak commented 5 years ago

That would be the longterm fix, yes. But I don't expect that we get fast releases for stdlib.

alexjfisher commented 5 years ago

@bastelfreak A temporary fix in this module would make sense. Meanwhile, I've opened https://github.com/puppetlabs/puppetlabs-stdlib/pull/981