Hello,
I’m trying to understand more how to specify machine tags, zones, and pools when deploying applications using Juju on a MAAS cloud.
We have something similar to this in our bundle.yaml
that we juju deploy ./bundle.yaml
:
applications:
foo:
charm: foo
constraints: tags=foo,bar,^bla zones=a-1
I want to understand more about these constraints:
-
tags=foo,bar
means: "match machines with tagfoo
ANDbar
"? - how do I specify an OR between tags? For example: "match machines with tag
foo
ORbar
"? Can I usetags=foo|bar
? - how do I specify a more complex constraint, like: "(
foo
ORbar
) AND (bla
) AND NOT (x
) "? - what are the constrains that I can set/request when using Juju? i know I can specify MAAS tags and zones, can I also specify a pool and fabric vlan? What is the syntax for that?
- when specifying multiple constraints, they are all “joined” with a boolean AND?
(cross post from MAAS constraints when using Juju - Users - MAAS | Discourse)
Thank you,
Heitor