| 1 | # ClusterShell node groups main configuration file |
| 2 | # |
| 3 | # Please see `man 5 groups.conf` and |
| 4 | # https://clustershell.readthedocs.io/en/latest/config.html#node-groups |
| 5 | # for further details. |
| 6 | # |
| 7 | # NOTE: This is a simple group configuration example file, not a |
| 8 | # default config file. Please edit it to fit your own needs. |
| 9 | # |
| 10 | [Main] |
| 11 | |
| 12 | # Default group source |
| 13 | default: local |
| 14 | |
| 15 | # Group source config directory list (space separated, use quotes if needed). |
| 16 | # Examples are provided. Copy them from *.conf.example to *.conf to enable. |
| 17 | # |
| 18 | # $CFGDIR is replaced by the highest priority config directory found. |
| 19 | # Default confdir value enables both system-wide and user configuration. |
| 20 | confdir: /etc/clustershell/groups.conf.d $CFGDIR/groups.conf.d |
| 21 | |
| 22 | # New in 1.7, autodir defines a directory list (space separated, use quotes if |
| 23 | # needed) where group data files will be auto-loaded. |
| 24 | # Only *.yaml file are loaded. Copy *.yaml.example files to enable. |
| 25 | # Group data files avoid the need of external calls for static config files. |
| 26 | # |
| 27 | # $CFGDIR is replaced by the highest priority config directory found. |
| 28 | # Default autodir value enables both system-wide and user configuration. |
| 29 | autodir: /etc/clustershell/groups.d $CFGDIR/groups.d |
| 30 | |
| 31 | # Sections below also define group sources. |
| 32 | # |
| 33 | # NOTE: /etc/clustershell/groups is deprecated since version 1.7, thus if it |
| 34 | # doesn't exist, the "local.cfg" file from autodir will be used. |
| 35 | # |
| 36 | # See the documentation for $CFGDIR, $SOURCE, $GROUP and $NODE upcall special |
| 37 | # variables. Please remember that they are substituted before the shell command |
| 38 | # is effectively executed. |
| 39 | # |
| 40 | [local] |
| 41 | # flat file "group: nodeset" based group source using $CFGDIR/groups.d/local.cfg |
| 42 | # with backward support for /etc/clustershell/groups |
| 43 | map: [ -f $CFGDIR/groups ] && f=$CFGDIR/groups || f=$CFGDIR/groups.d/local.cfg; sed -n 's/^$GROUP:\(.*\)/\1/p' $f |
| 44 | all: [ -f $CFGDIR/groups ] && f=$CFGDIR/groups || f=$CFGDIR/groups.d/local.cfg; sed -n 's/^all:\(.*\)/\1/p' $f |
| 45 | list: [ -f $CFGDIR/groups ] && f=$CFGDIR/groups || f=$CFGDIR/groups.d/local.cfg; sed -n 's/^\([0-9A-Za-z_-]*\):.*/\1/p' $f |