-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joris VAN ACOLEYEN
committed
Aug 2, 2024
1 parent
0994397
commit 79fde76
Showing
1 changed file
with
57 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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://[email protected]/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: | ||
|