Commit Graph

54 Commits

Author SHA1 Message Date
Paul Belanger 9ae268fa89 Add zookeeper tls support
Now that tls support is required, add support for it.

Change-Id: I36f2c0a2b2209cfa974b4686c0c32f3fe32e9cae
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-22 08:51:00 -04:00
Paul Belanger 93157d2f9e Clean up references to openstack.org
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>
2019-04-20 14:02:59 -04:00
Paul Belanger deb34c3dd3 Create nodepool_pip_virtualenv_symlink variable
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>
2019-03-23 15:34:48 -04:00
Paul Belanger 34bd22ca8b Add experimental installation from docker
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>
2019-02-07 16:15:03 -05:00
Paul Belanger 96ac665eaa Add manage toggle for logging config
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>
2018-12-20 10:45:21 -05:00
Paul Belanger 28721e46e4 Create nodepool_user_home_mode variable
and default the value to 0755.

Change-Id: I2d5374c49d682a0e8b565e61d280e73fc4619863
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-23 17:27:49 -04:00
Paul Belanger 48531f50f1 Fix truthy value should be true or false
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>
2018-08-17 12:31:28 -04:00
Paul Belanger afd7ce2c9e
Add nodepool_user_shell variable
Expose the ability for a user to override the default shell.

Change-Id: I27d872ba6c626c65f2d66ab292cbeb10af3f5203
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-07-28 19:51:41 -04:00
liusheng 7ef2873b48 Support editable flag to pip installation
This is useful for deploying experimental CI system for testing.

Change-Id: I8f69f0b91c56bdcef125532c2725a00799382a0e
2018-07-03 09:41:42 +08:00
Paul Belanger 3d96a9ae01
Default install method to pip
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>
2018-04-12 18:37:18 -04:00
Paul Belanger 7f5d52dc8b
Remove unused nodepool_file_nodepool_elements_* variables
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>
2018-04-08 16:12:05 -04:00
Paul Belanger 4972ff6b7f
Update nodepool_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: Icdb2905cf66fd9ab414d009ad3d782bc802e037d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-04 15:17:09 -05:00
Paul Belanger 8dc3280328
Switch back to master
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>
2018-02-04 13:24:23 -05:00
Paul Belanger e19641c9f2
Create nodepool_git_update varible
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>
2017-10-18 10:00:16 -04:00
Paul Belanger 164d71110a
Create nodepool_pip_executable variable
Allow the user to override the location of the pip executable.

Change-Id: I47a13c168abcf35eb791ac602532fcea3f0e2a1e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-31 12:01:36 -04:00
Paul Belanger c8103941ba
Switch to systemd task for services
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>
2017-05-29 18:03:40 -04:00
Paul Belanger dbeb2cb052
Allow user to manage specific service / config files
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>
2017-05-29 09:18:10 -04:00
Paul Belanger d7e1665f58
Create nodepool_pip_virtualenv_python variable
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>
2017-05-26 22:06:38 -04:00
Paul Belanger 5a2fdd352e Switch to feature/zuulv3 branch
Change-Id: Ia1c530fc57f50d255e87e066c292bcbe09cdd094
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-29 14:02:01 -04:00
Paul Belanger 4aeac7efea Add support to clone a refspec
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>
2017-01-22 16:21:51 -05:00
Paul Belanger cf93f245f6 Drop scripts-dir support
This is no longer a valid setting in nodepool.

Change-Id: Iee9399cf0989eb7cfab4c71c97baf5a69c3265d0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-24 11:54:50 -05:00
Paul Belanger 7ae472381d Add nodepool-launcher support
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>
2016-10-08 16:01:20 -04:00
Paul Belanger c95988bccb Add nodepool-deleter support
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>
2016-10-08 11:13:29 -04:00
Paul Belanger 5b1c3321a3 Add nodepool-builder logging.conf file
Change-Id: I97a3d2d394b5daca23af2c44d4488c097e521f33
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-10-08 09:18:46 -04:00
Paul Belanger 7d24cad3cd Clean up logging.conf settings
Change-Id: I8117498c19b2fb72603245efce8e708276b37f10
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-10-07 20:12:20 -04:00
Paul Belanger f04741c140
Remove invalid settings
This is data that has been left over since switching away from
templates.

Change-Id: I52afbaf3364ef9134f38dd60d885644d0d66825a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-05 22:17:00 -04:00
Paul Belanger a0a37bddb9
Drop synchronize support for scripts
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>
2016-09-05 15:10:01 -04:00
Paul Belanger 7220ba6dac
Drop synchronize support for elements
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>
2016-09-05 14:24:33 -04:00
Paul Belanger 354161295f
Stop templating secure.conf options
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>
2016-09-05 13:24:20 -04:00
Paul Belanger 2f6300cf03
Drop support for clouds.yaml
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>
2016-09-05 12:45:57 -04:00
Paul Belanger 70feab610d
Stop templating configuration options
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>
2016-09-05 12:43:31 -04:00
Paul Belanger 7d719fe355
Add nodepool_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: I15f58454607c5c56f9bb092036a656618b6b3c20
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-03 22:10:30 -04:00
Paul Belanger 2658537bb4
Per service configuration
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>
2016-08-31 20:40:16 -04:00
Paul Belanger b624428583
Simplify pip install options
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>
2016-08-31 00:10:05 -04:00
Paul Belanger 9e40c41283 More elements and scripts to /etc/nodepool
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>
2016-03-26 20:42:01 -04:00
Paul Belanger 63367f14ce More elements and scripts to /var/lib/nodepool
To keep things in sync with future packaging.

Change-Id: Iff3221cd4d9eb7c058aefcd8747ac7f8baa3988b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-13 16:02:46 -05:00
Paul Belanger e411d22260 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: Iaed9769c943412d14674b7c5a9f2d7b899480746
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-05 10:36:00 -05:00
Leif Madsen 212a191c4d Drop unnecessary relational paths in copy module
* 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
2016-01-28 13:36:16 -05:00
Paul Belanger 539b27a6d2 Add nodepool-builder support
Change-Id: Ia8786c2bf118089d9ded53257ec6d3dec6cb9c14
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-01-26 16:36:24 -05:00
Paul Belanger 617c03797c Switch back to init.d for Ubuntu 14.04
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>
2015-12-13 18:11:04 -05:00
Paul Belanger f83b589c3b Expose nodepool service to user
Change-Id: I081cceb8ee54ab7925fa555a34c6a306530e886e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-12 20:57:43 -05:00
Paul Belanger b08a112351 Refactor nodepool service
Allow the user to override the service settings and add unit tests.

Change-Id: I2d9409d210015a202f33eca970d02be137617de7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-12 15:58:35 -05:00
Paul Belanger 3f9c17f936 Switch to separate elements and scripts directories
This will give the user more flexibility when defining source folders.

Change-Id: Ib57f81fc6892c55e67be647d2f1d2e56fd4f08ec
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-27 23:23:41 -05:00
Paul Belanger 8b831ff81c Rsync support for elements and scripts directory
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>
2015-11-27 11:30:53 -05:00
Paul Belanger 91cadfa143 Rename to nodepool_config_scripts_dir typo
Change-Id: I008d64e56d56044b75d567c480bb426ce58b7cf0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-26 21:50:29 -05:00
Paul Belanger b89a8c35a6 Remove hardcoded nodepool user settings
Add documentation about variables too.

Change-Id: I66040a3ae1cf287ca02a4e65ed2099c8649ad486
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-26 14:26:15 -05:00
Paul Belanger 27941b8199 Update nodepool_git_dest folder
Moving this under the ansible-role-nodepool namespace will help avoid
confusion.

Change-Id: Iee7d81b1c38d5995c1d8a6fd71a9df3e70fb0de3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-23 13:27:12 -05:00
Paul Belanger e2acef2597 Add os-client-config support
Change-Id: I6dd96af86d8a080ff7a6f5700f8b52e3ad770151
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-20 15:50:48 -05:00
Paul Belanger 91eb254d7d Add LICENSE headers
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-10 09:40:44 -05:00
Paul Belanger c3d5ae9c73 Add nodepool_pip_name variable
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-14 16:18:36 -04:00