Commit Graph

29 Commits

Author SHA1 Message Date
Paul Belanger 98e276dfd1 Use full-reconfigure to reload zuul-scheduler
Depends-On: https://review.opendev.org/c/windmill/windmill/+/798005
Change-Id: Ia1c9af51f4e0d1032ae844b7c97f37841c3ffcef
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-24 14:20:25 -04:00
Paul Belanger 40ba59d89e Make jobs voting again
This should allow us to start testing the latest versions of zuul again.

Change-Id: Ia41f1104bff14728291502c33110eff150d3a372
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-23 12:03:37 -04:00
Paul Belanger 53c3920c6b Initial database support
This adds a database connection for testing, which will be required in
4.0+.

Change-Id: I3c9ba6aac023a0018d857bd3d34f54cdc26e4b79
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-23 11:35:59 -04:00
Paul Belanger b39e9df5f5 Switch to -f (foreground) for systemd files
-d will be removed in the next version of zuul.

Change-Id: Icbc6e0b6b82d5d7cb544d223614e741219b70fad
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-23 09:49:35 -04:00
Paul Belanger be19120a4a Add ssl support for zookeeper
Change-Id: I891373b656e4f2ab59e1cdffaa122bc821c46bf1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-22 21:59:34 -04:00
Paul Belanger a4a10fc062 Define zookeeper hosts for zuul configuration
Zuul 3.7.0 introduced a breaking configuration change, we now need to
define zookeeper hosts by default.

Disable 306 for ansible-lint until we can decided best fix.

Change-Id: Idd54f1ea75cccbb0dab7978ca4d7778fbc05bf42
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-22 20:14:19 -04:00
Paul Belanger 7c804cd9b5 Set gerrit_io logger to INFO by default for scheduler
We get a lot of information from gerrit_io by default, default this to
INFO as not to grow logs to large.

Change-Id: Iefe9425b48458ed99b4e5653e0270a77e745e210
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-20 10:45:09 -05:00
Paul Belanger 7f4bcf4f51
Stop setting pidfile for zuul.conf
There really isn't a need to override these defaults, we also use -d
flag by default when starting services, so pidfile aren't actually
used.

Change-Id: Iac3d42b332563b6a850ed49bb750c6c0eae8ac36
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-16 11:41:17 -04:00
Paul Belanger 0913ef63b1
Replace layout config with main.yaml
With zuulv3 there is only a single configuration file now for
projects, no more external python files. Remove zuul_file_layout with
zuul_file_main_yaml.

Change-Id: I63d592999684b1437bb240405a62af0cc362e977
Depends-On: https://review.openstack.org/561475
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-15 15:50:07 -04:00
Paul Belanger d701975a50
Simplify systemd service configuration
Merge these files into a single override.conf file.

Change-Id: I2ebfc8b5d0f85fc635a87adc2e2d607239287a92
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-05 00:15:42 -04:00
Paul Belanger 7e2a53bdcd
Remove PREFIX from service files
This was really to work around the need not to template our service
files.  Mostly because I was scared how large and unmanageable they
would become.  Let ansible do its job and remove the hacks we had in
our systemd unit file.

Change-Id: I5ae753d7c2a2d068750bd29400e7b736cc33df39
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-04 20:32:33 -04:00
Paul Belanger 83d425bdb3
Switch to template for zuul service files
We do this for ansible-role-nodepool, we might as well do it here.

Change-Id: I1976f05ec1ec6fdb69e255297dfa64ab00330e7c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-04 20:27:49 -04:00
Paul Belanger 9167794c34
Add support to manage SSL cert
Since gear support SSL certs, add in some support to place them into
the SSL folder.  It is possible we might want to move this into an
ansible role, but for now it seems minimal to support it.

Change-Id: I5a3097a6026f648c6dbabb1e26e6a4d201f68c1c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-03 22:36:28 -04:00
Paul Belanger 3a9c863212
Add fingergw support
In zuulv3 we added the fingergw process, update our role to support
that.

Change-Id: I2978bb3c53c2f0ed56a6536be110cb471f157ab2
Depends-On: https://review.openstack.org/551015
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-13 16:36:05 -04:00
Paul Belanger 7d5442f91f
Add support for zuul-web
Zuulv3 creates zuul-web which is needed for log streaming, secrets and
various other things.

Change-Id: Ib3378e6f726d0781750a48f80fe276d63c5c68f5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-06 18:26:10 -05:00
Paul Belanger 14287ebb0f
Fix typo in zuul.conf
It is now tenant_config for zuulv3.

Change-Id: I4f0f98aa91529e2c1de03c755ff52e68b3b6d455
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-06 16:09:34 -05:00
Paul Belanger 810b66b6b3
Switch from fedora-26 to fedora-27 testing
Now that we have fedora-27 images online, start testing against that.

It also seems that pip3 will use /usr/local so we can remove override
from systemd for fedora.

  https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe

Change-Id: I21f5c2b5cefd3b8b08478de5db9a3104f1610b5a
Depends-On: https://review.openstack.org/543013/
Depends-On: https://review.openstack.org/543019/
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-02-09 21:00:27 -05:00
Paul Belanger a4c87c9638
Add support for kazoo logging
The scheduler now uses kazoo for zookeeper integration, add support
for it.

Change-Id: I74fd30ad3cf90d7ac2904b4db5f91961c59cbbef
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-02-04 19:51:42 -05:00
Paul Belanger 42b729d2d4
Initial commit for zuulv3 jobs
Change-Id: I82a41c334032f4a15a363cf14063326f0145041f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-11-11 21:33:47 -05:00
Paul Belanger fedc3c6666
Switch to systemd per service config files
The recommended way to setup service config files is with using:

  systemctl edit foo.service

This updates our systemd configuration files to support this.

Change-Id: I405d6063ad3d5fd529139d7ce17c3238924f2e45
Depends-On: I92801be5fadc91c72e562b4b8dfb2ed1af24a320
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-26 18:40:52 -04:00
Paul Belanger e7af59e895 Remove zuulv2.5 hacks
Now that zuulv3 is well into development, we can stop installing
things related to zuulv2.5.

Change-Id: Icd630871ad2991cdf884f6569237827100934138
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-15 15:44:29 -04:00
Paul Belanger dc3ac2381a Rename zuul-launcher to zuul-executor
Change-Id: Ibca96dec83f7a1a077ada9c8e001e9f173c6e050
Depends-On: I933ad76621b402701d418bcb693192713c79da41
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-15 13:53:04 -04:00
Paul Belanger 3fc94ec74a Switch to feature/zuulv3 as default branch
Now that we are running zuulv3-dev.o.o, we are in a good place to
switch to the feature/zuulv3 branch for our ansible role.

Switch out zuul-server with zuul-scheduler.

Add python2-dnf to bindep.txt for fedora-25 job.

Change-Id: Ib61063c9b542e04f2f14a165f23bc82062714bf8
Depends-On: Id54a479e2e1b406cd5fd526ec6d2ee118b28b8d7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-02-28 12:46:55 -05:00
Adam Gandelman 747f3ba540 Migrate config installation from copy -> template
This migrates installation of config files from using 'copy' to 'template',
allowing downstream users of the role the ability to carry a template in their
playbooks and have it easily rendered out simply by overriding the
zuul_file_*_dest variables.

Note, this omits layout.yaml for the time being

Depends-on: I32cc11901bddd03125e1c4ce6f246d811f414cba

Change-Id: I9f5890a54ded2b0169aa76501828e7856e0d6583
2016-10-18 14:16:10 -07:00
Paul Belanger 2063ed25a3
Stop templating configuration options
Simplify things by only passing the zuul.conf file, not a template.
If users need more dynamic options, they are free to template the file
first then use us to copy the file in place.

Change-Id: Ibd599b3ece707682eff9650a2244c0fb092f601c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-14 12:59:42 -04:00
Paul Belanger e2456dd936 Ensure services are running properly
Fix issue on Debian and finally add tests to confirm things work as
expected. Zuul-merger doesn't support reloading so lets remove it.

Change-Id: I14a8d4992d08a291fda6d9679dea7dc83379feda
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-17 19:54:04 -05:00
Paul Belanger ca218a6091 Add git user.name and git user.email settings
Change-Id: I60556ea635826d9893391002eeab88b10e45f23e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-08 15:55:31 -05:00
Paul Belanger 82dd462497 Update zuul.conf template
Allow the user to override the location of the zuul.conf templaste.
Also added a few missing settings (layout_config).

Change-Id: I1c7674223146287396d5559bd4dee9eaa292f13c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-25 13:13:09 -05:00
Paul Belanger 57e5e1e055 Initial commit
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-10 16:50:05 -04:00