-
-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup how python modules are configured
Convert templates for `collectd::module::python` to `epp` Example ```puppet collectd::plugin::python::module{'example': config => [{'Verbose' => true, 'Values' => ['abc',def'], 'Name => 'My Name', 'Limit => 3.4 }, ], } } ``` This will now render as ```apache Import "example" <Module "example"> Verbose true Values "abc" "def" Name "My Name" Limit 3.4 </Module> ``` Specifying a hash value in the `config` paramater will now result in a type failure. Previously it would add nonsense to the configuration file. e.g ```puppet collectd::plugin::python::module{'example': config => [{'Values' => {'abc' => 'def'}}], } ``` will now give a type error. To specify a list of quoted strings use an array. Previously the following could be used. ```puppet collectd::plugin::python::module{'example': config => [{'Values' => '"abc" "def"', 'Name' => '"My Name"', }], } ``` to acheive the same result use ```puppet collectd::plugin::python::module{'example': config => [{'Values' => ['abc','def'], 'Name' => 'My Name', }], } ``` to render ```apacheconf Import "example" <Module "example"> Values "abc" "def" Name "My Name" </Module> It is now possible to specify multiple instances of single python module by using `collectd::plugin::python::module` twice. e.g. ```puppet collectd::plugin::python::module{'exampleA': module => 'example, config => [{'Values' => 'abc'],} } collectd::plugin::python::module{'exampleB': module => 'example, config => [{'Values' => 'def'],} } ``` Fixes #819
- Loading branch information
1 parent
e676a9e
commit eddb4f2
Showing
14 changed files
with
259 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.