Fix template deprecation warnings in puppet 3