Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I fail if a user account does not exist.


How do I fail and stop a manifest if a user does not exist

@user { 'test': ensure => 'present', # else fail if user not present }


if !defined(User["$envuser"]){ fail("The user $envuser does not exist - exiting") }

Thank you