kandra: Force disks to be set up before kernels are changed.

This commit is contained in:
Alex Vandiver 2024-03-29 03:53:12 +00:00 committed by Tim Abbott
parent e4883cc2dc
commit da243e9fb7
1 changed files with 4 additions and 0 deletions

View File

@ -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/',
}