maestrodev/puppet-rvm — pull request #50 by eefahy (2014-08-04 22:47:26+00:00)
Title: consider not using ensure_resource in system_user.pp

As puppet compiles resources in a non ordered way, I'm getting a duplicate declaration failure when adding system users. I believe this is because the ensure_resource line is being compiled into the catalog before my user resource is. Since user creation most likely happens outside of this module, is it perhaps more generally useful to revert back to something like:

if ! defined(User[$name]) {
user { $name:
ensure => present;
}