$ldap was supposed to be a parameter, not local var
Add rspec-puppet boilerplate
Make template into class param