You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't quite work for Varnish 4.1, however, because the telegraf user is not a member of the varnish group. I was able to work around this problem by adding the following puppet code:
user { 'telegraf':
groups => ['varnish'],
home => '/etc/telegraf',
managehome => false,
shell => '/bin/false',
system => true,
require => Class['varnish::install'],
}
It would be more convenient, however, if this module exposed a $groups parameter which would allow me to do this:
I'm not keen on integrating user or group management in this module. Personally I don't see anything wrong with the approach taken in your workaround - typically it's the sort of thing you'd apply in a profile class anyway.
If anyone feels strongly enough to disagree to the point where they raise a pull request and argue support for this feature, I'll happily reconsider.
We are running Varnish 4.1 and using the following Telegraf configuration in order to send Varnish stats to InfluxDB:
This doesn't quite work for Varnish 4.1, however, because the
telegrafuser is not a member of thevarnishgroup. I was able to work around this problem by adding the following puppet code:It would be more convenient, however, if this module exposed a
$groupsparameter which would allow me to do this:Some related resources:
The text was updated successfully, but these errors were encountered: