Skip to content

Commit

Permalink
Aquilon schema: location attribute requirements relaxed
Browse files Browse the repository at this point in the history
In previous change, several location-related attributes were made
mandatory as they are required for a machine object. But they
are not for a cluster, with the consequence that they may not be defined
for the virtual machines hosted by the cluster.
  • Loading branch information
jouvin committed Nov 2, 2018
1 parent 8383881 commit f758a80
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions quattor/types/aquilon/hardware.pan
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,20 @@ type structure_rack = {

@documentation{
system location definition
For clusters (and thus for virtual machines in the cluster),
no attribute is mandatory. The only requirement is that one is
defined.
}
type structure_sysloc = {
"building" : string
"building" ? string
"campus" ? string
"city" : string
"country" : string
"continent" : string
"room" : string
"city" ? string
"country" ? string
"continent" ? string
"room" ? string
"bunker" ? string
"region" ? string
};
} with ( length(SELF) > 0);

# All the resources in this type must be optional for
# the schema to remain usable by non-Aquilon users
Expand Down

0 comments on commit f758a80

Please sign in to comment.