replace 'undef' with 'unmanaged' for service_ensure param