Ubuntu: More strictly validate repos

The repos parameter accepts only updates or proposed. Enforce this
requirement by typing the parameter.

Change-Id: Ibc799d5bda8a42db15200521a83113416c1ba03c
This commit is contained in:
Takashi Kajinami 2024-07-10 23:21:07 +09:00
parent adcaf171c2
commit e9bc4eec41

View File

@ -42,13 +42,13 @@
# Defaults to $::openstack_extras::repo::debian::params::uca_location
#
class openstack_extras::repo::debian::ubuntu(
String[1] $release = 'caracal',
Boolean $manage_uca = true,
String[1] $repo = 'updates',
Hash $source_hash = {},
Hash $source_defaults = {},
Boolean $package_require = false,
String[1] $uca_location = 'http://ubuntu-cloud.archive.canonical.com/ubuntu',
String[1] $release = 'caracal',
Boolean $manage_uca = true,
Enum['updates', 'proposed'] $repo = 'updates',
Hash $source_hash = {},
Hash $source_defaults = {},
Boolean $package_require = false,
String[1] $uca_location = 'http://ubuntu-cloud.archive.canonical.com/ubuntu',
) {
if $manage_uca {