Commit Graph

50 Commits

Author SHA1 Message Date
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 7954e0d563 Clean up openstack references
Switch to opendev.org for all the things.

Change-Id: I487f327948cb274ae748a843af052bf031786041
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-04-20 14:27:16 -04:00
Paul Belanger 96b9c0de96 Allow user to optionally manage config files
As an example, if we are only install zuul-web, a user might not want
logging files from other services. However, installing them won't hury
anything, so do that by default.

Change-Id: I3c43259a1a6f1bfc35911fa6e1c9d4f506c05f40
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-07 14:39:51 -05:00
Paul Belanger 44cf73e41c Add zuul_user_shell variable
Give the ability for a user to override the default shell for zuul user
account.

Change-Id: I30cb9a13f4eaf799abb627a99780aef84eaec286
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-21 14:22:42 -05:00
Paul Belanger 9f0dbe057d Set 0640 for zuul.conf
As is contains secrets for github connection driver.

Change-Id: I6fa51a4c1fe91cc6c9d89f136edb60c2df4f2e76
Depends-On: https://review.openstack.org/593992
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-20 22:43:51 -04:00
Paul Belanger f1cd85520b Fix truthy value should be true or false warnings
Running yamllint, this exposed the follow warnings. Lets clean them up
before we switch to molecule.

Change-Id: I7eec334124e8c5eecb5a0b5670f0e512ef50a607
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-19 12:33:51 -04:00
liusheng 621bbb0150 Support editable flag to pip installation
This is useful for deploying experimental CI system for testing.

Change-Id: Ib66ae60936c5659a43857d3e0d0b1a08a089e288
2018-07-03 09:37:31 +08: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 6cb235189a
Default install method to pip
We want to encourge users to use the released versions of zuul, so
flip the switch to pip.  We still support git and will continue to
test against it.

Change-Id: I72c99d162efd9fbdbb0ed9363a6779a379a06264
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-12 22:17:25 -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 34c2d13d82
Update zuul_git_dest location
Stop using /opt folder to store the location of git checkout. We don't
actually need to be root user to do that.

Change-Id: I26b13d02b73aca798deb1bbb12ce982951e59cd4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-04 19:39:25 -05:00
Paul Belanger 45f94b1157
Switch back to master branch
Now that feature/zuulv3 has been merged into master, we can also
switch back for testing.

Disable windmill jobs, until all roles have been switched back to
master.

Change-Id: I05b5a2dce7d943d334baf24de684a13e54cde63e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-02-04 13:45:57 -05:00
Paul Belanger 0d6f61e697
Add zuul_git_update setting
It is possible we do not want to update git repos or already have git
repos on disk.

Change-Id: I5095cdc3c0d25027164d98f36c8ecbeba426a6cb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-11-01 12:16:37 -04:00
Paul Belanger 302faf4574
Create zuul_pip_executable
Allow the user to control the path to the pip executable.

Change-Id: I0622a8cf6ceb0b3fc2583dca106cecc759190207
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-31 11:58:00 -04:00
Paul Belanger 8e5b9d3ec6
Switch to systemd module to manage services
With this, we gain the ability to daemon-reload our services. Which
means, if we now upload our systemd files, systemd will properly
detect this and refresh the configuration.

Change-Id: I3fa7bcccbb02755870b665b60280d8c483cc4a18
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-26 19:53:40 -04:00
Paul Belanger fbe33c05bd
Allow service / service_config to be optional
This allows the user more control over which files will be copied to
the remove server.

Change-Id: I67db12aa1fd71e898ce0772ec6adc34aaab333db
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-26 18:29:15 -04:00
Paul Belanger ac99248f69
Add zuul_pip_virtualenv_python variable
The Python executable used for creating the virtual environment. For example
python3.5, python2.7. When not specified, the Python version used to run the
ansible module is used.

Change-Id: I18a0f388e64ad30d3edd1240aa6ba3d5b6526d65
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-25 14:09:40 -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
Paul Belanger 46a1298901
Remove unneeded quotes
Change-Id: I905217cf158b6372143525589aadb206e03d5bae
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-05 11:57:02 -04:00
Paul Belanger 242a1c0460
Per service configurations
It is now possible to make configuration changes per service.

Change-Id: Ia59daa9859c22e4ff5e601528a63331d2eef93cf
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-28 16:29:59 -04:00
Paul Belanger 8bbca0e120
Simplify pip install options
Using the omit template, we can now better control which pip options
we set.

Change-Id: I8a3abc0b623a75e1f695441f96b922a2a72e41f7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-28 13:11:48 -04:00
Paul Belanger 7af82ea854
Add zuul_task_manager to expose control of tasks
There might be a time were we only want run the pre task, so rather
then copying the code into another modules, just allow the user to
override the task list that runs.

Change-Id: I97a40294ac3332bcce20ca4e3458c9988816c6c7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-27 17:49:21 -04:00
Paul Belanger 85371e9ad2
Initial support for zuulv2.5
Change-Id: Ic0629f3a7c957905c6241d4e7898a4f12e3ece75
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-14 15:09:43 -04: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 f8c83b0998 Drop synchronize support
It was become too much work to deal with this. Additionally, if people
want to manually synchronize we expose the proper settings to allow
them to do so.

Change-Id: I21089e2c2e9539931c3b780d1569af6e54a4a25c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-02 16:06:51 -05:00
Paul Belanger 866e71d640 Add service manage variables
It is possible that a user will not want the roles to control the
service settings. For example, if a service dies and you don't want to
auto restart it.

Change-Id: I1d99a712984a71f41533cadda317c13f03b9f779
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-04 10:42:53 -05:00
Jenkins 4d16a78e25 Merge "Add ansible 2.0 support" 2016-01-28 19:40:23 +00:00
Paul Belanger 53ef2040ec Add ansible 2.0 support
Change-Id: Ieaa3b3b5c7cb5dd36ef468801f1510a4aa98a647
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-01-28 18:15:19 +00:00
Paul Belanger 4689704c7f Rework service config files
This removes the wonky relative paths used in ansible.

Change-Id: I37cf70c919d3e0a9022b1c63352565c46be07c57
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-01-28 10:23:01 -05:00
Paul Belanger 07380285dd Use rsync to copy layout configuration
Change-Id: I406bf0f5207fc9fe42a8c7ccccb3013fcee63969
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-20 12:19:31 -05: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 79aec371c1 Drop project-config support
The most I started thinking about this, the more it should be in an
external project.  We've exposed everything the user needs to override
the default settings and reload zuul.

Change-Id: I3b7c08f1511100ccbf50ba1eb8fd7dd220c9eab4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-16 17:09:34 -05:00
Paul Belanger 2eed4399ee Allow user to control service states
Change-Id: Ied277489341bfb7950f12bf6f1fa96f691178348
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-16 15:54:28 -05:00
Paul Belanger 5801ce8f14 Add support for Debian services
Change-Id: I267b590e02ccd3119a9a38d6e42e8eaf87bfe114
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-14 18:35:17 -05:00
Paul Belanger 5242fa7b48 Be explicit with service destinations
Change-Id: Ifc3902efa6a8e1cfb64b96ff389ef705049bcd1d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-14 15:24:15 -05:00
Paul Belanger 1f4cc4fc9d Properly template zuul services
This will allow a user to override our settings, additional we now
have unit tests for code coverage.

Change-Id: I5a10bc09dc1de941af89c11314c32c31a7890434
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-12 11:31:37 -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 aba16b0627 Create zuul_project_config_dir
Expose a way for zuul project-config to be copied on to the remote
host.

Change-Id: I0820daae310b65bd4474aabd60d8685100ac72df
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-01 11:30:54 -05:00
Paul Belanger 821fdd5b95 Switch from localhost to 127.0.0.1
This is to avoid potential dns issues in the future.

Change-Id: I9787b07b08905349de194ddaf25da9259a570f19
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-28 01:39:43 -05:00
Paul Belanger f413b69258 Fix typo with zuul_user_home
Add unit test and assert /var/lib/zuul is the home directory.

Change-Id: I1557b12570d443a54c71ab044e5a5c9dbd6b3ba2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-25 23:24:41 -05:00
Paul Belanger 8d980572b7 Create config variables for zuul user
Remove hardcoded user settings and allow a user to override them.

Change-Id: I126b0bbd53e2fec63eb48c15762561ab757d27c6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-25 17:07:05 -05:00
Paul Belanger 2c2cb5faf8 Update zuul_git_dest folder
Moving this under ansible-role-zuul namespace will help avoid
confusion.

Change-Id: I6b8807ff8c3df56cb7471b237d977c6a64f2b575
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-25 16:10:34 -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 5555723bb1 Remove zuul_ssh_private_key
We don't want to be responsible for managing SSH keys inside our role.
There are many better roles to do this.  Add documentation for the
user explaining how to do it.

Change-Id: I5f9f3722a10bfc1dff2469b5cd16e4cdc9827b0b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-24 19:45:58 -05:00
Paul Belanger d780a0ab04 Bind gearman to localhost by default
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-21 17:43:53 -05:00
Paul Belanger 4185cfb4d0 Add LICENSE headers
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-20 17:06:40 -05:00
Paul Belanger 57e5e1e055 Initial commit
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-10 16:50:05 -04:00