diff --git a/cookbooks/aws-parallelcluster-platform/resources/enroot/enroot_redhat8.rb b/cookbooks/aws-parallelcluster-platform/resources/enroot/enroot_redhat8.rb index f14f1c4b2..5ec51d75d 100644 --- a/cookbooks/aws-parallelcluster-platform/resources/enroot/enroot_redhat8.rb +++ b/cookbooks/aws-parallelcluster-platform/resources/enroot/enroot_redhat8.rb @@ -12,7 +12,9 @@ # This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. # See the License for the specific language governing permissions and limitations under the License. -provides :enroot, platform: 'amazon', platform_version: '2' +provides :enroot, platform: 'redhat' do |node| + node['platform_version'].to_i >= 8 +end use 'partial/_enroot_common.rb' use 'partial/_enroot_rhel.rb'