Now that tls support is required, add support for it.
Change-Id: I36f2c0a2b2209cfa974b4686c0c32f3fe32e9cae
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>
It is possible we want to enable a service on boot, but don't want to
ensure it is currently running. This splits our systemd tasks into 2
different checks now.
Change-Id: Ib37371031a871d0d57b390e2430ea1efb3094171
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>
Molecule is the defacto testing tool for ansible roles. Switch to it to
make it easier for users to test.
Change-Id: I881e895877c9702e62c4415d48b0f33f34f7487b
Depends-On: https://review.openstack.org/593369
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>
There is no need to loop over the list of packages, this is actually
slower.
Change-Id: I38361ccc9a5c84b8d2cff8fe813475e115e47bf0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Moving forward, we'll only support nodepool under python3.
Change-Id: If0f9ed013819b68601e28ecfbeffa40a41d19ebc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
When installing nodepool from pip (pypi.python.org) there is no need
to install the build dependenies as we download the wheel.
Change-Id: I60c87135e8d5d83c3bf810835e18926d2ad0e103
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This is no longer used, as nodepool manually creates
/var/log/nodepool/builds.
Change-Id: Ib27b55cc6dfed7bc9dee702ab66abb3199a27830
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Now that we are using systemd everywhere, for xenial++ there isn't a
need to release specific settings.
Change-Id: Ie4c9e658aded6f7055189903b9f448ba92af6713
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>
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>
Now that we are using systemd everywhere, we can simplify our service
configuration.
Change-Id: I9bacb3925f8e95587d459284758de337f9a270c3
Depends-On: I37ae527a93f5d5300c9ac4a1b4a6ca4363e7096d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Provide a tmp directory for nodepool-builder. This is to work around
operating systems that use tmpfs for /tmp.
Change-Id: I8f5eafe03a759a4b271e6f82946d2ffecba9f81a
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>
We can clean up our install tasks by using an include.
Change-Id: I48d5259befa2e6733e1750f56245ac6e5eff48fe
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
If we are not managing the service, don't both managing the service
init script and service config.
Change-Id: Ibe19aa867f89401b11993bddaf542b150b2d9b1c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Even though we are not templating files, it doesn't mean users won't.
So, replace copy with template.
Change-Id: I82f28c1951221a81083de66e4495de5fdcc5bdee
Depends-On: I4ac2a4b9de91b0cd949f835b6f06d1aca3720150
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This is an optional setting, and not needed to start nodepool.
Change-Id: I603b4a79f9a15ad404df4b34377c2f9fc0f7ba17
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>
No point running difference variables for RedHat yet, there is no
need.
Change-Id: Ie2dfb605595076ed20ea376ac5fe88479fcbd106
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Because ubuntu-xenial is using systemd, and trusty is not, we now have
the need to do specific things on each version of ubuntu. As a result,
we now have 3 vars files to include.
Change-Id: I728ddd3e464a63398e16480407e0f1482bf4e106
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
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
nodepool_file_*_dest variables.
Depends-on: I32cc11901bddd03125e1c4ce6f246d811f414cba
Change-Id: I744b3177e2c10a3a101b73405b885ae0bd231db8
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>
The idea here is to expose information to users to allow them to make
decisions, for example restarting a service.
Change-Id: Ifbc45af72db820c842c83d7af1adb460969a7336
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>