Use a cookbook for registering and unregistering with redhat instead of using a fake cookbook.