# Salt '*' state. SLS httpd
This command will first find httpd in the directory/srv/salt. SLS (written in yml syntax) file. If yes, the content of the Installation File is executed. If not, locate init in the/srv/salt/httpd directory. SLS, find the installation file for execution, if not, an error is reported;
# Salt '*' state. SLS httpd. Install
Run the command according to the file/srv/salt/httpd/install. SLS. If no file is available, an error is returned;
[[Email protected] _ 2 salt] # Cat. /httpd/install. slS install_httpd: PKG:-installed-Name: HTTPd service:-running-require:-PKG: httpd #/root/tt.txt: # file. managed: #-Source: salt: // file/tt.txt #-user: Root #-group: Root #-mode: 755
#Salt '*' state. highstate
According to the file/srv/salt/top. SLS into other *. SLS content in order to execute, if not, an error is reported;
[[Email protected] _ 2 ~] # Cat/srv/salt/top. slS base: '*':-HTTP #-httpd. install-users-files. EXT-files-second 'OS: centos':-Match: grain-centos-iptables 'kernel: Linux ':-Match: grain-Kernel