Moved fetching of :operatingsystemrelease value into the setcode because otherwise puppet may evaluate it before it actually has a value and cause :kernelrelease to be set as the :operatingsystemrelease value