From e9bc4eec41a4ee5efc03eff18260f03533fbc6d9 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 10 Jul 2024 23:21:07 +0900 Subject: [PATCH] Ubuntu: More strictly validate repos The repos parameter accepts only updates or proposed. Enforce this requirement by typing the parameter. Change-Id: Ibc799d5bda8a42db15200521a83113416c1ba03c --- manifests/repo/debian/ubuntu.pp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/manifests/repo/debian/ubuntu.pp b/manifests/repo/debian/ubuntu.pp index 7224442..718c349 100644 --- a/manifests/repo/debian/ubuntu.pp +++ b/manifests/repo/debian/ubuntu.pp @@ -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 {