By default we're not listening on an ipv6 address; so any stats sent
there just go missing. Set up by default to listen to '::' (and add
required ipv6 argument) which, thanks to dual-stack, means ipv4 & 6
packets are all accounted for.
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
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 . 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.
Instead of keeping a local copy of spec_helper_acceptance.rb and
requiring updates to all modules for any change, we can move it into the
common helper gem and require it from there. This will make it easier to
create and review changes that affect all puppet modules. Also change
the Gemfile to look for the gem in the local workspace if running in a
Since the beaker jobs are being run on xenial, we need a special nodeset
for it, otherwise beaker gives an error:
beaker-hostgenerator was not able to use this value as input.
Exiting with an Error.
We also want to install puppet from the Ubuntu repos rather than from
puppetlabs, since puppetlabs doesn't support puppet 3 for Xenial. For
centos we can keep the install process the same.
Also run django.setup() since django >=1.7 now requires it.
Finally, correct the cron check string in the spec tests.
Add acceptance tests for puppet-graphite module so that once the module
is applied we check if files were created, packages were installed and
services were started.
Co-Authored-By: Danilo Ramalho <email@example.com>