What are circuits?
We briefly touched on the circuit
directory in the previous section. The default circuit that comes installed with OneOps is named circuit-oneops-1
and can be found in the inductor directory /opt/oneops/inductor
.
Note
In the early days of OneOps, circuits used to be called packs before they were renamed as circuits. Now the name circuit or pack is used interchangeably.
A circuit
directory has three main subdirectories--components
, clouds
, and packs
(or circuits in the latest terminology)
The clouds
directory contains definitions for various clouds and the services provided by them. The packs
directory contains the actual circuit definition for various platforms that can be added to the assemblies and the dependencies between them. In general, everything under the circuit is defined and managed using Chef-specific Ruby Domain-Specific Language (DSL).
Note
A DSL is a language built for a specific purpose using an underlying language. You usually don't need to learn the details...