Closed woosley closed 6 years ago
the build failed but it does not seem to be the code's problem
@woosley thanks for the PR. I'll get the build working again in a separate PR so we can move forward. (Puppet tooling breaks all the time)
@woosley develop
should now be building successfully. Please merge develop
into your branch (you can rebase too, if you'd like).
@JayH5 rebased.
Again, thanks for the PR. This will need a couple of simple tests, though.
yeah, you are right on the if, will fix.
Personally I never write tests for puppet, any guide I can refer to?
@woosley probably a decent place to start is just the rspec-puppet
tutorial: http://rspec-puppet.com/tutorial/
I can tell you we need 4 things, though:
marathon
class with default parameters passes a nil
value for force_provider
to the marathon::service
class.marathon
class that when the force_provider
parameter is set it is passed to the marathon::service
class.marathon::service
class with default parameters passes a nil
value for provider
to the service
resource.marathon::service
class that when the force_provider
parameter is set it is passed to the service
resource as the provider
parameter.That may sound like a lot but it's all pretty straightforward and only a few lines of code.
marathon packed by mesosphere uses upstart on centos, by default it is init causing puppet failure, so need a way to override provider.