File tree 4 files changed +27
-5
lines changed
4 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -1288,6 +1288,12 @@ Data type: `String`
1288
1288
1289
1289
The name of the replica to provision
1290
1290
1291
+ ##### ` topology `
1292
+
1293
+ Data type: ` String `
1294
+
1295
+ The topology of PE installation
1296
+
1291
1297
##### ` token_file `
1292
1298
1293
1299
Data type: ` Optional[String] `
Original file line number Diff line number Diff line change 2
2
#
3
3
# @summary Configure first-time classification and DR setup
4
4
#
5
- # @param compiler_pool_address
5
+ # @param compiler_pool_address
6
6
# The service address used by agents to connect to compilers, or the Puppet
7
7
# service. Typically this is a load balancer.
8
8
# @param internal_compiler_a_pool_address
107
107
}
108
108
109
109
if $arch [' disaster-recovery' ] {
110
+ $topology = $arch [' architecture' ]? {
111
+ ' standard' => ' mono' ,
112
+ default => ' mono-with-compile' ,
113
+ }
114
+
110
115
# Run the PE Replica Provision
111
116
run_task(' peadm::provision_replica' , $primary_target ,
112
117
replica => $replica_target .peadm::certname(),
116
121
# probably gets "starting", but fails out because that's not "running".
117
122
# Can remove flag when that issue is fixed.
118
123
legacy => true ,
124
+ topology => $topology ,
119
125
)
120
126
}
121
127
Original file line number Diff line number Diff line change 5
5
"type" : " String" ,
6
6
"description" : " The name of the replica to provision"
7
7
},
8
+ "topology" : {
9
+ "type" : " String" ,
10
+ "description" : " The topology of PE installation" ,
11
+ "default" : " mono-with-compile"
12
+ },
8
13
"token_file" : {
9
14
"type" : " Optional[String]" ,
10
15
"description" : " The name of the token-file for auth"
Original file line number Diff line number Diff line change 18
18
export TOKEN_FILE=" $PT_token_file "
19
19
fi
20
20
21
+ if [ " $PT_topology " = " mono" ] ; then
22
+ AGENT_CONFIG=" "
23
+ else
24
+ AGENT_CONFIG=" --skip-agent-config"
25
+ fi
21
26
22
27
set -e
23
28
@@ -28,8 +33,8 @@ if [ "$PT_legacy" = "false" ]; then
28
33
puppet infrastructure provision replica " $PT_replica " \
29
34
--color false \
30
35
--yes --token-file " $TOKEN_FILE " \
31
- --skip-agent-config \
32
- --topology mono-with-compile \
36
+ $AGENT_CONFIG \
37
+ --topology " $PT_topology " \
33
38
--enable
34
39
35
40
elif [ " $PT_legacy " = " true" ]; then
@@ -45,8 +50,8 @@ elif [ "$PT_legacy" = "true" ]; then
45
50
puppet infrastructure enable replica " $PT_replica " \
46
51
--color false \
47
52
--yes --token-file " $TOKEN_FILE " \
48
- --skip-agent-config \
49
- --topology mono-with-compile
53
+ $AGENT_CONFIG \
54
+ --topology " $PT_topology "
50
55
51
56
else
52
57
exit 1
You can’t perform that action at this time.
0 commit comments