Skip to content

Commit 251515f

Browse files
committed
more renaming and layout
1 parent 427a503 commit 251515f

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

plans/action/configure.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Optional[TargetSpec] $compiler_hosts = undef,
2222

2323
# Extra Large
24-
Optional[Peadm::SingleTargetSpec] $primary_postgresql_host = undef,
24+
Optional[Peadm::SingleTargetSpec] $primary_postgresql_host = undef,
2525
Optional[Peadm::SingleTargetSpec] $replica_postgresql_host = undef,
2626

2727
# Common Configuration
@@ -92,13 +92,13 @@
9292
if $arch['disaster-recovery'] {
9393
# Run the PE Replica Provision
9494
run_task('peadm::provision_replica', $primary_target,
95-
primary_replica => $replica_target.peadm::certname(),
96-
token_file => $token_file,
95+
replica => $replica_target.peadm::certname(),
96+
token_file => $token_file,
9797

9898
# Race condition, where the provision command checks PuppetDB status and
9999
# probably gets "starting", but fails out because that's not "running".
100100
# Can remove flag when that issue is fixed.
101-
legacy => true,
101+
legacy => true,
102102
)
103103
}
104104

tasks/enable_replica.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "Execute the enable replica puppet command ",
33
"parameters": {
4-
"primary_replica": {
4+
"replica": {
55
"type": "String",
66
"description": "The name of the replica to enable"
77
},

tasks/enable_replica.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set -e
1414
env PATH="/opt/puppetlabs/bin:${PATH}" \
1515
USER="$USER" \
1616
HOME="$HOME" \
17-
puppet infrastructure enable replica "$PT_primary_replica" \
17+
puppet infrastructure enable replica "$PT_replica" \
1818
--skip-agent-config \
1919
--topology mono-with-compile \
2020
--yes --token-file "$TOKEN_FILE"

tasks/provision_replica.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "Execute the replica provision puppet command ",
33
"parameters": {
4-
"primary_replica": {
4+
"replica": {
55
"type": "String",
66
"description": "The name of the replica to provision"
77
},

tasks/provision_replica.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ fi
1414
set -e
1515

1616
if [ "$PT_legacy" = "false" ]; then
17-
puppet infrastructure provision replica "$PT_primary_replica" \
17+
puppet infrastructure provision replica "$PT_replica" \
1818
--yes --token-file "$TOKEN_FILE" \
1919
--skip-agent-config \
2020
--topology mono-with-compile \
2121
--enable
2222

2323
elif [ "$PT_legacy" = "true" ]; then
24-
puppet infrastructure provision replica "$PT_primary_replica" \
24+
puppet infrastructure provision replica "$PT_replica" \
2525
--token-file "$TOKEN_FILE"
2626

27-
puppet infrastructure enable replica "$PT_primary_replica" \
27+
puppet infrastructure enable replica "$PT_replica" \
2828
--yes --token-file "$TOKEN_FILE" \
2929
--skip-agent-config \
3030
--topology mono-with-compile

0 commit comments

Comments
 (0)