Now that tls support is required, add support for it.
Change-Id: I36f2c0a2b2209cfa974b4686c0c32f3fe32e9cae
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>
This is no longer used, as nodepool manually creates
/var/log/nodepool/builds.
Change-Id: Ib27b55cc6dfed7bc9dee702ab66abb3199a27830
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>
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>
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>
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>
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>
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>
This will give the user more flexibility when defining source folders.
Change-Id: Ib57f81fc6892c55e67be647d2f1d2e56fd4f08ec
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Otherwise, we loose the execute bits for dib elements.
Change-Id: I83e193cd9aef7e7e9da71558b27af1463c80bc3b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
No need to restart nodepool when this code is for diskimage-builder.
Change-Id: Ia177d227b271fceaf32700045fef701ef31dafd0
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>