This should be wrapped in ``if ... end`` instead of using only_if so that the resource isn't registered on other platforms.