Skip to content

Commit 735d4f1

Browse files
committed
Applications: role dependency
1 parent b07b8e1 commit 735d4f1

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- byeer.lua --
2+
return {
3+
dependencies = { 'greeter' },
4+
validate = function() end,
5+
apply = function() require('log').info("Bye from the 'byeer' role!") end,
6+
stop = function() end,
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
groups:
2+
group001:
3+
replicasets:
4+
replicaset001:
5+
instances:
6+
instance001:
7+
roles: [ greeter, byeer ]
8+
iproto:
9+
listen:
10+
- uri: '127.0.0.1:3301'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- greeter.lua --
2+
return {
3+
validate = function() end,
4+
apply = function() require('log').info("Hi from the 'greeter' role!") end,
5+
stop = function() end,
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
instance001:

0 commit comments

Comments
 (0)