How vmware/vmware-config-modules works
Config Modules is a Python library for consistent compliance auditing and remediation across VMware products, also exposed through SaltStack integration. The main workflow accepts an operation through the controller interface, delegates workflow operations, and uses product-specific controllers to inspect or change configuration; results are returned in structured response models. The graph preserves the documented schema-based controller model and major product families. Some workflow and product-specific connections are not shown in sampled source, so those links are omitted or marked unverified.
Main entry points: controller_interface.py Controller interface · controllers Product controllers · rest_client.py REST clients · VmomiSupport.py pyVmomi types
Components 21
Interfaces and workflows
- Controller interface
config_modules_vmware/interfaces/controller_interface.py - Metadata interface
config_modules_vmware/interfaces/metadata_interface.py - Compliance operations
config_modules_vmware/services/workflows/compliance_operations.py - Configuration operations
config_modules_vmware/services/workflows/configuration_operations.py - Salt modules
config_modules_vmware/services/salt/modules/compliance_control.py - Salt states
config_modules_vmware/services/salt/states/compliance_control.py
Controllers and schemas
- Controller base
config_modules_vmware/controllers/base_controller.py - Product controllers
config_modules_vmware/controllers - Schema utility
config_modules_vmware/schemas/schema_utility.py
Product connectivity
- Product contexts
config_modules_vmware/framework/auth/contexts - REST clients
config_modules_vmware/framework/clients/common/rest_client.py - SDDC Manager client
config_modules_vmware/framework/clients/sddc_manager/sddc_manager_rest_client.py - ESXi CLI client
config_modules_vmware/framework/clients/esxi/esx_cli_client.py - vCenter VMOMI client
config_modules_vmware/framework/clients/vcenter/vc_vmomi_client.py - pyVmomi types
config_modules_vmware/framework/clients/vcenter/dependencies/pyVmomi/VmomiSupport.py
Shared framework
- Controller metadata
config_modules_vmware/framework/models/controller_models/metadata.py - Response models
config_modules_vmware/framework/models/output_models - Logging context
config_modules_vmware/framework/logging/logger_adapter.py - Runtime config
config_modules_vmware/services/config.py - Configuration comparator
config_modules_vmware/framework/utils/comparator.py
Other components
- Calling service
Connections 19
- Calling service → Controller interface: invokes
- Controller interface → Compliance operations: dispatches
config_modules_vmware/interfaces/controller_interface.py - Controller interface → Configuration operations: dispatches
config_modules_vmware/interfaces/controller_interface.py - Controller interface → Metadata interface: loads metadata
config_modules_vmware/interfaces/controller_interface.py - Salt modules → Metadata interface: uses
- Compliance operations → Product controllers: dispatches controls
- Configuration operations → Product controllers: dispatches controls
- Product controllers → Controller base: extends
config_modules_vmware/controllers/vcenter/ip_based_storage_port_group_config.py - Controller base → Configuration comparator: compares values
config_modules_vmware/controllers/base_controller.py - Controller metadata → Schema utility: retrieves schema
config_modules_vmware/framework/models/controller_models/metadata.py - Controller interface → Response models: formats results
config_modules_vmware/interfaces/controller_interface.py - Product controllers → Product contexts: uses context
config_modules_vmware/controllers/esxi/host_client_session_idle_timeout.py - Product contexts → REST clients: provides connectivity
- SDDC Manager client → REST clients: delegates requests
config_modules_vmware/framework/clients/sddc_manager/sddc_manager_rest_client.py - vCenter VMOMI client → pyVmomi types: uses types
config_modules_vmware/framework/clients/vcenter/vc_vmomi_client.py - REST clients → Runtime config: reads settings
config_modules_vmware/framework/clients/common/rest_client.py - SDDC Manager client → Runtime config: reads settings
config_modules_vmware/framework/clients/sddc_manager/sddc_manager_rest_client.py - Logging context → Runtime config: loads format
config_modules_vmware/framework/logging/logger_adapter.py - pyVmomi types → pyVmomi types: supports VMOMI types
config_modules_vmware/framework/clients/vcenter/dependencies/pyVmomi/VmomiSupport.py