bundles/powerdns: use schema provided by the powerdns package
This commit is contained in:
parent
1ae02ad4ec
commit
6f318f21ae
2 changed files with 3 additions and 110 deletions
|
@ -66,7 +66,7 @@ actions = {
|
|||
'powerdns_reload_zones': {
|
||||
'triggered': True,
|
||||
'command': 'pdns_control rediscover; pdns_control reload; pdns_control notify \*',
|
||||
'needs': {
|
||||
'after': {
|
||||
'svc_systemd:pdns',
|
||||
},
|
||||
},
|
||||
|
@ -158,14 +158,12 @@ if node.metadata.get('powerdns/features/pgsql', node.has_bundle('postgresql')):
|
|||
},
|
||||
}
|
||||
|
||||
files['/etc/powerdns/schema.pgsql.sql'] = {}
|
||||
|
||||
actions['powerdns_load_pgsql_schema'] = {
|
||||
'command': node.metadata.get('postgresql/roles/powerdns/password').format_into('PGPASSWORD={} psql -h 127.0.0.1 -d powerdns -U powerdns -w < /etc/powerdns/schema.pgsql.sql'),
|
||||
'command': node.metadata.get('postgresql/roles/powerdns/password').format_into('PGPASSWORD={} psql -h 127.0.0.1 -d powerdns -U powerdns -w < /usr/share/pdns-backend-pgsql/schema/schema.pgsql.sql'),
|
||||
'unless': 'sudo -u postgres psql -d powerdns -c "\dt" | grep domains 2>&1 >/dev/null',
|
||||
'needs': {
|
||||
'bundle:postgresql',
|
||||
'file:/etc/powerdns/schema.pgsql.sql',
|
||||
'pkg_apt:pdns-backend-pgsql',
|
||||
},
|
||||
'needed_by': {
|
||||
'svc_systemd:pdns',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue