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: I050a5fa329c4925940b93a162bb54901555f4b47
It seems this package name conflicts; I guess testing must not enable
redis because this wasn't picked up in CI tests.
Move it into the redis section and disambiguate package names
Change-Id: Ibc616346b12c4699652702778755695c0bf9f7c2
This seems to be the only version that works; and is the version on
the current ask.o.o server. Ensure it doesn't upgrade to something
later.
Change-Id: I32a887b014aed376c61ce9f5dcf14668c2d357ce
Because this only matches trusty, it installs the old access list on
xenial and beyond. Just use the 2.4 format.
Change-Id: I62a54e1c886efea9f1377967e8e4716068c53b4a
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
Change-Id: I174b328472581c9811b19b2d3572d02307b6d88d
As time has moved on we've updated module versions making the pins in
this module's metadata.json inaccurate. Relax the rules so that we can
continue to update global module versions as necessary without raising
warnings.
Change-Id: Iaac15934b31a427370608ba439937f73ad5f64c7
I forgot that on puppet 3, scope.lookupvar returns :undef instead of nil
when it looks up a variable set to 'undef'. Since we're not setting the
chain file in our beaker tests, this causes an invalid apache config to
be rendered. This patch ensures the file explicitly checks for both nil
and :undef. On puppet 4, checking for just nil will be sufficient.
Change-Id: I7fd806c65f1aef95618a4549b24c6fa21aa3fe29
The logic in the Gemfile was relying on Zuulv2 variables to find out
whether the spec helper gem was already available on disk, and since
Zuulv3 has changed things it was failing to find it and downloading the
master version instead. This patch ensures the Gemfile looks for the gem
in the right place when running in CI.
Change-Id: Ib5f25bad8e5be39530113bf19ea2951cc9344961
As described, the code is incompatible with the latest six. Pin this
till we can update the underlying django, etc.
Change-Id: Ic13b80ba53331f5375cbb35ddf86880313415332
Use puppet-python's checks to ensure presence of python packages.
This way we don't create conflicting Package['virtualenv'] entries.
Change-Id: I3435a2527f4712d068c5a3c43728bed6011e1ebd
This adds a basic service file for celeryd and associated bits to
install it on Xenial and beyond.
Change-Id: I58ab956832acabf9e5af5f815e37ed1eb365a649
Pin to the version currently deployed in production while we work
through Xenial upgrade. We can unpin when we try to update the askbot
version.
Change-Id: I991c503f9f4a7e01be7ee58ba496f8c4f671c1a1
The askbot production settings are deployed from system-config, and
this version has become out of sync with what's actually required to
start-up askbot. Update it.
Change-Id: I66da411a8c000d2be5e0676d536441b5f03bfdd2
Dynamic scoping for variables in ERB templates was removed in puppet
4[1] which means that the variables defined in the the manifests cannot
be found when it is referenced in the httpd::vhost defined type and will
be evaluated as nil when puppet runs. Use scope.lookupvar instead to be
explicit about the variable's source.
[1] https://puppet.com/docs/puppet/4.10/lang_updating_manifests.html#dynamic-scoping-in-erb
Change-Id: I344be46a2e69d0eadda9148e1b7dd1f73c7a1edd
The syncdb and migrate execs need an upgraded Askbot package
installed in the venv before they're run, so indicate this
dependency relationship accordingly.
Change-Id: Ibf191682e238fcf5dcebc5a5c2c50d8b63913153
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
zuul environment.
Change-Id: I1bfeb46bb500bff1cefb581b0bf1e2fa7df7b0e8
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.
Change-Id: I3dda607634933beb67688fd419f8fdc03373e3e6
Bindep is a tool for checking the presence of binary packages needed
to use an application / library. It started life as a way to make it
easier to set up a development environment for OpenStack projects.
Change-Id: Ie17420ba20d60358f9378077d58593f2a3ac13a5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
When upgrading, after the migrate exec completes, notify the apache2
and askbot-celeryd services so they will be restarted.
Change-Id: I0a7f3987d782c52e85aa2f87186d2beb367d5b6b
Calling python setup.py install seems to not properly uninstall the
old version of Askbot, but using pip install upgrades correctly and
is more in line with our usual pattern in other modules.
Change-Id: Iec6aef76a2ddf155dba26f37cefa94439c47e829
We are seeing disk space filling up regularly on ask.openstack.org and
mostly it comes from Jetty logs. Right now, nobody really seems to
know how to turn these logs down or redirect them to something smarter
than can compress and rotate (that actually appears to be harder than
it sounds, and involves importing log4j stuff into the classpath,
etc).
In the mean time, compress the previous days jobs in a cron job.
Since we're also renaming the files, jetty's very simple rotate won't
remove the old ones, so add another job to keep just a weeks worth.
Change-Id: Ib78039f0b6764408ba5ce5111d92560f1b8ef6f6
The Akismet spam detection feature can be configured through a
settings page, but in order to be able to keep the API key private
(in hiera) we need to be able to set it through configuration
management instead.
Change-Id: Ie64ece3e84af407b5e4124c874f59dad5ab23d4e
Order of those parameters is changed
to follow Puppet Style Guide recommendation [0].
Moreover, it will allow to an user to find much faster
a variable in a list of variables.
[0]. https://docs.puppetlabs.com/guides/style_guide.html
Change-Id: If49d32d7e0beef5dc5c19b085be48659d3882f5f
Currently I am getting spam from the clean_sessions cron about import
errors because we don't have this library available.
Change-Id: I6e9e18e8b2e6de7bceedfbf261eb73cb46d9e7e8
The python Pillow dependency was not defined explicitly in askbot's
askbot_requirements.txt, so pip install always try to deploy the latest
version. Since 3.x Pillow also depends on libjpeg, so for a
successfull installation libjpeg-dev must be present.
Change-Id: Ia547034f128f46253ce857fed254531be71769b4