From 8fb0b060d6d0f521e56b60e91ff8c3bcf700b7f3 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 30 Oct 2024 11:11:56 +0100 Subject: [PATCH 1/2] increase CPUs and memory --- Vagrantfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index cc2bebf..06a9bcc 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -9,7 +9,8 @@ Vagrant.configure("2") do |config| override.vm.hostname = "quadlet.example.com" override.vm.provider "libvirt" do |libvirt, provider| - libvirt.memory = "4096" + libvirt.memory = 10240 + libvirt.cpus = 4 provider.vm.box_url = CENTOS_9_BOX_URL end end From 4ed7acc861b0b2ae11af1a55d7b232a7c07cdd16 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 30 Oct 2024 12:08:49 +0100 Subject: [PATCH 2/2] start dynflow later this ensures foreman is done migrating the DB when dynflow starts --- roles/foreman/tasks/main.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/foreman/tasks/main.yaml b/roles/foreman/tasks/main.yaml index c713407..562924d 100644 --- a/roles/foreman/tasks/main.yaml +++ b/roles/foreman/tasks/main.yaml @@ -113,6 +113,14 @@ enabled: true state: started +- name: Wait for Foreman service to be accessible + ansible.builtin.uri: + url: 'http://{{ ansible_hostname }}:3000/api/v2/ping' + until: foreman_status.status == 200 + retries: 60 + delay: 5 + register: foreman_status + - name: Start the Dynflow Services ansible.builtin.systemd: name: "dynflow-sidekiq@{{ item }}" @@ -123,14 +131,6 @@ - worker - worker-hosts-queue -- name: Wait for Foreman service to be accessible - ansible.builtin.uri: - url: 'http://{{ ansible_hostname }}:3000/api/v2/ping' - until: foreman_status.status == 200 - retries: 60 - delay: 5 - register: foreman_status - - name: Wait for Foreman tasks to be ready ansible.builtin.uri: url: 'http://{{ ansible_hostname }}:3000/api/v2/ping'