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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Allow the user to control the path to the pip executable.
Change-Id: I0622a8cf6ceb0b3fc2583dca106cecc759190207
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
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>
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>
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>
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>
It is now possible to make configuration changes per service.
Change-Id: Ia59daa9859c22e4ff5e601528a63331d2eef93cf
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
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>
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>
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>
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>
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>
This removes the wonky relative paths used in ansible.
Change-Id: I37cf70c919d3e0a9022b1c63352565c46be07c57
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
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>
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>
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>
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>
This is to avoid potential dns issues in the future.
Change-Id: I9787b07b08905349de194ddaf25da9259a570f19
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Add unit test and assert /var/lib/zuul is the home directory.
Change-Id: I1557b12570d443a54c71ab044e5a5c9dbd6b3ba2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Remove hardcoded user settings and allow a user to override them.
Change-Id: I126b0bbd53e2fec63eb48c15762561ab757d27c6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Moving this under ansible-role-zuul namespace will help avoid
confusion.
Change-Id: I6b8807ff8c3df56cb7471b237d977c6a64f2b575
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
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>
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>