salt state
SaltStack configuration management lets you create a re-usable configuration template , called a state, that describes everything required to put a system component or application into a known configuration. States are much easier to understand when you see them in action, so let’s make one. States are described using YAML, and are simple to create and read. To simplify things, our Vagrant file maps the /srv/salt directory on your Salt master to the local salt-vagrant-demo-master/saltstack/salt directory. This means that you can use a local text editor and save the file to the local file system, and Vagrant makes it appear as if it were on the Salt master. TERMINOLOGY(术语) Formula A collection of Salt state and Salt pillar files that configure an application or system component. Most formulas are made up of several Salt states spread across multiple Salt state files. State A reusable declaration that configures a specific part of a system. Each Salt state is defined using...