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.

puppet: Run setup_disks based on symlink; remove mdadm dependency.

Alex Vandiver6f6a0e890a4a
diff --git a/puppet/zulip_ops/manifests/postgres_master.pp b/puppet/zulip_ops/manifests/postgres_master.pp
index ac4fcbe89a0..c4ca42b4440 100644
--- a/puppet/zulip_ops/manifests/postgres_master.pp
+++ b/puppet/zulip_ops/manifests/postgres_master.pp
@@ -4,7 +4,6 @@ class zulip_ops::postgres_master {
$master_packages = [# Packages needed for disk + RAID configuration
'xfsprogs',
- 'mdadm',
]
package { $master_packages: ensure => 'installed' }
@@ -26,8 +25,8 @@ class zulip_ops::postgres_master {
exec { 'setup_disks':
command => '/root/setup_disks.sh',
- require => Package["postgresql-${zulip::base::postgres_version}", 'xfsprogs', 'mdadm'],
- creates => '/dev/md0'
+ require => Package["postgresql-${zulip::base::postgres_version}", 'xfsprogs'],
+ unless => 'test $(readlink /var/lib/postgresql) = "/srv/postgresql/" -a -d /srv/postgresql',
}
# This one will probably fail most of the time