Commit Graph

41 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 d9a53413cf Clean up punctuation
Change-Id: Id8cb719c8b0117724c6829fab7ed17e839adc4be
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-20 16:53:13 -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 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 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 0975041f96
Create /opt/nodepool/tmp directory
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>
2017-05-29 09:58:17 -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 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 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 40f1e5036f Add /opt/nodepool/images to required directories
Change-Id: Icfcbfc71bfa06f35c5961f8a7dd6c6b138e5fedc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-26 16:56:01 -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 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 2644350b7d Register the results of file changes
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>
2016-10-07 21:15:13 -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 bfe2244040
Move user creation to pre step
Change-Id: I8ae0f4a92cd31b0c04c306c112ad63cf52793db1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-03 22:00:14 -04:00
Paul Belanger ef178a3788 Fix sudo permissions for elements and scripts dir
The reason we didn't catch this is because the jenkins slaves already
have these folders created. In a future patch we should move these
into /var/lib/nodepool

Change-Id: I01349f6bc21002e638ecbd301f4fb6269df37376
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-13 13:14:46 -05:00
Paul Belanger d8f7e5cf3e Add ansible 2.0 support
Change-Id: Ic291a13abec987aec43ee2238d75d6d8fdf6fa94
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-01-26 12:31:52 -05:00
Paul Belanger 67389655d5 Remove restart handler
At the moment, we don't have a good control on when to actually
restart nodepool. So, it is possible weird things can happen.  Also,
most of the configuration of nodepool is read in realtime, so reloads
are really needed.

Change-Id: Ice81ffb8ecd08b88e42ef1eb775720ed1744e08c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-12 18:53:19 -05:00
Paul Belanger 0bbbb72620 Drop sudoers support
Currently DIBs are optional, as such, we don't actually require
modification to sudoers.  Additionally, we don't want to get bogged
down into managing something outside the scope of nodepool.

Change-Id: If1874c4babc7d5120d8cb80837e69bab20434d71
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-11 12:20:38 -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 c694057024 Preserve existing permissions with rsync
Otherwise, we loose the execute bits for dib elements.

Change-Id: I83e193cd9aef7e7e9da71558b27af1463c80bc3b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-27 17:50:15 -05:00
Paul Belanger c6663bfe73 Remove nodepool_project_config_dir notify
No need to restart nodepool when this code is for diskimage-builder.

Change-Id: Ia177d227b271fceaf32700045fef701ef31dafd0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-27 13:12:42 -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 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 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 22f9ee6199 Use full path for visudo
Change-Id: I012159f85f4b0672cd9a8b2d411d607f85449447
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-17 13:28:05 -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 470d59c634 Next round of nodepool configuration
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-14 13:04:06 -04:00
Paul Belanger 3a2f03aae4 Fix sudoers warnings
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-03 12:29:21 -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
Paul Belanger 16fffcdcbc Initial commit
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-08-28 21:08:14 -04:00