Skip to content

SiteGroups

SiteGroups are intended to defined scopes for groups of sites. Groups of sites can follow greographical boundaries, or use any desired pattern.

SiteGroup :

  • has a unique short name (unique identifier)
  • has a (nicer) display name , and an optional description
  • has a list of scopes to notify in case a notification is targeted at the sitegroup
  • has a list of members (sites)
  • is a scope in itself (can be used as a target for notifications)

SiteGroup: Data Model

site_groups:

- name: sg_unique_name
  display: A nicer sitegroup name
  description: a description
  #is_enabled: true
  #delete: no
  # site members (can also be defined in the site objects)
  sites: ["site01", "site02"]
  notify_to: 
      - user01 
      - g:crise

SiteGroup: example

- name: region_east
  display: East Region
  sites: ["site_east01","site_east02"]
  notify_to: 
    - group:east_customers
    - joe

- name: region_west
  display: West Region
  sites: 
     - west01
     - west02
  notify_to: 
    - group:west_customers
    - joe

SiteGroup scope: sitegroup

Scope

sitegroup:region_east

Alternate names:

sg:region_east

Scope usage

predefined_message:

    - name: building3_evacuated
      (...)
      notify_to:
        - sitegroup:region_east
        - sg:building_security