Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

why serverspec compare all if conditions for os family

$
0
0
Hi I have below serverspec tests for puppet testing, its testing all the if condition, though my os belongs to rhel6 if os[:release] = 5 describe file('/etc/modprobe.conf') do it { should exist } end if os[:release] = 6 describe file('/etc/modprobe.d/ipv6.conf') do it { should exist } end if os[:release] = 7 describe file('/etc/sysctl.d/disableipv6.conf') do it { should exist } end I have rhel6, so serverspec should test only if condition `if os[:release] = 6` but its testing all if conditions.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>