From 200d5f74287ed6d6165520c0d45c566f808d260c Mon Sep 17 00:00:00 2001 From: vexxhost-bot <105816074+vexxhost-bot@users.noreply.github.com> Date: Wed, 19 Jun 2024 02:58:19 +0200 Subject: [PATCH] [stable/2023.1] Move etcd to ramdisk (#1402) This is an automated cherry-pick of #1390 /assign mnaser --- zuul.d/playbooks/molecule/pre.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/zuul.d/playbooks/molecule/pre.yml b/zuul.d/playbooks/molecule/pre.yml index 9e1018012..bb7038214 100644 --- a/zuul.d/playbooks/molecule/pre.yml +++ b/zuul.d/playbooks/molecule/pre.yml @@ -16,9 +16,25 @@ hosts: all tasks: - name: Disable swap + become: true ansible.builtin.command: swapoff -a ignore_errors: yes + - name: Create /var/lib/etcd directory + become: true + ansible.builtin.file: + path: /var/lib/etcd + state: directory + + - name: Mount ramdisk for /var/lib/etcd directory + become: true + ansible.posix.mount: + path: /var/lib/etcd + src: tmpfs + fstype: tmpfs + opts: nodev,nosuid,size=512M + state: mounted + # TODO(mnaser): Drop this when we can use https://github.com/vexxhost/atmosphere/pull/977 - name: Prefix all images for the job to point to mirror ansible.builtin.shell: |