Commit Graph

32 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 ae4f8c7134 Pass secure.conf by default to nodepool services
This file is used to contain information like zookeeper auth, by default
we should enable it for our systemd integration.

Change-Id: I9dec8aef178e4faf9038b49471d1534bbce22574
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-22 20:39:09 -04:00
Paul Belanger 4666971ac5 Switch to molecule for testing
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>
2018-08-19 11:32:19 -04:00
Paul Belanger ff4eaf2ade
Remove database section from secure.conf
This is no longer needed with zuulv3.

Change-Id: Ia015e1b5cc34af7819428dea9f155e1711502882
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-05-11 19:39:23 -04:00
Paul Belanger e905a23676
Remove /var/log/nodepool/images folder
This is no longer used, as nodepool manually creates
/var/log/nodepool/builds.

Change-Id: Ib27b55cc6dfed7bc9dee702ab66abb3199a27830
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-06 10:14:59 -04:00
Paul Belanger 0a8f3a160b
Simplify systemd service configuration
Merge these files into a single override.conf file.

Change-Id: I9a8c0f01041986e7b6f01de2d4d89eccffcf86bf
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-04 23:41:06 -04:00
Paul Belanger 663e9ce11c
Remove PREFIX from service files
This was really to work around the need not to template our service
files.  Mostly because I was scared how large and unmanageable they
would become.  Let ansible do its job and remove the hacks we had in
our systemd unit file.

Change-Id: I92a4167900bbf48d564207017a9790d4102f937f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-04 20:22:31 -04:00
Paul Belanger c676f99309
Switch from fedora-26 to fedora-27 testing
Now that we have fedora-27 images online, start testing against that.

It also seems that pip3 will use /usr/local so we can remove override
from systemd for fedora.

  https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe

Change-Id: Ic47121b0d13936795980c433ee52cc1c6e11b2cd
Depends-On: https://review.openstack.org/543013/
Depends-On: https://review.openstack.org/543019/
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-02-09 19:41:04 -05:00
Paul Belanger 90d6e1937a
zmq-publishers are no longer valid settings
We can remove zmq-publishers as they are no longer used.

Change-Id: I79c54d9ca5958af41025f9dcfd6b35f5348a7f1f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-06-10 09:37:13 -04:00
Paul Belanger 414a470bee
Add --no-webapp to nodepool-launcher.service
We actually don't want to run the web app at the moment. There is a
patch upstream to break this logic out into wgsi. Once that lands, we
could start to use it.

Change-Id: I213314c918f729c4a06881d628d8f214a48d50df
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-29 18:00:17 -04:00
Paul Belanger 5c8d047bd4
Switch to systemd configuration files
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>
2017-05-29 10:49:48 -04:00
Paul Belanger 982b5534e3
Remove ubuntu-trusty support
Move forward with only supporting ubuntu-xenial for our LTS.

Change-Id: I95194bd5555a0df18059f4aaf2ab1898dcfb59e6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-26 21:42:56 -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 e124afdc84 Remove deprecated --no-builder flag
This has been removed from nodepool, so remove it from our services to
avoid a breakage.

Change-Id: Ifed1ca7af69dc8854df66cd1af1f05a0ef2355d3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-23 08:12:29 -04:00
Paul Belanger 88e31634fa Move image.log to /var/log/nodepool/images
Change-Id: I1b89491847a14ab63e3c2a3262c0befbaffe4167
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-22 13:04:44 -04:00
Paul Belanger 43de611451 Remove image.log from nodepool logging
With nodepool feature/zuulv3, we have removed support for snapshot
images. As a results, this file is no longer needed.

Change-Id: I7471156cffc0798c30c2a1ef8404c93ffb715183
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-22 13:02:27 -04:00
Paul Belanger 5dc334c41b Switch to template so users can use it
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>
2016-12-24 15:04:06 -05:00
Paul Belanger 8dc8c157eb Drop elements-dir from nodepool.yaml
This is an optional setting, and not needed to start nodepool.

Change-Id: I603b4a79f9a15ad404df4b34377c2f9fc0f7ba17
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-24 12:44:42 -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 fdb7b6d23c Fixes for nodepool with zookeeper
Now that feature/zuulv3 branch was merged into master, we need to
include some fixes.

Update bindep.txt for fedora.

Change-Id: I06640d487149a555da5165b80826ebc689937bf5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-14 16:03:15 -05:00
Adam Gandelman a831d2a607 Migrate config installation from copy -> template
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
2016-10-14 13:38:36 -07: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 e327bb33ec Make clouds.yaml actually yaml
Change-Id: I655d9430efe38bf7244deb17e113b38d41efe721
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-16 09:02:05 -05:00
Paul Belanger d214efab4b Drop ansible_managed flags
We already have a warning header included, so this is just duplicate
code.

Change-Id: I679bff557d8149bd082340b1a864d81d274f60c2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-27 20:49:54 -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 b649c341d7 Remove dburi from nodepool.yaml
Change-Id: I21842f977f157acb30ddc419788d15e7afb7f8b1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-23 18:51:14 +00: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 470d59c634 Next round of nodepool configuration
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-14 13:04:06 -04:00
Paul Belanger a97239472a First pass for configuration
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-03 15:53:36 +00:00
Paul Belanger 72b773d326 Add nodepool configuration for directories it uses
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-08-30 16:37:50 +00:00