From a671ad7cc4d2bcb4847f6054c2550c917280219a Mon Sep 17 00:00:00 2001 From: Carl Caum Date: Tue, 13 Sep 2011 19:55:24 +0000 Subject: [PATCH] Allow distributions starting with java Some java distributions can start with java, such as java-sun or java-1.6.0-openjdk. We should allow these to be specified --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index c107102..6a303b9 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -16,7 +16,7 @@ class java( $version = 'installed' ) { - validate_re($distribution, '^jdk$|^jre$') + validate_re($distribution, '^jdk$|^jre$|^java.*$') validate_re($version, 'installed|^[._0-9a-zA-Z:-]+$') anchor { 'java::begin': }