8.2. Variables of a Layout File

These are the variables that any layout files must have defined.

8.2.1. LAYOUT VARIABLE: VERSION

The version of the layout file itself set as a string variable VERSION

8.2.2. LAYOUT VARIABLE: MINIMUM_THAT_VERSION

The minimum version of Tanium HAT required by the layout file set as a string variable MINIMUM_THAT_VERSION

8.2.3. LAYOUT VARIABLE: PPTX_INPUT_FILE

The PPTX file that contains the layout slides referred to in this file set as a string variable PPTX_INPUT_FILE

8.2.4. LAYOUT VARIABLE: LAYOUTS

The layout slide definitions set as a dictionary variable LAYOUTS

This should be a dictionary that defines a mapping of “layout slide index” => “layout definition dictionary”.

The dictionary key “layout slide index” is an integer set to the index of the layout slide (starting from 0).

The dictionary value “layout definition dictionary” is a dictionary with four keys:

  • name: required string value, a unique name to refer to this layout slide
  • add_dependency: required string value, controls whether or not this layout slide is added as a master slide at all
  • add_order: optional integer value, controls the order this layout slide is added as a master slide
  • items: optional dictionary value, a dictionary of items that should be updated on the master slide after it is added. Each item in the items dictionary should have the key set to the index of the placeholder to update, and the value set to a template string to update the placeholder with.