-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathetcd.bom
More file actions
143 lines (134 loc) · 5.43 KB
/
etcd.bom
File metadata and controls
143 lines (134 loc) · 5.43 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
brooklyn.catalog:
version: "2.6.0-SNAPSHOT" # BROOKLYN_ETCD_VERSION
iconUrl: classpath://io.brooklyn.etcd.brooklyn-etcd:icons/etcd.png
description: |
CoreOS etcd is an open-source distributed key-value store that serves as
the backbone of distributed systems by providing a canonical hub for
cluster coordination and state management.
publish:
license_code: APACHE-2.0
license_url: http://www.apache.org/licenses/LICENSE-2.0.txt
overview: README.md
qa: tests/etcd.tests.bom
items:
- id: etcd-node
name: "etcd-node"
description: |
An individual etcd key-value store node.
itemType: entity
item:
type: io.brooklyn.entity.nosql.etcd.EtcdNode
id: etcd-node
name: "etcd-node"
brooklyn.parameters:
- name: etcd.version
label: Etcd Version
description: |
The version of etcd to install
type: string
default: "3.2.7"
- name: etcd.client.port
label: Etcd Client Port
description: |
The client port Etcd will listen on
type: port
default: 2379
brooklyn.enrichers:
- type: org.apache.brooklyn.enricher.stock.Transformer
brooklyn.config:
uniqueTag: etcd-endpoint-generator
enricher.triggerSensors:
- host.address
- etcd.client.port
enricher.targetSensor: $brooklyn:sensor("etcd.endpoint")
enricher.targetValue:
$brooklyn:formatString:
- "%s:%d"
- $brooklyn:attributeWhenReady("host.address")
- $brooklyn:attributeWhenReady("etcd.client.port")
- type: org.apache.brooklyn.enricher.stock.Transformer
brooklyn.config:
uniqueTag: etcd-url-generator
enricher.triggerSensors:
- etcd.endpoint
- etcd.client.scheme
enricher.targetSensor: $brooklyn:sensor("etcd.url")
enricher.targetValue:
$brooklyn:formatString:
- "%s://%s"
- $brooklyn:attributeWhenReady("etcd.client.scheme")
- $brooklyn:attributeWhenReady("etcd.endpoint")
- type: org.apache.brooklyn.enricher.stock.Transformer
brooklyn.config:
uniqueTag: etcd-node-authority-generator
enricher.sourceSensor: $brooklyn:sensor("etcd.endpoint")
enricher.targetSensor: $brooklyn:sensor("etcd.authority")
enricher.targetValue:
$brooklyn:formatString:
- "etcd://%s"
- $brooklyn:attributeWhenReady("etcd.endpoint")
- id: etcd-proxy
name: "etcd-proxy"
description: |
An etcd proxy server for an external node or cluster.
itemType: entity
item:
type: io.brooklyn.entity.nosql.etcd.EtcdProxy
id: etcd-proxy
name: "etcd-proxy"
- id: etcd-cluster
name: "etcd-cluster"
description: |
A cluster of etcd nodes.
itemType: entity
item:
type: io.brooklyn.entity.nosql.etcd.EtcdCluster
id: etcd-cluster
name: "etcd-cluster"
brooklyn.parameters:
- name: etcd.cluster.name
label: Etcd Cluster Name
description: |
The name of the Etcd cluster
type: string
default: "brooklyn"
brooklyn.config:
etcd.node.spec:
$brooklyn:entitySpec:
type: etcd-node
brooklyn.config:
install.version: $brooklyn:config("etcd.version")
brooklyn.enrichers:
- type: org.apache.brooklyn.enricher.stock.Aggregator
brooklyn.config:
uniqueTag: etcd-endpoint-aggregator
enricher.sourceSensor: $brooklyn:sensor("etcd.endpoint")
enricher.targetSensor: $brooklyn:sensor("etcd.endpoint.list")
enricher.aggregating.fromMembers: true
- type: org.apache.brooklyn.enricher.stock.Joiner
brooklyn.config:
uniqueTag: etcd-endpoint-joiner
enricher.sourceSensor: $brooklyn:sensor("etcd.endpoint.list")
enricher.targetSensor: $brooklyn:sensor("etcd.endpoints")
enricher.joiner.quote: false
- type: org.apache.brooklyn.enricher.stock.Transformer
brooklyn.config:
uniqueTag: etcd-authority-generator
enricher.sourceSensor: $brooklyn:sensor("etcd.endpoints")
enricher.targetSensor: $brooklyn:sensor("etcd.authority")
enricher.targetValue:
$brooklyn:formatString:
- "etcd://%s"
- $brooklyn:attributeWhenReady("etcd.endpoints")
- type: org.apache.brooklyn.enricher.stock.Aggregator
brooklyn.config:
uniqueTag: etcd-url-aggregator
enricher.sourceSensor: $brooklyn:sensor("etcd.url")
enricher.targetSensor: $brooklyn:sensor("etcd.url.list")
enricher.aggregating.fromMembers: true
- type: org.apache.brooklyn.enricher.stock.Joiner
brooklyn.config:
uniqueTag: etcd-url-joiner
enricher.sourceSensor: $brooklyn:sensor("etcd.url.list")
enricher.targetSensor: $brooklyn:sensor("etcd.urls")
enricher.joiner.quote: false