Desiredstate
Desiredstate is a modeling approach in which the intended configuration and behavior of a system are described explicitly, as opposed to the steps used to achieve them. The term is used in configuration management, infrastructure as code, and deployment to express the end condition that a system should reach. It is commonly described as a “desired state” or as “Desired State Configuration” (DSC) in specific tools, and sometimes written as a single word in code or project names.
In a desired-state model, administrators declare the target state—such as installed packages, running services, network rules,
Examples include Windows Desired State Configuration (DSC) and configuration tools such as Puppet, Chef, and Ansible,
Advantages of desired-state management include repeatability, predictability, easier auditing, and reduced drift between environments. Challenges include