diff --git a/manifests/init.pp b/manifests/init.pp index ba0c39b861..744dc12338 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -245,7 +245,7 @@ validate_re($repo, ['^main$', '^unstable$'], "Repo must be 'main' or 'unstable'. Found: ${repo}") validate_re($version, ['^absent$', '^installed$', '^latest$', '^present$', '^[\d\.\-]+$'], "Invalid package version: ${version}") - validate_re($sensu_plugin_version, ['^absent$', '^installed$', '^latest$', '^present$', '^[\d\.\-]+$'], "Invalid sensu-plugin package version: ${sensu_plugin_version}") + validate_re($sensu_plugin_version, ['^absent$', '^installed$', '^latest$', '^present$', '^\d[\d\.\-\w]+$'], "Invalid sensu-plugin package version: ${sensu_plugin_version}") validate_re($log_level, ['^debug$', '^info$', '^warn$', '^error$', '^fatal$'] ) if !is_integer($rabbitmq_port) { fail('rabbitmq_port must be an integer') } if !is_integer($redis_port) { fail('redis_port must be an integer') }