bundles/powerdns: fix schema import for pgsql
This commit is contained in:
parent
9bba18d13e
commit
155c93f739
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ if node.metadata['powerdns'].get('features', {}).get('pgsql', False):
|
||||||
|
|
||||||
actions = {
|
actions = {
|
||||||
'powerdns_load_pgsql_schema': {
|
'powerdns_load_pgsql_schema': {
|
||||||
'command': 'sudo -u postgres psql -d powerdns < /etc/powerdns/schema.pgsql.sql',
|
'command': 'PGPASSWORD={pw} psql -h 127.0.0.1 -d powerdns -U powerdns -w < /etc/powerdns/schema.pgsql.sql'.format(pw=node.metadata['postgresql']['users']['powerdns']['password']),
|
||||||
'unless': 'sudo -u postgres psql -d powerdns -c "\dt" | grep domains 2>&1 >/dev/null',
|
'unless': 'sudo -u postgres psql -d powerdns -c "\dt" | grep domains 2>&1 >/dev/null',
|
||||||
'needs': {
|
'needs': {
|
||||||
'bundle:postgresql',
|
'bundle:postgresql',
|
||||||
|
|
Loading…
Reference in a new issue