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
This commit is contained in:
Carl Caum
2011-09-13 19:55:24 +00:00
parent 0e4dc2dd81
commit a671ad7cc4

View File

@@ -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': }