The qbwrk.conf
file format is very similar to the qb.conf
format, with just the inclusion of a macro and template inheritance system. Note that quoted strings in the qbwrk.conf
file must be done with double-quotes. Using single-quotes may result in unexpected behavior, including values being completely ignored. Click on each section heading below to expand the description.
Expand | ||
---|---|---|
| ||
Comments are preceded by the "#" character; everything after the character is ignored by the parser. Examplekey = value #and then the comment #comment key is equal to value |
...
Expand | ||
---|---|---|
| ||
To simplify definition of templates as well as Worker configurations, the qbwrk.conf also supports the use of macro variables. These are in the format: The template names self and this are reserved words and can be used to reference local settings. The variable $_ is also reserved for the local template's name as well as to represent child templates which inherit the template. Format
Example
worker_cluster = $ref.worker_cluster
|
Expand | ||
---|---|---|
| ||
The qbwrk.conf file is broken up into sections containing key/value pair settings. Each section is described by a header between brackets "[" and "]". Section names may only consist of the characters a-z, A-Z, 0-9 and "_". As for the key/value pair format, the key's name is always represented first, followed by an "=" sign and finally the value. While whitespace such as spaces or tabs don't matter, it is important that the key/value pair remain on a single line unless curly braces are used to describe the value. Format[section] Example[qb001]
worker_cluster = /projects/movie
|
Expand | ||
---|---|---|
| ||
There are a few "special" section names that can be used for the different platforms. These will be associated with the Workers using the respective platform.
|
Expand | ||
---|---|---|
| ||
The advantage of the macro file format is the use of template inheritance and value replacement. A section is allowed to "inherit" another section's key/value pairs. This can be accomplished by adding a colon and a space-delimited list of templates. ExampleThe section:
evaluates to: [qube] [section] [section2] [section3] |
Infoexpand | |||
---|---|---|---|
| |||
A Currently, it supports the following two parameters are only settable locally on the Worker as they determine where the Qube! installation is located, the hostname of the Supervisor, and the filtering field for network communication. They will not have any effect when used in the | _worker_bootstrap_parameter_list | _worker_bootstrap_parameter_list | , used primarily to optimize the loading time of qbwrk.conf:
Expand | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
As an example, let's say you need all machines to define proxy_account and proxy_password, you would then:
Then let's say you want to define a worker path map, but it will be different based on the OS, you would then:
Now let's say you want hosts01 - host05 to be in a group called "groupA" and a cluster called "/foo"; and host06 - host10 to be in a group called "groupB" and a cluster called "/bar", and then host11-15 need to be in group "groupB" and cluster "/bar" and define a worker_restriction of "/bar/+":
Now let's say that host07 is special and needs to be a member of both groupB and nvidia, but not lose its worker_cluster. Just redefine it afterwards (the file is read top to bottom):
Here's the whole thing together:
To pull it all together, if host12 were a windows machine, it would get the following config:
|