Closed felipegules closed 9 months ago
Add resource_source JSON extension resource_format: 'resourcejson'
diff --git a/modules/rundeck/manifests/config/resource_source.pp b/modules/rundeck/manifests/config/resource_source.pp --- a/modules/rundeck/manifests/config/resource_source.pp +++ b/modules/rundeck/manifests/config/resource_source.pp @@ -81,7 +81,7 @@ define rundeck::config::resource_source( String $mapping_params = '', Integer $number = 1, Optional[String] $project_name = undef, - Enum['resourcexml', 'resourceyaml'] $resource_format = $rundeck::params::resource_format, + Enum['resourcexml', 'resourceyaml', 'resourcejson'] $resource_format = $rundeck::params::resource_format, Boolean $running_only = true, String $script_args = '', Boolean $script_args_quoted = $rundeck::params::script_args_quoted, @@ -154,6 +154,9 @@ define rundeck::config::resource_source( 'resourceyaml': { $file_extension = 'yaml' } + 'resourcejson': { + $file_extension = 'json' + } default: { err("The rundeck resource model resource_format ${resource_format} is not supported") }
Hi @felipegules , thanks for creating this issue. Can you create a PR with this code?
Obsoleted by #520.
How to reproduce (e.g Puppet code you use)
Add resource_source JSON extension resource_format: 'resourcejson'
Any additional information you'd like to impart