puppet: Fix PostgreSQL user to create PGroonga extension

"root" user isn't a PostgreSQL administrator. "postgres" is a PostgreSQL
administrator.
This commit is contained in:
Kouhei Sutou
2017-02-08 13:18:43 +09:00
committed by Tim Abbott
parent 609082c475
commit a2d935a2ee

View File

@@ -90,7 +90,7 @@ class zulip::postgres_appdb_base {
exec{"create_pgroonga_extension":
require => File["$pgroonga_setup_sql_path"],
command => "bash -c 'cat $pgroonga_setup_sql_path | psql -v ON_ERROR_STOP=1 zulip && touch $pgroonga_setup_sql_path.applied'",
command => "bash -c 'cat $pgroonga_setup_sql_path | su postgres -c \"psql -v ON_ERROR_STOP=1 zulip\" && touch $pgroonga_setup_sql_path.applied'",
creates => "$pgroonga_setup_sql_path.applied",
}
}