puppet: Move the postgres dictionary symlink creation to puppet.

(imported from commit 823f6683e3d8f3604da68e55dd6761ecb38d4b63)
This commit is contained in:
Tim Abbott 2013-11-12 20:32:56 -05:00
parent 45f21cbb14
commit f4a9e99498
2 changed files with 8 additions and 3 deletions

View File

@ -35,6 +35,14 @@ class zulip::postgres_appdb {
notify => Service[supervisor],
}
file { '/usr/share/postgresql/9.1/tsearch_data/en_us.dict':
ensure => 'link',
target => '/var/cache/postgresql/dicts/en_us.dict',
}
file { '/usr/share/postgresql/9.1/tsearch_data/en_us.affix':
ensure => 'link',
target => '/var/cache/postgresql/dicts/en_us.affix',
}
file { "/usr/share/postgresql/9.1/tsearch_data/zulip_english.stop":
require => Package["postgresql-9.1"],
ensure => file,

View File

@ -1,8 +1,5 @@
#!/bin/sh -xe
ln -s /var/cache/postgresql/dicts/en_us.dict /usr/share/postgresql/9.1/tsearch_data/en_us.dict
ln -s /var/cache/postgresql/dicts/en_us.affix /usr/share/postgresql/9.1/tsearch_data/en_us.affix
echo "DROP SCHEMA zulip CASCADE; CREATE SCHEMA zulip;" | python manage.py dbshell
python manage.py syncdb --noinput