File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 37
37
Optional[String] $version = $docker::params::compose_version,
38
38
Optional[String] $install_path = $docker::params::compose_install_path,
39
39
Optional[String] $symlink_name = $docker::params::compose_symlink_name,
40
- Optional[String] $proxy = undef ,
40
+ Optional[Pattern[ ' ^((http[s]?)?: \/\/ )?([^:^@]+:[^:^@]+@|)([ \d a-z \. -]+) \. ([ \d a-z \. ]{2,6})(:[ \d ])?([ \/\w \. -]*)* \/ ?$ ' ]] $proxy = undef ,
41
41
Optional[String] $base_url = $docker::params::compose_base_url,
42
42
Optional[String] $raw_url = undef ,
43
43
Optional[Boolean] $curl_ensure = $docker::params::curl_ensure,
44
44
) inherits docker::params {
45
- if $proxy != undef {
46
- validate_re($proxy , ' ^((http[s]?)?:\/\/ )?([^:^@]+:[^:^@]+@|)([\d a-z\. -]+)\. ([\d a-z\. ]{2,6})(:[\d ])?([\/\w \. -]*)*\/ ?$' )
47
- }
48
45
49
46
if $facts [' os' ][' family' ] == ' windows' {
50
47
$file_extension = ' .exe'
Original file line number Diff line number Diff line change 24
24
Enum[present ,absent ] $ensure = ' present' ,
25
25
Optional[String] $version = $docker::params::machine_version,
26
26
Optional[String] $install_path = $docker::params::machine_install_path,
27
- Optional[String] $proxy = undef ,
27
+ Optional[Pattern[ ' ^((http[s]?)?: \/\/ )?([^:^@]+:[^:^@]+@|)([ \d a-z \. -]+) \. ([ \d a-z \. ]{2,6})(:[ \d ])?([ \/\w \. -]*)* \/ ?$ ' ]] $proxy = undef ,
28
28
Optional[Variant[Stdlib::HTTPUrl, Stdlib::HTTPSUrl]] $url = undef ,
29
29
Optional[Boolean] $curl_ensure = $docker::params::curl_ensure,
30
30
) inherits docker::params {
31
- if $proxy != undef {
32
- validate_re($proxy , ' ^((http[s]?)?:\/\/ )?([^:^@]+:[^:^@]+@|)([\d a-z\. -]+)\. ([\d a-z\. ]{2,6})(:[\d ])?([\/\w \. -]*)*\/ ?$' )
33
- }
34
31
35
32
if $facts [' os' ][' family' ] == ' windows' {
36
33
$file_extension = ' .exe'
You can’t perform that action at this time.
0 commit comments