-
Notifications
You must be signed in to change notification settings - Fork 4
/
brooklyn-dns-etc-hosts-sample.yaml
46 lines (32 loc) · 1.25 KB
/
brooklyn-dns-etc-hosts-sample.yaml
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
name: /etc/hosts demo
location: ibm-bluebox-sng-pub
brooklyn.config:
brooklyn_dns.domain: brooklyn.local
services:
- type: brooklyn-dns-etc-hosts-generator
# use subnet IP address instead of public
brooklyn_dns.hosts.address.sensor: host.subnet.address
- type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess
name: Brooklyn Node s1 (pinging s2)
id: s1
brooklyn.config:
# tells the etc-hosts-generator to manage DNS on this server
brooklyn_dns.enabled: true
env:
S2_HOSTNAME: $brooklyn:entity("s2").entityId()
launch.command:
echo "(nothing needed to make this run, it's only the checkRunning we care about)"
checkRunning.command:
ping -c 1 $S2_HOSTNAME
- type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess
name: Brooklyn Node s2 (pinging s1)
id: s2
brooklyn.config:
# tells the etc-hosts-generator to manage DNS on this server
brooklyn_dns.enabled: true
env:
S1_HOSTNAME: $brooklyn:entity("s1").entityId()
launch.command:
echo "(nothing needed to make this run, it's only the checkRunning we care about)"
checkRunning.command:
ping -c 1 $S1_HOSTNAME