The opendev project has been moving away from puppet and this is one of
the puppet modules that is no longer used. To simplify things for us we
are taking the extra step of retiring this repo.
Change-Id: Ibbd66faf35447c5e8587c6996cd5011fcede688a
Turns out this is a bit of a pain, and we found out via a full disk.
Firstly, carbon wants to rotate it's own log files, but doesn't
compress or cleanup. Disable this with ENABLE_LOGROTATION=False,
which has been around for a while. This is copied from the upstream
example config.
Secondly, we were missing the console.log file. Change the rotate to
just one for "*.log", and also add "sharedscripts" so the post-rotate
is only run once per rotation of all files.
Thirdly, copytruncate doesn't work [2]. It needs to be "nocreate";
the file is moved and carbon starts a new one (as suggested by the
config comment). This is updated in the combined rotate section.
[1] https://github.com/graphite-project/carbon/pull/68
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733856
Change-Id: I946bb728971db79a2f4d08f2787c0768b958fb53
grahpite.o.o currently has a manually installed fix for carbon
issue #55 in place, but in case we lose that, setting MAX_CPM
to >=60 should work around the problem.
https://github.com/graphite-project/carbon/issues/55
Change-Id: I53bbe348737edc0c513bb1b34b753018d20c3d60
Reviewed-on: https://review.openstack.org/18750
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Some paths were not set correctly in graphite config files.
Fix up permissions in /var/lib/graphite.
Use 'service', but don't ensure it's running.
Change-Id: I363319473a332c16687e16887bfe83e1468c8ece
Reviewed-on: https://review.openstack.org/17617
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins