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:
parent
85896f5c03
commit
8fd663a697
@ -25,7 +25,7 @@ class storyboard::params () {
|
||||
|
||||
case $::osfamily {
|
||||
'Debian': {
|
||||
if $::operatingsystem == 'Ubuntu' and $::operatingsystemrelease >= 13.10 {
|
||||
if $::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '13.10') >= 0 {
|
||||
$apache_version = '2.4'
|
||||
$manage_rabbit_repo = false
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user