voxpupuli / puppet-rundeck

Module for managing the installatation and configuration of the rundeck orchestration tool
https://forge.puppet.com/puppet/rundeck
MIT License
39 stars 129 forks source link

Don't change framework.server.{port,url}, use framework.server.hostname rather than fqdn (#303) #356

Closed wyardley closed 6 years ago

wyardley commented 6 years ago

I think this should accomplish a fix to #303, and somewhat improves test coverage, though there's room for more improvement.

The reason the existing tests worked is that the stubbed in data matches rspec-puppet-facts's $fqdn fact (h/t to Johnson Earls for that gem, as well as for a couple other useful improvements to these changes). This should handle the case where the user overrides framework.server.hostname a little more magically than before (though perhaps not the case where the user wishes to override framework.server.url directly?)