From 5826ff4a515e787e48000607e8859786d15ad8e7 Mon Sep 17 00:00:00 2001 From: Elyse Salberg Date: Mon, 9 Oct 2017 13:10:23 -0400 Subject: [PATCH] fixup --- manifests/alias.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/alias.pp b/manifests/alias.pp index 60009535..c0f56d1d 100644 --- a/manifests/alias.pp +++ b/manifests/alias.pp @@ -56,6 +56,9 @@ # Validate our booleans validate_bool($noaliasrouting) validate_bool($userctl) + # Validate our regular expressions + $states = [ '^up$', '^down$' ] + validate_re($ensure, $states, '$ensure must be either "up" or "down".') include '::network'