Hi Harrison,
Here are some initial thoughts after a quick glance at your code.
First question I would have would be why are you using ensure_resource
to do one thing at a time?
Like install one package or one service etc.
I love wrappers but it seems like overkill to use it do do something
the native resource will do itself.
The native resource is likely much faster.
If you were using ensure_resource to say create 1000 users then sure go for it.
Yeah it make things if they don't exist but to me it's sloppy coding
and a waste of resources (pun intended).
Second question is why do you have a define inside a class?
It will probably have no effect on the speed but it's not good
practice and makes the code harder to read.
Hope that helps.
Pete.
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
puppet-users...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/puppet-users/40bd9c96-b63e-4752-a487-661591a35d02%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.