|
65 | 65 | sslcert=/opt/puppetlabs/server/data/pg_certs/_local.cert.pem
|
66 | 66 | sslkey=/opt/puppetlabs/server/data/pg_certs/_local.private_key.pem
|
67 | 67 | sslrootcert=/etc/puppetlabs/puppet/ssl/certs/ca.pem"
|
68 |
| - | - PGBASE |
69 |
| - run_command(${pg_basebackup}, ${destination_target}) |
| 68 | + | - PGBASE |
| 69 | + run_command($pg_basebackup, $destination_target) |
70 | 70 |
|
71 | 71 | # Delete the saved certs, they'll be properly re-populated by an agent run
|
72 |
| - run_command('rm -rf /opt/puppetlabs/server/data/pg_certs', ${destination_target}) |
| 72 | + run_command('rm -rf /opt/puppetlabs/server/data/pg_certs', $destination_target) |
73 | 73 |
|
74 | 74 | # Start pe-postgresql.service
|
75 |
| - run_command('systemctl start pe-postgresql.service', ${destination_target}) |
| 75 | + run_command('systemctl start pe-postgresql.service', $destination_target) |
76 | 76 |
|
77 | 77 | # Delete the previously add replication rules to prevent Puppet restarting
|
78 | 78 | # thing later
|
79 |
| - apply(${source_target}) { |
| 79 | + apply($source_target) { |
80 | 80 | file_line { 'replication-pe-ha-replication-map':
|
81 | 81 | ensure => absent,
|
82 | 82 | path => "/opt/puppetlabs/server/data/postgresql/${psql_version}/data/pg_ident.conf",
|
|
95 | 95 | }
|
96 | 96 |
|
97 | 97 | # Reload pe-postgresql to revoke replication rules
|
98 |
| - run_command('systemctl reload pe-postgresql.service', ${source_target}) |
| 98 | + run_command('systemctl reload pe-postgresql.service', $source_target) |
99 | 99 |
|
100 | 100 | return("Population of ${$destination_target.peadm::certname()} with data from s${$source_target.peadm::certname()} succeeded.")
|
101 | 101 | }
|
102 |
| - |
0 commit comments