system-config/modules/openstack_project/files
Ian Wienand 368466730c Migrate codesearch site to container
The hound project has undergone a small re-birth and moved to

 https://github.com/hound-search/hound

which has broken our deployment.  We've talked about leaving
codesearch up to gitea, but it's not quite there yet.  There seems to
be no point working on the puppet now.

This builds a container than runs houndd.  It's an opendev specific
container; the config is pulled from project-config directly.

There's some custom scripts that drive things.  Some points for
reviewers:

 - update-hound-config.sh uses "create-hound-config" (which is in
   jeepyb for historical reasons) to generate the config file.  It
   grabs the latest projects.yaml from project-config and exits with a
   return code to indicate if things changed.

 - when the container starts, it runs update-hound-config.sh to
   populate the initial config.  There is a testing environment flag
   and small config so it doesn't have to clone the entire opendev for
   functional testing.

 - it runs under supervisord so we can restart the daemon when
   projects are updated.  Unlike earlier versions that didn't start
   listening till indexing was done, this version now puts up a "Hound
   is not ready yet" message when while it is working; so we can drop
   all the magic we were doing to probe if hound is listening via
   netstat and making Apache redirect to a status page.

 - resync-hound.sh is run from an external cron job daily, and does
   this update and restart check.  Since it only reloads if changes
   are made, this should be relatively rare anyway.

 - There is a PR to monitor the config file
   (https://github.com/hound-search/hound/pull/357) which would mean
   the restart is unnecessary.  This would be good in the near and we
   could remove the cron job.

 - playbooks/roles/codesearch is unexciting and deploys the container,
   certificates and an apache proxy back to localhost:6080 where hound
   is listening.

I've combined removal of the old puppet bits here as the "-codesearch"
namespace was already being used.

Change-Id: I8c773b5ea6b87e8f7dfd8db2556626f7b2500473
2020-11-20 07:41:12 +11:00
..
ask ask.o.o : workaround old puppet-solr package 2019-05-20 17:25:20 +10:00
cacti Filter docker directories out of cacti 2019-08-27 15:54:49 +10:00
dashboard Puppet dashboard mysqld innodb_file_per_table. 2013-04-25 23:47:50 +00:00
git Add haproxy-statsd to haproxy server 2019-05-24 15:40:28 -07:00
logstash Ectomy some Jenkins out of the docs 2018-12-10 17:55:04 +00:00
mailman Set up robots.txt on lists servers 2020-04-29 17:48:13 +00:00
openafs Periodically release additional AFS volumes 2019-12-16 18:46:54 +11:00
pbx/asterisk Merge "Replace Wait(1) with Playback(silence/1)" 2016-03-25 13:43:43 +00:00
puppetmaster Update opendev git references in puppet modules 2019-04-20 18:26:07 +00:00
ssl_cert_check Add missing HTTPS ports in ssldomains file 2020-05-19 20:32:46 +00:00
status Remove bugday from status.o.o 2019-05-24 14:56:50 -05:00
storyboard Switch storyboard to login.ubuntu.com 2016-12-13 11:21:35 -06:00
disallow_robots.txt Add back disallow_robots.txt 2015-05-07 09:37:57 -07:00
gem-mirror-update.sh Fixes to get gem mirror working 2016-12-23 13:22:26 -05:00
login.defs.debian Declare a non-overlapping dynamic UID/GID range 2015-01-30 21:48:52 +00:00
login.defs.redhat login.defs/redhat: set SYS_UID_MIN and SYS_GID_MIN 2016-03-03 23:33:32 -05:00
opendev.svg Rename gerrit logo file 2019-04-20 08:54:35 -07:00
openstack.png Move OpenStack branding and launchpad integration. 2012-07-23 14:46:55 -05:00