Restructured my code

Changed to Puppet ensurable type.