Skip to content

TritonDataCenter/sdc-config-agent

Repository files navigation

sdc-config-agent

This agent takes care of creating and updating config files for SmartDataCenter services. There is typically a 'config-agent' service running in the global zone (GZ) of each SDC server and one in each core SDC zone.

The config-agent updates on a regular polling interval. It polls Services API (SAPI) for config information for the SDC instance(s) it is managing, renders templates (those under configured "sapi_manifests" directories) to file content and updates the config files, if changed. More details in the SAPI documentation.

This repository is part of the Joyent SmartDataCenter project (SDC). For contribution guidelines, issues, and general documentation, visit the main SDC project page.

auto.* variables

config-agent takes care of discovering and providing a handful of variables about the local environment. They are:

  • auto.DATACENTER_NAME, the name of the datacenter
  • auto.SERVER_UUID, the UUID of the Computer Node
  • auto.ZONENAME, the name of the running zone ("global" when running in the Global Zone)
  • auto.INSTANCE_UUID, the instance UUID in SAPI for the instance whose template config-agent is rendering
  • auto.<TAG>_IP, the IP address on the NIC with tag <TAG> or <TAG>_RACK<NUM>
  • auto.PRIMARY_IP, in a zone, this is the IP address of the primary NIC