Commit Graph

20 Commits

Author SHA1 Message Date
Monty Taylor bcaeac6d79 Retire repo
Depends-On: https://review.opendev.org/720892
Change-Id: I3447f912ecfb6038ef83713a34da94c7bcb0b109
2020-04-22 10:19:01 -05:00
Colleen Murphy c3c944a975 Add Xenial support
Add an exec to trigger a systemd reload so that the existing SysV init
script just works.

Change-Id: I0b42d4c510a163d71a4c1dd5912dc1fd25ea0717
2018-07-11 13:27:53 +02:00
John L. Villalovos d434fd93d0 Change gerritbot to install from git
Previously gerritbot installed from a release version. So any change
to gerritbot requires a new release of gerritbot before it can come
into effect.

Change it to install the current git master branch for gerritbot and
use that.

Change-Id: Id229306960a9aa6ccf6241662e7172fce8150d33
2018-02-22 12:28:54 -08:00
John L. Villalovos c93b295cca Use latest version of gerritbot
In local testing doing a pip upgrade of gerritbot did work. So remove
setting where it would never upgrade.

Snippet from doing an upgrade inside a virtualvenv:
$ pip install -U gerritbot
<snip>
Installing collected packages: pbr, paho-mqtt, gerritbot
  Found existing installation: pbr 0.5.23
    Uninstalling pbr-0.5.23:
      Successfully uninstalled pbr-0.5.23
  Found existing installation: gerritbot 0.2.0
    Uninstalling gerritbot-0.2.0:
      Successfully uninstalled gerritbot-0.2.0
Successfully installed gerritbot-0.3.0 paho-mqtt-1.2 pbr-0.11.1

Change-Id: I155e40c380bcf4904ffc4c294b8261e3e0e1d74f
2017-01-25 15:33:03 -08:00
Philip Marc Schwartz 028315cf91 Update pip provider to use openstack_pip provider
Change-Id: I3c8c649b4901226e19591b47d459df97d9cda9f1
Signed-off-by: Philip Marc Schwartz <philip@progmad.com>
2016-06-16 10:19:24 -04:00
Andrey Nikitin 20d7a4b0df 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: I6620fb9d5f1ec867c6af4e900094c97735fe8fcb
2016-03-21 11:51:16 +03:00
Colleen Murphy 9a4679af42 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. Also fix lint
errors caught by the puppet-lint-empty_string-check and
puppet-lint-absolute_classname-check gems.

Change-Id: I923739c6997287509e75b37643ea0abe171a9faf
2015-07-23 12:51:22 -07:00
Colleen Murphy 62ab598f47 Fix defaults for gerritbot class parameters
Without this patch, the gerritbot module makes the nick, password,
server, vhost_name, user, and channel_file parameters optional by
providing default values for them. The default values are empty
strings, which are not valid and will cause the bot to not function
properly. This patch changes the vhost_name paremeter to have a default
value of $::fqdn, which is a reasonable default, and makes the other
parameters required by removing the defaults since there are no sane
defaults to provide.

This will mean that puppet runs will fail if no values are supplied to
these parameters. However, Infra is already providing values in
system-config, and other users of this module must be providing values
in order for gerritbot to work, so this should not be a destructive
change.

Change-Id: Ia0eed0f3e8341715236c7dee78840ed4443ddf90
2015-07-23 12:51:15 -07:00
James E. Blair 35511af844 Switch gerritbot to project-config
Change-Id: I952a16dac32625e829d1fccb9e2472640cd31fd5
2014-09-25 11:03:04 -07:00
Monty Taylor 7b3b6826d8 Manage gerritbot ssh key with puppet
I'm not sure this really needs a longer commit message.

Change-Id: If0a7db1b4a988fd181753748d5fc9d26cf1bb906
2014-04-28 12:18:42 -07:00
Matthew Wagoner 15e36c4b1b Clean up of minor puppet-lint warnings.
Mostly documentation and parameterised class parameter complaints.

Change-Id: I5b3ffa4ad3f707f385165c2d86c891c6bd4c1ae0
Reviewed-on: https://review.openstack.org/16901
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-11-26 20:55:57 +00:00
Paul Belanger a4aa124e19 Additional puppet-lint reformatting
Change-Id: I49e63755b8b5bf60673cf37b62371b3f299e3bbe
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/14971
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-10-29 19:21:24 +00:00
Paul Belanger eebb8b094b Style Guide updates for puppet-lint
More fixes in preparation for our gate-ci-puppet-lint job.

Change-Id: I1cd3499e6cd958fbbacd01f3daef581a7b4d3217
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/13764
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-09-28 21:24:49 +00:00
Clark Boylan 9ce9496d6c Ensure gerritbot is present and not latest.
Pip doesn't appear to be able to do a clean upgrade of gerritbot on
oneiric. It should remove the old versions of gerritbot after installing
the new versions but it does not. This confuses Puppet into thinking
that it need to reinstall gerritbot 0.1.2 on each puppet run which
restarts the IRC bot. To prevent this behavior ensure the package is
present and not latest.

Change-Id: I7729d126a7811b7e08541ed65ca48f4dc302ff6b
Reviewed-on: https://review.openstack.org/11955
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-08-24 22:04:08 +00:00
Clark Boylan 87f7a7c132 Enable gerritbot logging to /var/log/gerritbot.
Configure gerritbot to log into /var/log/gerritbot.

Change-Id: I24f8602eaa0f779de9d455cda8ad692f932ebd39
Reviewed-on: https://review.openstack.org/11939
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-08-24 20:05:23 +00:00
Clark Boylan 66aafb01ad Correct typo in gerritbot manifests/init.pp.
gerritbot.confg should be gerritbot.config

Change-Id: I9532226a690a986ae8480c1cfbd89e23cf1f3ac1
Reviewed-on: https://review.openstack.org/11905
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-08-23 23:08:19 +00:00
Clark Boylan 6ecabdcfda Use upstream gerritbot.
Stop using the gerritbot script within the puppet tree. Use the
upstream gerritbot implementation from pypi instead.

Remove old gerritbot script, use pip to install upstream gerritbot,
and update init script to find new location, of the gerritbot script.

Change-Id: I62afe404b1c4d130901e54ca4e7857bb71b4cdd8
Reviewed-on: https://review.openstack.org/10676
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-08-23 22:48:34 +00:00
Monty Taylor 883981ff09 Align all web server usage on apache module.
Change-Id: Idd712a8ee5ec81c6b88b7d3e2270dce4da254927
Reviewed-on: https://review.openstack.org/10838
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-12 17:03:46 +00:00
Monty Taylor 99d0b9f779 Fix all of the gerrit module problems.
Change-Id: I46001fd677bc9a3634c9860ec07438c326e908e3
2012-07-24 00:28:04 -05:00
Monty Taylor a168640612 Split gerritbot into its own module.
Change-Id: Ia9034d87321624006ccf447b058ee828a97fcc7a
2012-07-23 10:33:59 -05:00