9 Commits

Author SHA1 Message Date
James E. Blair
5a83a49dac ensure-zookeeper: eliminate the tmpfs size limit
Zuul's use of this role has exceeded the 500M cap.  Let's go ahead
and remove it since it's arbitrary anyway, and Zuul is likely the
primary user of the role.

Change-Id: Ib0bc72f6c909e44bc04af7a8fbe40ef8415addcf
2021-10-22 15:32:03 -07:00
James E. Blair
9d3aaaf434 Enable ZooKeeper 4 letter words
So that tests which use ZooKeeper can issue the 4-letter-word
debug commands, make sure they are enabled in the zoo.cfg file.

Change-Id: Ib614e918e02306564c2ed6adb4ec350e40df9043
2021-07-02 14:24:02 -07:00
Ian Wienand
3565eb4ab8 ensure-zookeeper: better match return code
Every time I open up the Zuul console for certain jobs it unrolls the
pre-playbook section in the console because it looks like this task
has a "FAILED" status.

pkill man page says that 0/1 are "process killed" and "no match"
respectively; set failed_when to >1 so these return codes don't cause
spurious failures.

Change-Id: I23112b1101c991c1714d69f7568f83c2dcd605dd
2021-05-28 14:05:52 +10:00
Tristan Cacqueray
23cc3d4184 ensure-zookeeper: add use_tmpfs parameter
This change enables using the ensure-zookeeper role in environments
where mounting a filesystem is not allowed.

Change-Id: I1a05a895a45896eca91dccfcfc85aeb1a58689ff
2021-03-30 22:36:14 +00:00
Sorin Sbarnea
59dad009e9 Bits to keep ansible-lint happy
- moved vars file under vars to avoid failure to load file (newer
  version raise error if you try to put vars outside vars/defaults as
  it will assume they are broken playbooks.
- added missing file-modes on few tasks

Change-Id: I7217469d089b655ee16cd038391cffa4197c8c83
Part-Of: https://review.opendev.org/c/zuul/zuul-jobs/+/773245
2021-03-10 18:04:08 +00:00
James E. Blair
a31d70e6df ensure-zookeeper: use a tmpfs
This is helpful in testing situations which can see high amounts
of write traffic.

Change-Id: I69ff8116369c4ad40e2dc0c20af22370f3ee9927
2021-02-19 10:51:57 -08:00
Tristan Cacqueray
68409bc81f ensure-zookeeper: add use_tls role var
This change adds a new attribute to setup zookeeper TLS.

It also adds support for Debian-derived distros.

Change-Id: Ifb5fc51f3b66be0b2dd1b8003507e21d8afe16fc
2021-02-17 16:06:36 -08:00
Sorin Sbarnea
7325aca987 More E208 (22)
Change-Id: I8cbb919c39bdb099eaec076c7bcf2ea0b84a6475
2020-11-09 14:40:00 +00:00
Tristan Cacqueray
a086fb4333 ensure-zookeeper: add role to setup zookeeper
This role is lifted from https://src.fedoraproject.org/rpms/zuul/blob/master/f/tests/setup_zookeeper.yml

Co-Authored-By: Fabien Boucher <fboucher@redhat.com>
Change-Id: Iec21d12baddf3de580d1941adade107c7e24fdd9
2020-09-24 23:29:59 +00:00