Yup, much better way. I even like the ternary inside the resource, but `puppet-lint` hates it.