Use versioncmp function
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: I98d5b4c50b26b5ea64035d726d903900c2040b99
This commit is contained in:
@@ -25,7 +25,7 @@ class storyboard::params () {
|
|||||||
|
|
||||||
case $::osfamily {
|
case $::osfamily {
|
||||||
'Debian': {
|
'Debian': {
|
||||||
if $::operatingsystem == 'Ubuntu' and $::operatingsystemrelease >= 13.10 {
|
if $::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '13.10') >= 0 {
|
||||||
$apache_version = '2.4'
|
$apache_version = '2.4'
|
||||||
$manage_rabbit_repo = false
|
$manage_rabbit_repo = false
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user