Im looking to test for current versions of RedHat, CentOS and Amazon vs. legacy versions. Is there a common node attribute I can test for (since they share the same kernel) and not have to write multiple if statements for each? something like...
case node['some common attribute']
when >= 'RHEL7/Cent7/Amzn2'
do RHEL7/Cent7/Amzn2 stuff
when < 'RHEL7/Cen7/Amzn2'
do RHEL5-6/Cent5-6/Amzn1 stuff