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: Do not bother manually symlinking hunspell dictionaries.

Alex Vandiver9def65556406
diff --git a/puppet/zulip/manifests/postgresql_base.pp b/puppet/zulip/manifests/postgresql_base.pp
index 59ca2a28e58..efcedca376b 100644
--- a/puppet/zulip/manifests/postgresql_base.pp
+++ b/puppet/zulip/manifests/postgresql_base.pp
@@ -17,8 +17,6 @@ class zulip::postgresql_base {
$pgroonga_setup_sql_path = "${postgresql_sharedir}/pgroonga_setup.sql"
$setup_system_deps = 'setup_apt_repo'
$postgresql_restart = "pg_ctlcluster ${zulip::postgresql_common::version} main restart"
- $postgresql_dict_dict = '/var/cache/postgresql/dicts/en_us.dict'
- $postgresql_dict_affix = '/var/cache/postgresql/dicts/en_us.affix'
}
'RedHat': {
$postgresql = "postgresql${zulip::postgresql_common::version}"
@@ -33,28 +31,12 @@ class zulip::postgresql_base {
$pgroonga_setup_sql_path = "${postgresql_sharedir}/pgroonga_setup.sql"
$setup_system_deps = 'setup_yum_repo'
$postgresql_restart = "systemctl restart postgresql-${zulip::postgresql_common::version}"
- # TODO Since we can't find the PostgreSQL dicts directory on CentOS yet, we
- # link directly to the hunspell directory.
- $postgresql_dict_dict = '/usr/share/myspell/en_US.dic'
- $postgresql_dict_affix = '/usr/share/myspell/en_US.aff'
}
default: {
fail('osfamily not supported')
}
}
- file { "${tsearch_datadir}/en_us.dict":
- ensure => link,
- require => Package[$postgresql],
- target => $postgresql_dict_dict,
- tag => ['postgresql_upgrade'],
- }
- file { "${tsearch_datadir}/en_us.affix":
- ensure => link,
- require => Package[$postgresql],
- target => $postgresql_dict_affix,
- tag => ['postgresql_upgrade'],
- }
file { "${tsearch_datadir}/zulip_english.stop":
ensure => file,
require => Package[$postgresql],