Skip to content

Commit b74390b

Browse files
committed
Fix for PDK validate, add parameter comments
It doesn't like having an optional parameter come before a non-optional one. Since parameters are moving around a bit, add some comments to clarify their intended usage.
1 parent ed7d53b commit b74390b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

manifests/setup/node_manager.pp

+11-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,21 @@
1212
# }'
1313
#
1414
class peadm::setup::node_manager (
15+
# Common
1516
String[1] $master_host,
16-
String[1] $puppetdb_database_host = $master_host,
17-
1817
String[1] $compiler_pool_address,
1918

19+
# High Availability
2020
Optional[String[1]] $master_replica_host = undef,
21+
22+
# For the next two parameters, the default values are appropriate when
23+
# deploying Standard or Large architectures. These values only need to be
24+
# specified differently when deploying an Extra Large architecture.
25+
26+
# Specify when using Extra Large
27+
String[1] $puppetdb_database_host = $master_host,
28+
29+
# Specify when using Extra Large AND High Availability
2130
Optional[String[1]] $puppetdb_database_replica_host = $master_replica_host,
2231
) {
2332

0 commit comments

Comments
 (0)