
Puppet 4 is more strict about data types and doesn't tolerate using arithmetic operators on strings. The operatingsystemrelease fact is a string. Switch the arithmetic comparison to a native function that knows how to deal with version numbers. Change-Id: I4dd58b28ad5b4bd64ba0b6eed6e2b8c312bdb5fa
19 lines
478 B
Puppet
19 lines
478 B
Puppet
# == Class: drupal::params
|
|
#
|
|
# Centralized configuration management for the drupal module.
|
|
#
|
|
class drupal::params() {
|
|
case $::osfamily {
|
|
'Debian': {
|
|
if $::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '13.10') >= 0 {
|
|
$apache_version = '2.4'
|
|
} else {
|
|
$apache_version = '2.2'
|
|
}
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} The 'storyboard' module only supports osfamily Debian.")
|
|
}
|
|
}
|
|
}
|