inventory-physical-memory

Inventory information about physical memory.

Maintainer

Nick Anderson

Module stats

Total Downloads: 8
Updated: May 8, 2023

Installation version

Version
Released on May 8, 2023

Tags

Installation

                    
cfbs add inventory-physical-memory
Description
Dependencies
Discussion

This CFEngine Build module inventories information about physical memory.

This module expects dmidecode to be found in paths ($(paths.dmidecode)) and currently only targets Linux.

Configuration

inventory_physical_memory:cache.file

The file in which to cache inventory, defaults to $(sys.statedir)/$(this.namespace)-$(this.bundle).dat (/var/cfengine/state/inventory_physical_memory-cache.dat).

  {
      "variables": {
          "inventory_physical_memory:cache.file": {
              "value": "/var/cache/cfengine/inventory_physical_memory.dat"
          }
      }
  }
inventory_physical_memory:cache.minutes

The number of minutes after which the cache should be invalidated, defaults to 43200 (~ 1 month).

  {
      "variables": {
          "inventory_physical_memory:cache.minutes": {
              "value": "1"
          }
      }
  }

Inventory

Physical memory maximum capacity
The maximum amount of memory the system can have installed, derived from dmidecode. If Maximum Capacity is not found in table 16 of the dmidecode table (e.g. on many virtual machines) no inventory will be reported.

https://raw.github.com/nickanderson/cfengine-inventory-physical-memory/master/media/mission-portal-pinned-inventory.png

Dependencies

This module has no dependencies