diff --git a/examples/docker/basic/config/bffh.dhall b/examples/docker/basic/config/bffh.dhall index f3cf3f3..d62941f 100644 --- a/examples/docker/basic/config/bffh.dhall +++ b/examples/docker/basic/config/bffh.dhall @@ -1,12 +1,16 @@ -{ actor_connections = [{ _1 = "Testmachine", _2 = "Actor" }] +{ actor_connections = [] : List { _1 : Text, _2 : Text } +-- { actor_connections = [{ _1 = "Testmachine", _2 = "Actor" }] , actors = { Actor = { module = "Shelly", params = {=} } } -, init_connections = [{ _1 = "Initiator", _2 = "Testmachine" }] + , init_connections = [] : List { _1 : Text, _2 : Text } +--, init_connections = [{ _1 = "Initiator", _2 = "Testmachine" }] , initiators = { Initiator = { module = "Dummy", params = {=} } } -, listens = [{ address = "::", port = Some 59661 }] +, listens = + [ { address = "::", port = Some 59661 } + ] , machines = { Testmachine = { description = Some "A test machine" @@ -15,6 +19,23 @@ , name = "Testmachine" , read = "lab.test.read" , write = "lab.test.write" - } } -, mqtt_url = "tcp://mqtt:1883" + }, + Another = + { description = Some "Another test machine" + , disclose = "lab.test.read" + , manage = "lab.test.admin" + , name = "Another" + , read = "lab.test.read" + , write = "lab.test.write" + }, + Yetmore = + { description = Some "Yet more test machines" + , disclose = "lab.test.read" + , manage = "lab.test.admin" + , name = "Yetmore" + , read = "lab.test.read" + , write = "lab.test.write" + } + } +, mqtt_url = "tcp://mqtt:1883" } diff --git a/examples/docker/basic/config/roles.toml b/examples/docker/basic/config/roles.toml index cc61b71..2c91a30 100644 --- a/examples/docker/basic/config/roles.toml +++ b/examples/docker/basic/config/roles.toml @@ -1,18 +1,17 @@ +[anotherrole] + [testrole] -name = "Testrole" permissions = [ "lab.test.*" ] [somerole] -name = "Somerole" -parents = ["testparent%lmdb"] +parents = ["testparent/lmdb"] permissions = [ "lab.some.admin" ] [testparent] -name = "Testparent" permissions = [ "lab.some.write", "lab.some.read",