|
65 | 65 | # Specifies whether to check if the package release date is valid. Defaults to `True`. |
66 | 66 | # |
67 | 67 | define apt::source ( |
68 | | - Optional[String] $location = undef, |
69 | | - String $comment = $name, |
70 | | - String $ensure = present, |
71 | | - Optional[String] $release = undef, |
72 | | - String $repos = 'main', |
73 | | - Variant[Hash] $include = {}, |
74 | | - Optional[Variant[String, Hash]] $key = undef, |
75 | | - Optional[Stdlib::AbsolutePath] $keyring = undef, |
76 | | - Optional[Variant[Hash, Numeric, String]] $pin = undef, |
77 | | - Optional[String] $architecture = undef, |
78 | | - Boolean $allow_unsigned = false, |
79 | | - Boolean $allow_insecure = false, |
80 | | - Boolean $notify_update = true, |
81 | | - Boolean $check_valid_until = true, |
| 68 | + Optional[String] $location = undef, |
| 69 | + String $comment = $name, |
| 70 | + String $ensure = present, |
| 71 | + Optional[Pattern[/\A[[:alnum:]\s-]+\z/]] $release = undef, |
| 72 | + Pattern[/\A[[:alnum:]\s-]+\z/] $repos = 'main', |
| 73 | + Variant[Hash] $include = {}, |
| 74 | + Optional[Variant[String, Hash]] $key = undef, |
| 75 | + Optional[Stdlib::AbsolutePath] $keyring = undef, |
| 76 | + Optional[Variant[Hash, Numeric, String]] $pin = undef, |
| 77 | + Optional[String] $architecture = undef, |
| 78 | + Boolean $allow_unsigned = false, |
| 79 | + Boolean $allow_insecure = false, |
| 80 | + Boolean $notify_update = true, |
| 81 | + Boolean $check_valid_until = true, |
82 | 82 | ) { |
83 | 83 | include apt |
84 | 84 |
|
|
0 commit comments