-
Notifications
You must be signed in to change notification settings - Fork 200
Fix for #329 in echocat/puppet-graphite #333
Conversation
backmerge for release 7.1.0
@dwerder BTW, I'll have some spare time next week and can fix linter-related warnings. |
That would be nice. |
Done. |
my only question is, why you want to set the pidfile in the carbon.conf, because it is already set in each init file. And the path is: scope.lookupvar('graphite::storage_dir_REAL') |
Because carbon itself has ignored the higher scope's PATH variable in it's config and still stored it's .pid files in /var/run/... (or wherever the dafault path is) but the properly generated systemd's unit files contained new path to .pid files. |
LOCAL_DATA_DIR = <%= scope.lookupvar('graphite::local_data_dir_REAL') %>/ | ||
|
||
<% unless [:undef, nil].include? scope.lookupvar('graphite::gr_storage_dir') -%> | ||
PID_DIR = <%= scope.lookupvar('graphite::gr_storage_dir') %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has to be scope.lookupvar('graphite::storage_dir_REAL') to match the init scripts.
in case of either storage_dir or whisper_dir param used - carbon creates its .pid files in correct place. |
ping |
PR to incorporate previously published patch which generates proper config for carbon-cache instances.
See #329 for more details.