Skip to content

Commit ea3e857

Browse files
committed
Make versions match SemVer pattern
All PE version downloads need to match the x.y.z format. This commit changes the type specifier to require this format. This is especially useful to help guide people to the right parameters if they specify a version like "2022.4" instead of "2022.4.0".
1 parent 130948d commit ea3e857

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

plans/install.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
# Common Configuration
2828
String $console_password,
29-
String $version = '2019.8.8',
29+
Pattern[/\d+\.\d+\.\d+/] $version = '2019.8.8',
3030
Optional[Array[String]] $dns_alt_names = undef,
3131
Optional[String] $compiler_pool_address = undef,
3232
Optional[String] $internal_compiler_a_pool_address = undef,

plans/subplans/install.pp

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
Optional[Peadm::SingleTargetSpec] $replica_postgresql_host = undef,
3434

3535
# Common Configuration
36-
String $console_password,
37-
String $version = '2019.8.5',
38-
Array[String] $dns_alt_names = [ ],
39-
Hash $pe_conf_data = { },
36+
String $console_password,
37+
Pattern[/\d+\.\d+\.\d+/] $version = '2019.8.5',
38+
Array[String] $dns_alt_names = [ ],
39+
Hash $pe_conf_data = { },
4040

4141
# Code Manager
4242
Optional[String] $r10k_remote = undef,

plans/upgrade.pp

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
Optional[Peadm::SingleTargetSpec] $replica_postgresql_host = undef,
2626

2727
# Common Configuration
28-
String $version,
29-
Optional[String] $compiler_pool_address = undef,
30-
Optional[String] $internal_compiler_a_pool_address = undef,
31-
Optional[String] $internal_compiler_b_pool_address = undef,
28+
Pattern[/\d+\.\d+\.\d+/] $version,
29+
Optional[String] $compiler_pool_address = undef,
30+
Optional[String] $internal_compiler_a_pool_address = undef,
31+
Optional[String] $internal_compiler_b_pool_address = undef,
3232

3333
# Other
3434
Optional[String] $token_file = undef,

0 commit comments

Comments
 (0)