From da243e9fb71a0ab3b8744741be149cf70f4cd217 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Fri, 29 Mar 2024 03:53:12 +0000 Subject: [PATCH] kandra: Force disks to be set up before kernels are changed. --- puppet/kandra/manifests/profile/postgresql.pp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/puppet/kandra/manifests/profile/postgresql.pp b/puppet/kandra/manifests/profile/postgresql.pp index 8c973212bb..6f4b914979 100644 --- a/puppet/kandra/manifests/profile/postgresql.pp +++ b/puppet/kandra/manifests/profile/postgresql.pp @@ -26,6 +26,10 @@ class kandra::profile::postgresql inherits kandra::profile::base { } exec { 'setup_disks': command => '/root/setup_disks.sh', + # We need to not have started installing the non-AWS kernel, so + # the xfs module gets installed for the running kernel, and we can + # mount it. + before => Package['linux-image-virtual'], require => Package["postgresql-${zulip::postgresql_common::version}", 'xfsprogs', 'nvme-cli'], unless => 'test /var/lib/postgresql/ -ef /srv/data/postgresql/', }