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.

Dependencies
This module has no dependencies