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
Because this only matches trusty, it installs the old access list on
xenial and beyond. Just use the 2.4 format.
Change-Id: I62a54e1c886efea9f1377967e8e4716068c53b4a
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
This adds a basic service file for celeryd and associated bits to
install it on Xenial and beyond.
Change-Id: I58ab956832acabf9e5af5f815e37ed1eb365a649
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 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
Cron jobs should be silent on normal operation, and only emit output
on error. Redirect stdout from the clean_sessions job to a file.
Change-Id: Ifdd2b38248970204acd17944b21e1c39de92332a
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
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
CSRFViewMiddleware now a mandatory parameter to settings.py
regarding to change:
- added special csrf middleware that will add csrf cookie to all
responses
2f726cdda9
Change-Id: Id0c414dbac24056aad2a619b09327855f52ec3a9
We need to also test for site_ssl_chain_file_contents being an empty
string, because in an ERB template (and for Ruby in general) the
empty string has a boolean true value.
Change-Id: I9767b606757a911e76e066d35c812f4988e0142b
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
As suggested by Evgeny, enable the OpenID login providers. Useful
to test also integration with openstackid.org.
Change-Id: Idf94665893ab18d2fed02953f820048de695ab5a
Fixes-bug: #1441817
Fix Validation emails not being sent bug, and sender email
is set to noreply@openstack.org
Change-Id: I04f3bd2137e257f077a73a8cc0fc37b9a376d598
Closes-Bug: #1442317
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