Commit Graph

27 Commits

Author SHA1 Message Date
Clark Boylan e7e4f1a6d0 Retire this repo
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: I67645a8378580ad79a58704e5eab86b6b8794767
2022-02-17 11:44:34 -08:00
Monty Taylor 0edcc83e70 Update git url to hound-search
The etsy folks have moved hound to hound-search.

Also fix a puppet-lint error. Apparently we're now
NOT supposed to do the leading ::.

Change-Id: I27704d5f20e6cab6881f12a1a7d5602499120499
2020-04-21 17:08:55 -05:00
OpenDev Sysadmins e5be91ea8a OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:25:37 +00:00
Ian Wienand 7e965c21c5 Replace openstack.org git:// URLs with https://
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: I357b9d281c4df871e52780445eb889160eee692b
2019-03-24 20:35:39 +00:00
Zuul 2ecbcf6fe5 Merge "Fix scope of vhost template variable" 2018-07-21 14:47:21 +00:00
Colleen Murphy d06c229268 Fix scope of vhost template variable
Dynamic scoping for variables in ERB templates was removed in puppet
4[1], so look up the @serveradmin variable from the scope object.

[1] https://puppet.com/docs/puppet/4.10/lang_updating_manifests.html#dynamic-scoping-in-erb

Change-Id: Ia53125bed102193e149f995430bbdf10dfdbf428
2018-07-13 15:05:08 +02:00
Colleen Murphy dcae5b52f5 Update Gemfile for Zuulv3
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: I6a7d2bf7fdb2020f9d4d8d3a073688757de35ffb
2018-07-12 09:57:44 +02:00
Ian Wienand 46bfc54912 Fix httpd ordering, add rspec test
The ordering is wrong here, as the docroot tries to depend on the 503
file that inside the docroot.  I missed this because I was on a live
system where the file existed.  Move to a more standard "www_base"
like in other modules.

Add a deployment test to find things like this.

Change-Id: I9b048836fa9942f021f81f7a744bcc9af96a10be
2017-12-15 14:56:08 +11:00
Ian Wienand ef1008424a Add a reindex lock
This modifies the apache configuration to look for a reindexing lock
file and return a 503 page if it exists.  This is intended to be
managed by a cron job during reindexing procedures.

Change-Id: I9d28201bca75b624e07cbba14c870151094fc7ae
2017-12-13 12:44:01 +11:00
Colleen Murphy 0ec1c6f0cd Depend on helper gem for spec_helper_acceptance
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: Ib4e7bf5564fc1968a88a500be007b131fc1154ae
2017-08-18 10:41:43 +02:00
Colleen Murphy 49c5e043e5 Fix beaker on xenial
Add a xenial nodeset and update the spec helper to install puppet 3 from
the Ubuntu repos instead of from puppetlabs.

Change-Id: Ieac2e6443316baae505ca648ef777b9486ff38c6
2017-06-24 15:46:34 +02:00
Paul Belanger 7fc089df72
Add bindep.txt file
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: I838002bdd2c151a71fe03ab242ccb654010fecf2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-01 21:09:29 -04:00
K Jonathan Harker 5b56c08385 Make the git source uri configurable
In some cases it may be useful to set the git source uri to use a
different protocol (such as when using an http proxy) or another host
(such as a local mirror). Allow passing a parameter to set the source
uri to clone from.

Change-Id: Id3696bbb4c70610ed8d3402ae207334bb7b3f234
2016-07-28 17:27:40 -07:00
Jenkins 69ed382677 Merge "Add ServerAlias support to the vhost config" 2016-07-22 09:15:53 +00:00
Ricardo Carrillo Cruz ab87c7e377 Add ulimit max-open-files param to puppet-hound
The upstream hound server is showing issues on the log about
hitting max opened files, currently on OS default of 1024
files.
This change allows setting the ulimit for open max files on the
init script, defaulting to 2048.

Change-Id: I283105dc0229e1e3f9ab56f0c8c3368581370d10
2016-07-21 13:41:03 -07:00
K Jonathan Harker dcc876c7a9 Add ServerAlias support to the vhost config
Change-Id: I04b232120531a91a3a402d7507c04979e24f0856
2016-07-14 16:46:53 +00:00
Spencer Krum 25c40f20a7 Use new infra_spec_helper for gem dependencies
Change-Id: I8031d33efd0af5688e3cb98dc2a2b3c85352a5a2
2016-06-21 18:38:31 -07:00
Spencer Krum ddd9484f12 Pin google-api-client; sanitize Gemfile
Change-Id: Ia48ba30aa328cd7c3547b3c5175c1107ac4a4074
2016-04-14 15:19:25 -07:00
Colleen Murphy 0446a7f568 Add foundation for functional tests
Add beaker-rspec to the gemfile and add spec_helper_acceptance.rb and
nodesets to initialize beaker-rspec testing. This will get the
beaker-rspec jobs to pass but does not actually add any tests.

Story: 2000250

Change-Id: Ib615750130a76fafa0710f16d1fd3e37a5bca545
2016-04-13 09:16:26 -07:00
Andrey Nikitin 1f439e9ac8 Order of the class parameters is refactored
Order and intendation of those parameters are 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: Iba60da93af8c4db6c29246c2aaae9a4231097a4d
2016-03-21 11:59:46 +03:00
Spencer Krum a520d6115d Logrotate the hound log
Since the hound log is now growing instead of being continually
overwritten, it needs to be rotated.

This log isn't very large, but this is good hygiene.

Change-Id: I5c04e75bf867f9001dfc7aaeb62e8a4d023c25bd
2016-01-06 14:22:06 -08:00
Spencer Krum ef64c1a46a Append to logfile instead of overwriting
Change-Id: I7e79382ac13f1d40af379b7e1b64310bec6d384c
2016-01-05 15:46:29 -08:00
Elizabeth K. Joseph 688aed48d3 Fix vhost in hound Apache configuration
Calling just vhost_name in the Apache template was populating the
file with a * for the name. Add the full scope so it finds what it
needs.

Change-Id: Ibd78236e31e729261ac96c6964f3c2d5796a9566
2015-10-29 22:55:21 -07:00
Emma Barber 6ce0881b6a Configure and run apache on top of hound
Creates a service user and runs hound and apache. The config.json can
optionally be unmanaged but is otherwise taken from a file.

Co-Authored-By: Monty Taylor <mordred@inaugust.com>
Change-Id: I4042594421989ab60d1134fbfcfc8b0c73839faa
2015-09-02 13:51:42 -07:00
Colleen Murphy 84742e753b Add Gemfile and puppet 4 checks
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins.

Change-Id: Ib74b71062b95fac7ea02b891741f755ba98dc61b
2015-07-29 20:41:26 -07:00
Emma Barber 2bf9be7f9f Add module boilerplate
Change-Id: I3600af06c3aac700ce814ecc28bb5cb51b57e8cb
2015-07-06 14:46:18 -07:00
OpenStack Project Creator 9f1de9df40 Added .gitreview 2015-06-10 14:42:54 +00:00