From 79fde7652fde57645897ea32d11ba18ea4b32808 Mon Sep 17 00:00:00 2001 From: Joris VAN ACOLEYEN Date: Fri, 2 Aug 2024 17:27:37 +0200 Subject: [PATCH] Docs --- REFERENCE.md | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/REFERENCE.md b/REFERENCE.md index fbbe1b19..5a0b9d77 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -1008,6 +1008,63 @@ rundeck::config::project { 'MyProject': } ``` +##### Advanced usage with jobs. + +```puppet +rundeck::config::project { 'MyProject': + config => { + 'project.description' => 'My test project', + 'project.disable.schedule' => 'false', + }, + jobs => { + 'MyJob1' => { + 'path' => '/etc/myjob1', + 'format' => 'yaml', + }, + 'MyJob2' => { + 'path' => '/etc/myjob2', + 'format' => 'xml', + }, + 'DeleteJob1' => { + 'ensure' => 'absent', + 'path' => '/etc/testjob1', + 'format' => 'yaml', + }, + }, +} +``` + +##### Advanced usage with scm_config. + +```puppet +rundeck::config::project { 'MyProject': + config => { + 'project.description' => 'My test project', + 'project.disable.schedule' => 'false', + }, + scm_config => { + 'import' => { + 'type' => 'git-import', + 'config' => { + 'strictHostKeyChecking' => 'yes', + 'gitPasswordPath' => 'keys/example-access-token', + 'format' => 'xml', + 'dir' => '/var/lib/rundeck/projects/MyProject/ScmImport', + 'branch' => 'master', + 'url' => 'https://myuser@example.com/example/example.git', + 'filePattern' => ".*\\.xml", + 'useFilePattern' => 'true', + 'pathTemplate' => "\${job.id}.\${config.format}", + 'importUuidBehavior' => 'preserve', + 'sshPrivateKeyPath' => '', + 'fetchAutomatically' => 'true', + 'pullAutomatically' => 'true', + }, + }, + }, +} +``` + #### Parameters The following parameters are available in the `rundeck::config::project` defined type: