I think this accomplishes what you meant in issue 62

https://github.com/jfryman/puppet-nginx/issues/62

I moved all the variables to be top-scope params so as to have an easier time profiling the module.

additionally, I don't quite understand your use of rspec here... I couldn't get the unit tests to work locally, so I didn't write any additional ones...  if you hit me up on #puppet, and explain how you're trying to do unit tests, I'll write a full suite of them for rthel variants.