Now that tls support is required, add support for it.
Change-Id: I36f2c0a2b2209cfa974b4686c0c32f3fe32e9cae
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
With opendev.org now online, we can start using it over openstack.org.
Change-Id: Ia28113926efd70bee28aec7b88edcfdb365e6665
Depends-On: https://review.opendev.org/654017
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Expose the ability for a user to create a symlink to a nodepool
virtualenv, this is usually needed when you start trying to version
different virtualenv installs.
Change-Id: Id77609f696dcd4083001a101fdd22ba1634f4617
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This is our first attempt at running nodepool from docker, consider it
experimental. The idea here, is you now have the option of using the
official docker images from https://hub.docker.com/u/zuul for nodepool.
Users themself will be required to manage / configure docker, this role
only installs / configures / starts nodepool.
Change-Id: I2f3aa301e626a7b09ff129a21a188cee06e31f18
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Allow a user to toggle the installation of logging files, as we allow
them to disable services.
Change-Id: Ie354cb0547fa247f940aa15222bbf4994d4201ee
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
While testing out molecule, the following warnings were raised with its
linter. Lets fix them to keep it happy.
Change-Id: I698f65daa58822f7befc72b9dcbf1f2d668cab02
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Expose the ability for a user to override the default shell.
Change-Id: I27d872ba6c626c65f2d66ab292cbeb10af3f5203
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We want to encourge users to use the released versions of nodepool, so
flip the switch to pip. We still support git and will continue to
test against it.
Change-Id: If45a1392b1caed8d1c181bd463bad30f91eab899
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
These are left over from a time where we did sync nodepool elements
directory.
Change-Id: Ic7c4313424f9115f4f0587d47b64210a1baca70a
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: Icdb2905cf66fd9ab414d009ad3d782bc802e037d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We've delete feature/zuulv3 and merge back to master! However, because
centos-7 doesn't support python3 we also have to drop testing it for
now too.
Stop running windmill jobs, so we can land these changes.
Change-Id: I3510c2317e07f9088a4ef9b95a4b43ec96dafb56
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
First attempt to support offline install, as it is possible for the
git repo to already be installed onto disk. This is the case now in
zuulv3, we no longer need to fetch git from a repo location.
Change-Id: Ic93ccb65014619131e335dd0d5bb2ae3c21ae98b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Allow the user to override the location of the pip executable.
Change-Id: I47a13c168abcf35eb791ac602532fcea3f0e2a1e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Now that we only support systemd, we can switch to the systemd task in
ansible. This add support for the daemon-reload option.
Change-Id: I3ea9b5b54536cfca18739304fcc737e70769e0e8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Increase the ability for a user to toggle control over the specific
service / config files.
Change-Id: I5011bdd0b299a4f09a3fe49b3888d48b658908b9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This allows the user to pick the version of python used for the
virtualenv.
Change-Id: I20c513baf06a289ca8920658384042620a52627e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Expose the ability for a user to pass a refspec to our git task.
Change-Id: I6554bfbcfbd3b7d72f3dbd89d3cc8aa3ee5725bd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This is no longer a valid setting in nodepool.
Change-Id: Iee9399cf0989eb7cfab4c71c97baf5a69c3265d0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We now have the ability to scale out nodepool-launcher, on a single
instance.
Change-Id: Ib7792ea591c7e1ce953730791884566f77fcbd33
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We now have the ability to scale out nodepool-deleter, on a single
instance.
Change-Id: Idce9a7a1f49ae7b433009967bc1df220b0c35e00
Depends-On: I84a727198f0f3b1d3fbd0564b9ccb120648069cd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This is data that has been left over since switching away from
templates.
Change-Id: I52afbaf3364ef9134f38dd60d885644d0d66825a
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: I68aedb16223146f1ff6d7c9115773e62ae4ba8c9
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: I68ae9e7cb6e4a69392ea95cd0be72e01f166190e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Simplify things by only passing the secure.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.
Also tests file mode for nodepool.yaml
Change-Id: I4d2eba3292b2657ef9a607497056fa94cdd1bec8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This really belongs in os-cloud-config role, not nodepool. For now,
users can template the file themself.
Change-Id: Ie03272f84ed22d5c01bd21bcd06f77c67e4032da
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Simplify things by only passing the nodepool.yaml 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.
We'll be doing this over a series of commits, rather then 1 large
patch.
Change-Id: Id751920e31edac9a469f4624ae2a30e841245d80
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: I15f58454607c5c56f9bb092036a656618b6b3c20
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Since it is possible to run both nodepool and nodepool-builder, we
should give the user 2 different configuration files.
Change-Id: I9e825a331d04124a2548203cfd8d77935fdf7bb6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Using the omit template, we can now better control which pip options
we set.
Change-Id: I182dec217f88da846488e497b062920e2a72a2d9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Move them back to their original location to be in sync with
openstack-infra.
Change-Id: I21a38b7be1c7a9ee2547a8bbd2f2f5018e51d15f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
To keep things in sync with future packaging.
Change-Id: Iff3221cd4d9eb7c058aefcd8747ac7f8baa3988b
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: Iaed9769c943412d14674b7c5a9f2d7b899480746
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
* add tests to validate files are installed
* change to match zuul style service configuration
* fix invalid tests added first time around
* add missing defaults
* drop nodepool.sysconfig and move to proper location
Change-Id: Iee0b11897d7f4916035ab2d92c5d2dd755341670
Upstart is dead moving forward, just skip using it until systemd is
default for Debian.
Change-Id: I3ca250523d2871097001df0c76b3b83f57eb5c99
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Allow the user to override the service settings and add unit tests.
Change-Id: I2d9409d210015a202f33eca970d02be137617de7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This will give the user more flexibility when defining source folders.
Change-Id: Ib57f81fc6892c55e67be647d2f1d2e56fd4f08ec
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
nodepool_project_config_dir should contain the path of adirectory which
has both elements/ and scripts/ sub directories.
Change-Id: I3a3d2ba225f15cf785da327905915053b04340ea
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Moving this under the ansible-role-nodepool namespace will help avoid
confusion.
Change-Id: Iee7d81b1c38d5995c1d8a6fd71a9df3e70fb0de3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>