-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.yaml
More file actions
61 lines (61 loc) · 1.86 KB
/
plugin.yaml
File metadata and controls
61 lines (61 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: resourceyaml-text-model-source
rundeckPluginVersion: 2.0
author: "@author@"
version: "@version@"
url: "@url@"
date: 2016-09-28T14:09:49.981Z
description: Define a set of static Nodes
rundeckCompatibilityVersion: 3.x
targetHostCompatibility: unix
license: Apache 2.0
tags:
- script
- ResourceModelSource
providers:
- name: yaml-text-model-source
service: ResourceModelSource
title: 'resourceyaml text'
description: 'Define a set of static Nodes'
plugin-type: script
script-interpreter: /usr/bin/env bash
script-file: get-nodes
resource-format: resourceyaml
config:
- type: String
name: name
title: 'name'
description: 'name for this model source'
- type: String
name: yaml-text
title: 'Yaml Text'
description: "Node definitions. Reference: http://rundeck.org/docs/man5/resource-yaml.html"
default: |
# hypothetical node, somenode2
somenode2:
tags: "pool,service"
pool.color: green
pool.region: US-East
service.size: micro
service.status: active
# next-node: ...
renderingOptions:
displayType: CODE
codeSyntaxMode: yaml
- name: yaml-text-model-defaults
service: ResourceModelSource
title: 'Model defaults'
description: 'Define a set of static defaults for Nodes'
plugin-type: script
script-interpreter: /usr/bin/env bash
script-file: defaults
script-args: '${config.names} ${config.attributes}'
resource-format: resourceyaml
config:
- type: String
name: names
title: 'names'
description: 'comma separated list of node names'
- type: String
name: attributes
title: 'attributes'
description: 'comma separated list of attributes (eg, attr1=one,attr2=2,...)'