Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Alex Vandiverda243e9fb71a
diff --git a/puppet/kandra/manifests/profile/postgresql.pp b/puppet/kandra/manifests/profile/postgresql.pp
index 8c973212bbb..6f4b9149797 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/',
}