I am looking to add some conditional logic to a recipe based on what Chef has determined to be the default
I’ve done a bit of introspection with
@provider always appears to be
Is there a way to determine which provider Chef has selected as the default for the platform?
Rationale: I wanted to use some conditional logic (based on provider) that would determine which
cookbook_file would be used. Example: If the platform were SysV, then deploy init scripts, but if the platform utilized
systemd, then deploy unit files.