Seem there is a race on xenial where we try to populate /var/lib/cacti
before it is created.
Change-Id: I179e2e2d9d4f9df53aace172950af66aed92efad
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Right now the cacti package setups up the /usr/local/share/cacti
directories. So we need to make sure cacti is installed before we
start adding files into those directories.
Change-Id: I99bbf0a71e140380636419c4200d9f4662f5311e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
The current process to udpate cacti hosts is fairly chatty. It basically
goes in and just tries to update every host there and if they exist that
generates a bunch of output which is then emailed to infra roots. This
information is potentially useful for debugging so keep it around in
local cacti host logs. These logs will then be rotated with a week of
retention.
This should help make our inboxes happier.
Change-Id: Ib03ef7b22083a2a2454715bd5229313b19b84ae9
The apache puppet module determines what ports to listen to by using
provided ports from calls to apache::vhost. Before
Ib282dd506a5086cfca5c8400bf27cca10099f59d the default vhost would
cause apache to listen on 80+443.
Since we use a custom vhost template we either need to add the listen
directive there (not preferred) or instruct puppet-apache to manage
its ports.conf.
Change-Id: I84760c1d7e823a34f6253c80022134ec568a0468
The apache module places a default vhost to /var/www/html which
stops the rewrite to cacti from working. Disable this vhost.
Change-Id: Ib282dd506a5086cfca5c8400bf27cca10099f59d
It was missing the actual <VirtualHost> tag, which means that it
would lose out to the default vhost file that puppetlabs-apache
creates. This may have behaved differently on apache2.2, but
it is certainly a problem on apache2.4 now that we have upgraded
to trusty.
Change-Id: I750ea9b8625d8d240616ce8306da81bcee832c95
The time has come to migrate cacti.o.o from Ubuntu Precise and Ubuntu
Trusty.
Change-Id: Ia67ddb07baeaa19eaa47962d26ddba46a8fee6d3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
httpd::mod is a high-level wrapper around httpd_mod,
and, since it is used, e.g. in puppet-jenkins and puppet-zuul,
it should be uniform across all puppet projects,
to be able to properly detect
whether Httpd_mod instance defined, like below:
if (! defined(Httpd::Mod['rewrite'])) {
httpd::mod { 'rewrite': ensure => present }
}
Change-Id: I2b453b6f15d80bba9b1c29bc0d35651cfae05427
Depends-On: I69e7f9c54d06d7f98b50fdc7d5a67dd10e3e0050
Current pypi mirror selection uses the actual cloud region from
nodepool, so the attempt to hide the default region name used by
bluebox does not work here. In the future, we will alter the
format of pypi mirrors to something like
mirror.<region>.<cloud>.openstack.org, but that's a bigger job.
Today, just go with regionone so we can start using bluebox.
Change-Id: I575d3982a2c335054511492b1e664cfd17ab392a
This commit adds the health.openstack.org server to cacti. We need to
be able to monitor this api server to see if there are any load issues
which will prompt us resize up to a larger flavor.
Change-Id: Ic27c61493c081fda24880b076cb7f3c491720624
This is safe to land before it exists, and doing so will mean that
the correct pypi config will be in place on images.
Change-Id: Ib025d86d5371f0953fc57c425632bab28788f106
puppet-httpd is the openstack-infra module for of puppetlabs-apache (0.0.4)
release.
This patchset will remove the puppetlabs-apache namespace from -infra
allow for possible future patchsets to use newer puppetlabs-apache
modules.
Change-Id: Id9f08de5ca32eac884a01f11a2cf34e1044d3048
Depends-On: I4f4648538801a60f45b28cedc73b24d8905cfe14
Depends-On: Ifcc60d173430e30159aa794e5adb5ba71107e647
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
New apps.openstack.org server, we should track/trend its resource
consumption to make sure we've sized it appropriately.
Change-Id: I303172a4ec16a3b6900920d238d5872f43a5b5e9
This list is pretty long now, and was mostly-but-not-quite sorted.
Fix the mostly-but-not-quite bit.
Change-Id: Ic71ea0aeb1336b17471dfadaa26c09e5e024787e
When the first subunit gearman worker was added it wasn't added
to cacti.o.o. This makes it more difficult to track the resource usage
on the node and know when we need to increase the number of workers.
Change-Id: I6f8d81ab227f6f63297fbe4bee645fce4f2437ee
Stop collecting stats from ci-puppetmaster.openstack.org which is
now no longer in use, and start collecting stats from our new Puppet
3 based puppetmaster.openstack.org instead.
Change-Id: I640d64b6219f32f06bfcfd11e5aea9fc20277a08
Previously a file was being managed that couldn't exist becuase
the parent directory did not exist. Cacti succeded in spite of
itself because the cacti package pushed an apache config into a
place that works.
This change sets the file path of the apache.conf file for cacti
to be a real location, which adds the rewrite rules. Previously,
hitting '/' would not redirect to the graph viewing page, despite
that being the intention of the puppet code.
This change also adds some logic to fail early on non Debian
machines, since we're explicitly using the /etc/apache2 directory
here.
Change-Id: I29c04d939d7a8d1a0faeb4ab7b31e3adc951ccf3