Allow multiple instances in the http_check.#155
Allow multiple instances in the http_check.#155jniesen wants to merge 1 commit intoDataDog:masterfrom
Conversation
Adds the ``instances`` parameter to the ``http_check`` class. This parameter defaults to undef. For backwards compatibility, if the ``instances`` array not defined it will be instantiated as an array containing a single hash. The remaining parameters of the class will be used for the key/value pairs in the hash. This will allow us to iterate over the ``instances`` array in the template.
|
@jniesen have you run this successfully? I tried it out and get the infamous variable reassignment error (the puppet DSL won't allow that). |
|
@jniesen don't worry about it, pulled your changes in and fixed what needed fixing :) Thanks again. |
|
What ended up needing fixing. I'm pretty sure I ran this successfully, but On Thu, Apr 7, 2016, 5:24 PM Jaime Fullaondo notifications@github.com
|
|
@jniesen as you know, variables don't allow for reassignment in the puppet DSL, which is something we were doing with the |
|
Included in #176, fixed minor details there. Thanks! |
|
@jniesen just wanted to let you know there was a typo in the changelog that shipped with the released puppet module |
Adds the
instancesparameter to thehttp_checkclass.This parameter defaults to undef.
For backwards compatibility, if the
instancesarray not defined itwill be instantiated as an array containing a single hash. The remaining
parameters of the class will be used for the key/value pairs in the
hash. This will allow us to iterate over the
instancesarray in thetemplate.