What is the preferred method for getting tests to run based on platform/init style? I want to validate configs created by a cookbook. Redhat 6 would create /etc/sysconfig/app_name whereas ubuntu 14.04 would create /etc/default/app_name and nodes running systemd would have another location that I don’t have memorized yet.
I don’t see a list of inits to compare to in the available resources here: http://inspec.io/docs/reference/resources/
So should I be checking the os family then the version to determine where my configs would be inside my _spec.rb? Or is there some better way?