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
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 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
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
This patchset will replace the vcsrepo with puppet-community's
git_resource and resolve the resource change notification issues.
Change-Id: I4b0fc715f89062047ed32f4f89880ced76e54f9b
The $template_settings parameter allows to specifiy a custom
template of settings.py. It helps to define different
configuration for staging and production deployments.
Change-Id: Ic88b584cb60ab7f96c17e17b904c89200e10055d
Introduce $askbot_ensure class parameter that defaults to
'present'. This change prevents retriggering of refresh event
by vcsrepo resource when the repo is tied to a specific commit
instead of a branch.
Change-Id: I49ce766c0e085a48a50d41d39b3e57e3e8014979
puppet-httpd is the openstack-infra version of puppetlabs-apache
(0.0.4) release.
This patchset will remove the puppetlabs-apache namespace from -infra
allowing for possible future patchsets to use newer puppetlabs-apache
modules.
Change-Id: Ie3d818d172ada2132a0116ce4ce2ed6d231cc005
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
The python environment including askbot requirements moved under
/usr/askbot-env to provide proper pip dependency resolution. The
change affects the python manage calls, celeryd daemon upstart
script and mod wsgi exec env.
Change-Id: Id2031e4c51fd71c0e4630b2f1e71845223833bba
Discussion following https://review.openstack.org/#/c/199792/ confirmed
that we do want to enforce this check. This patch re-enables the check
and fixes lint errors that fail the check.
Change-Id: Id9e8086ba1636d158547a5fc8b2b6d24de511a12
This patch changes the default values of params whose values were '' to
undef, except for $askbot::site::ssl::site_ssl_cert_file and
$askbot::site::ssl::site_ssl_key_file which were changed to use the
same default provided in the askbot and askbot::config class. Also
updated conditionals to look for the new undef value instead of the
empty string.
Change-Id: Ia3cabb5760f940cbf9c39714571b2ae5eac92a2d
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins. This patch also
corrects lint errors caught by the puppet-lint-absolute_classname-check
gem.
We disable the puppet-lint-empty_string-check gem to be corrected by a
follow-up patch.
We disable the disable_arrow_alignment check in the Rakefile.
Previously, the system version of puppet-lint that was being run by
'rake lint' was too old to catch this. When using 'bundle exec rake
lint' the gem is new enough to catch this. Whether we want to actually
fix these lint errors is a different discussion, so this patch disables
it for now.
Change-Id: I2b2c8511367b2e97c30b7681125d9063b3e78a86
Refactor askbot module:
- deployment source from git instead of pip
- separate init / install / config code
- break site config into celeryd / cron / http / log / ssl / static parts
- support of Ubuntu Precise 12.04LTS / Trusty 14.04LTS
Notice: don't approve this patch until puppet run is enabled on ask.o.o
because it breaks the production site. (need to refactor the related
system-config ask.pp too)
Depends-On: Iaa8488a3d7ab8b121404ac1ac39bd1620a868727
Change-Id: I560c24c3b09e4a8d09b23afa619a4cf361601cbe
Add new scheduled cron jobs, including send-email-alerts and
clean-session. Both cron jobs are executing a manage.py task
for an askbot site.
Change-Id: Idf6e378b37dc251d307c7c01d7c65ff8270fe89d