Skip to content

Commit

Permalink
[stable/2023.1] Move etcd to ramdisk (#1402)
Browse files Browse the repository at this point in the history
This is an automated cherry-pick of #1390
/assign mnaser
  • Loading branch information
vexxhost-bot authored Jun 19, 2024
1 parent 31015ab commit 200d5f7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions zuul.d/playbooks/molecule/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 200d5f7

Please sign in to comment.