Skip to content

Commit 436b89e

Browse files
(PE-40163) alternate approach to running a task
1 parent e5f1597 commit 436b89e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plans/replace_failed_postgresql.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
)
4848

4949
# Restart pe-puppetdb.service on Puppet server primary and replica
50-
run_task('service', $pe_hosts, 'action' => 'restart', 'name' => 'pe-puppetdb.service')
50+
# run_task('service', $pe_hosts, 'action' => 'restart', 'name' => 'pe-puppetdb.service')
51+
run_task('service', $pe_hosts, { action => 'restart', name => 'pe-puppetdb.service' })
5152

5253
# Purge failed PE-PostgreSQL node from PuppetDB
5354
run_command("/opt/puppetlabs/bin/puppet node purge ${$failed_postgresql_host}", $primary_host)

0 commit comments

Comments
 (0)